phcscriptcdn 49.0.0 → 50.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/phcscriptcdn/application.scss +1 -1
  3. data/app/controllers/phcscriptcdn/application_controller.rb +10 -5
  4. data/app/controllers/phcscriptcdn/script/authors_controller.rb +2 -7
  5. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +3 -8
  6. data/app/controllers/phcscriptcdn/script/licences_controller.rb +2 -7
  7. data/app/controllers/phcscriptcdn/script/listings_controller.rb +5 -8
  8. data/app/controllers/phcscriptcdn/script/urls_controller.rb +1 -6
  9. data/app/controllers/phcscriptcdn/script/versions_controller.rb +2 -7
  10. data/app/models/phcscriptcdn/script/author.rb +1 -1
  11. data/app/models/phcscriptcdn/script/extension.rb +4 -4
  12. data/app/models/phcscriptcdn/script/licence.rb +3 -3
  13. data/app/models/phcscriptcdn/script/listing.rb +21 -4
  14. data/app/models/phcscriptcdn/script/url.rb +5 -5
  15. data/app/models/phcscriptcdn/script/version.rb +3 -3
  16. data/app/views/layouts/phcscriptcdn/application.html.erb +21 -22
  17. data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +0 -41
  18. data/app/views/phcscriptcdn/script/authors/_form.html.erb +8 -8
  19. data/app/views/phcscriptcdn/script/authors/edit.html.erb +2 -4
  20. data/app/views/phcscriptcdn/script/authors/index.html.erb +10 -8
  21. data/app/views/phcscriptcdn/script/authors/new.html.erb +2 -5
  22. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +6 -6
  23. data/app/views/phcscriptcdn/script/extensions/index.html.erb +8 -7
  24. data/app/views/phcscriptcdn/script/licences/_form.html.erb +16 -16
  25. data/app/views/phcscriptcdn/script/licences/index.html.erb +13 -12
  26. data/app/views/phcscriptcdn/script/listings/_form.html.erb +26 -33
  27. data/app/views/phcscriptcdn/script/listings/edit.html.erb +1 -4
  28. data/app/views/phcscriptcdn/script/listings/index.html.erb +14 -13
  29. data/app/views/phcscriptcdn/script/listings/new.html.erb +2 -4
  30. data/app/views/phcscriptcdn/script/urls/_form.html.erb +8 -8
  31. data/app/views/phcscriptcdn/script/urls/index.html.erb +9 -8
  32. data/app/views/phcscriptcdn/script/versions/_form.html.erb +2 -2
  33. data/app/views/phcscriptcdn/script/versions/index.html.erb +7 -6
  34. data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +10 -12
  35. data/db/migrate/20160821183714_create_phcscriptcdn_script_authors.rb +4 -5
  36. data/db/migrate/20160821183735_create_phcscriptcdn_script_extensions.rb +3 -4
  37. data/db/migrate/20160821183805_create_phcscriptcdn_script_licences.rb +8 -10
  38. data/db/migrate/20160821183830_create_phcscriptcdn_script_urls.rb +4 -5
  39. data/db/migrate/20160821183946_create_phcscriptcdn_script_versions.rb +1 -2
  40. data/db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb +2 -2
  41. data/db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb +1 -1
  42. data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -1
  43. data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -1
  44. data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -17
  45. data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -1
  46. data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -1
  47. data/lib/phcscriptcdn/version.rb +1 -1
  48. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 544e9ea892cf2ef14ea1f76468ab26ef0cbc1a079a861938eb02bf2e1929703e
4
- data.tar.gz: 244aa5773babb504ca06cd021b099f433145ed1e6a0517aa80c8d97b9f70c105
3
+ metadata.gz: dd180407533d851eba6c3fc30fff667e6bca975a13580aacaeed989650fdbac1
4
+ data.tar.gz: 3d1b9c8d5a2b03a6641dc76ed62e749af9811130da01fa7410b1bbbb6a65aaa2
5
5
  SHA512:
6
- metadata.gz: 506b7f7513c1affee5923575a1638a74659a125e72391e96d86284c65fdbaa3b94b05eea640d1c2ff0d26bdbede20a7717d98e100a5f920aaa633576e9dcfcc6
7
- data.tar.gz: b610b14f4f130654ed6c6b457374a71a19a18856d458fa01c783bafcc445e577d206598f35c9a4dea78390700d5bb54a15094b3fcd9e62f02ee0c1b6b1d61510
6
+ metadata.gz: 36d034cabe76800d7aa2f912e89d725c7b96e5a1f89adf4b457f089e60ddfc46b8523275d777429d3ddbca38c6b2dded17c1c37db31ab23f27248605f32ec9b1
7
+ data.tar.gz: dd2da9673f070a2adaec5abe7b1334e4e829d187ab91d13b6ba3e98839606c3229969360092b441e6a16cf5494d5eead72afa6b90ad69ca6e36362e8be799dbf
@@ -1,2 +1,2 @@
1
1
  // Load Admin Theme
2
- @import "phc_admin_theme_styles_four";
2
+ @import "phc_admin_theme_styles_four";
@@ -1,22 +1,27 @@
1
1
  module Phcscriptcdn
2
2
  class ApplicationController < ActionController::Base
3
-
3
+
4
4
  # Security Filters
5
5
  protect_from_forgery with: :exception
6
-
6
+ before_action :set_default_locale
7
+
7
8
  # Load Requried Helper Files
8
9
  helper Phccorehelpers::Engine.helpers
9
10
  helper Phcmenus::Engine.helpers
10
11
  helper Phctitleseo::Engine.helpers
11
12
  helper Phcnotifi::Engine.helpers
12
13
  helper Phcaccounts::Engine.helpers
13
-
14
+
14
15
  # Papertrail Whodunnit Username
15
16
  def user_for_paper_trail
16
17
  current_user ? current_user.username : 'Public user'
17
18
  end
18
-
19
+
19
20
  private
20
-
21
+
22
+ def set_default_locale
23
+ I18n.default_locale = :en
24
+ end
25
+
21
26
  end
22
27
  end
@@ -11,7 +11,7 @@ module Phcscriptcdn
11
11
 
12
12
  # INDEX - Script Author
13
13
  def index
14
- @script_authors = Script::Author.where(org_id: current_user.org_id)
14
+ @script_authors = Script::Author.all
15
15
  end
16
16
 
17
17
  # DETAILS - Script Author
@@ -23,8 +23,6 @@ module Phcscriptcdn
23
23
  # NEW - Script Author
24
24
  def new
25
25
  @script_author = Script::Author.new
26
- @script_author.user_id = current_user.id
27
- @script_author.org_id = current_user.org_id
28
26
  end
29
27
 
30
28
  # EDIT - Script Author
@@ -35,7 +33,6 @@ module Phcscriptcdn
35
33
  def create
36
34
  @script_author = Script::Author.new(script_author_params)
37
35
  @script_author.user_id = current_user.id
38
- @script_author.org_id = current_user.org_id
39
36
  if @script_author.save
40
37
  redirect_to script_authors_url, notice: 'Author was successfully created.'
41
38
  else
@@ -45,8 +42,6 @@ module Phcscriptcdn
45
42
 
46
43
  # PATCH/PUT - Script Author
47
44
  def update
48
- @script_author.user_id = current_user.id
49
- @script_author.org_id = current_user.org_id
50
45
  if @script_author.update(script_author_params)
51
46
  redirect_to script_authors_url, notice: 'Author was successfully updated.'
52
47
  else
@@ -69,7 +64,7 @@ module Phcscriptcdn
69
64
 
70
65
  # Whitelist
71
66
  def script_author_params
72
- params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :slug, :user_id, :org_id, :listing_id)
67
+ params.require(:script_author).permit(:author_first_name, :author_last_name, :author_website, :author_github, :slug, :user_id, :listing_id)
73
68
  end
74
69
 
75
70
  end
@@ -11,7 +11,7 @@ module Phcscriptcdn
11
11
 
12
12
  # INDEX - Script Extension
13
13
  def index
14
- @script_extensions = Script::Extension.where(org_id: current_user.org_id)
14
+ @script_extensions = Script::Extension.all
15
15
  end
16
16
 
17
17
  # DETAILS - Script Extension
@@ -23,8 +23,6 @@ module Phcscriptcdn
23
23
  # NEW - Script Extension
24
24
  def new
25
25
  @script_extension = Script::Extension.new
26
- @script_extension.user_id = current_user.id
27
- @script_extension.org_id = current_user.org_id
28
26
  end
29
27
 
30
28
  # EDIT - Script Extension
@@ -35,7 +33,6 @@ module Phcscriptcdn
35
33
  def create
36
34
  @script_extension = Script::Extension.new(script_extension_params)
37
35
  @script_extension.user_id = current_user.id
38
- @script_extension.org_id = current_user.org_id
39
36
  if @script_extension.save
40
37
  redirect_to script_extensions_url, notice: 'Extension was successfully created.'
41
38
  else
@@ -45,8 +42,6 @@ module Phcscriptcdn
45
42
 
46
43
  # PATCH/PUT - Script Extension
47
44
  def update
48
- @script_extension.user_id = current_user.id
49
- @script_extension.org_id = current_user.org_id
50
45
  if @script_extension.update(script_extension_params)
51
46
  redirect_to script_extensions_url, notice: 'Extension was successfully updated.'
52
47
  else
@@ -56,7 +51,7 @@ module Phcscriptcdn
56
51
 
57
52
  # DELETE - Script Extension
58
53
  def destroy
59
- @script_extension.destroy
54
+ @script_extension.destroy
60
55
  redirect_to script_extensions_url, notice: 'Extension was successfully destroyed.'
61
56
  end
62
57
 
@@ -69,7 +64,7 @@ module Phcscriptcdn
69
64
 
70
65
  # Whitelists
71
66
  def script_extension_params
72
- params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :slug, :user_id, :org_id, :listing_id)
67
+ params.require(:script_extension).permit(:script_extension_name, :script_extension_description, :script_extension, :slug, :user_id)
73
68
  end
74
69
 
75
70
  end
@@ -11,7 +11,7 @@ module Phcscriptcdn
11
11
 
12
12
  # INDEX - Script Licences
13
13
  def index
14
- @script_licences = Script::Licence.where(org_id: current_user.org_id)
14
+ @script_licences = Script::Licence.all
15
15
  end
16
16
 
17
17
  # DETAILS - Script Licences
@@ -23,8 +23,6 @@ module Phcscriptcdn
23
23
  # NEW - Script Licences
24
24
  def new
25
25
  @script_licence = Script::Licence.new
26
- @script_licence.user_id = current_user.id
27
- @script_licence.org_id = current_user.org_id
28
26
  end
29
27
 
30
28
  # EDIT - Script Licences
@@ -35,7 +33,6 @@ module Phcscriptcdn
35
33
  def create
36
34
  @script_licence = Script::Licence.new(script_licence_params)
37
35
  @script_licence.user_id = current_user.id
38
- @script_licence.org_id = current_user.org_id
39
36
  if @script_licence.save
40
37
  redirect_to script_licences_url, notice: 'Licence was successfully created.'
41
38
  else
@@ -45,8 +42,6 @@ module Phcscriptcdn
45
42
 
46
43
  # PATCH/PUT - Script Licences
47
44
  def update
48
- @script_licence.user_id = current_user.id
49
- @script_licence.org_id = current_user.org_id
50
45
  if @script_licence.update(script_licence_params)
51
46
  redirect_to script_licences_url, notice: 'Licence was successfully updated.'
52
47
  else
@@ -69,7 +64,7 @@ module Phcscriptcdn
69
64
 
70
65
  # Whitelists
71
66
  def script_licence_params
72
- params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :slug, :user_id, :org_id, :listing_id)
67
+ params.require(:script_licence).permit(:licence_name, :licence_description, :licence_compatible_gpl, :licence_approval_fsf, :licence_approval_osi, :licence_approval_copyfree, :licence_approval_debian, :licence_approval_fedora, :slug, :user_id, :org_id, :listing_id)
73
68
  end
74
69
 
75
70
  end
@@ -11,13 +11,13 @@ module Phcscriptcdn
11
11
 
12
12
  # INDEX - Script Listings
13
13
  def index
14
- @script_listings = Script::Listing.where(org_id: current_user.org_id)
14
+ @script_listings = Script::Listing.all
15
15
  end
16
16
 
17
17
  # DETAILS - Script Listings
18
18
  def show
19
19
  @script_listings = Script::Listing.friendly.find(params[:id])
20
- @versions = Phcscriptcdn::ListingVersions.where(item_id: params[:id], item_type: 'Phcscriptcdn::Script::Listing')
20
+ @versions = Phcscriptcdn::ListingVersions.where(item_id: params[:id], item_type: 'Phcscriptcdn::Script_::Listing')
21
21
  end
22
22
 
23
23
  # NEW - Script Listings
@@ -33,18 +33,15 @@ module Phcscriptcdn
33
33
  def create
34
34
  @script_listing = Script::Listing.new(script_listing_params)
35
35
  @script_listing.user_id = current_user.id
36
- @script_listing.org_id = current_user.org_id
37
36
  if @script_listing.save
38
37
  redirect_to script_listings_path, notice: 'Listing was successfully created.'
39
- else
40
- render :new
38
+ else
39
+ render :new
41
40
  end
42
41
  end
43
42
 
44
43
  # PATCH/PUT - Script Listings
45
44
  def update
46
- @script_listing.user_id = current_user.id
47
- @script_listing.org_id = current_user.org_id
48
45
  if @script_listing.update(script_listing_params)
49
46
  redirect_to script_listings_path, notice: 'Listing was successfully updated.'
50
47
  else
@@ -67,7 +64,7 @@ module Phcscriptcdn
67
64
 
68
65
  # Whitelist
69
66
  def script_listing_params
70
- params.require(:script_listing).permit(:scripttitle, :scriptdescription, :descriptionsource, :scriptwebsite, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptlastestreleasecdn, :scriptstatus, :slug, :user_id, :org_id, :version_id, :author_id, :licence_id)
67
+ params.require(:script_listing).permit(:script_tittle, :script_description, :script_source, :script_website, :script_github, :script_initial_release, :script_lastest_release, :script_beta_release, :script_lastest_release_cdn, :script_status, :slug, :user_id, :version_id, :author_id, :licence_id)
71
68
  end
72
69
 
73
70
  end
@@ -25,8 +25,6 @@ module Phcscriptcdn
25
25
  def new
26
26
  script_listing = Script::Listing.find(params[:listing_id])
27
27
  @script_url = script_listing.urls.build
28
- @script_url.user_id = current_user.id
29
- @script_url.org_id = current_user.org_id
30
28
  end
31
29
 
32
30
  # EDIT - Script Athors
@@ -40,7 +38,6 @@ module Phcscriptcdn
40
38
  @script_listing = Script::Listing.find(params[:listing_id])
41
39
  @script_url = @script_listing.urls.create(script_url_params)
42
40
  @script_url.user_id = current_user.id
43
- @script_url.org_id = current_user.org_id
44
41
  if @script_url.save
45
42
  redirect_to script_listing_urls_path, notice: 'Author was successfully created.'
46
43
  else
@@ -50,8 +47,6 @@ module Phcscriptcdn
50
47
 
51
48
  # PATCH/PUT - Script Athors
52
49
  def update
53
- @script_url.user_id = current_user.id
54
- @script_url.org_id = current_user.org_id
55
50
  if @script_url.update(script_url_params)
56
51
  redirect_to script_listing_urls_path, notice: 'Author was successfully updated.'
57
52
  else
@@ -76,7 +71,7 @@ module Phcscriptcdn
76
71
 
77
72
  # Whitelists
78
73
  def script_url_params
79
- params.require(:script_url).permit(:scripturl, :scripturlrelease, :scripturlcdnupdate, :slug, :user_id, :org_id, :listing_id, :version_id, :extension_id)
74
+ params.require(:script_url).permit(:script_url, :script_url_release, :script_url_cdn_update, :slug, :user_id, :listing_id, :version_id, :extension_id)
80
75
  end
81
76
 
82
77
  end
@@ -11,7 +11,7 @@ module Phcscriptcdn
11
11
 
12
12
  # INDEX - Script Versions
13
13
  def index
14
- @script_versions = Script::Version.where(org_id: current_user.org_id)
14
+ @script_versions = Script::Version.all
15
15
  end
16
16
 
17
17
  # DETAILS - Script Versions
@@ -23,8 +23,6 @@ module Phcscriptcdn
23
23
  # NEW - Script Versions
24
24
  def new
25
25
  @script_version = Script::Version.new
26
- @script_version.user_id = current_user.id
27
- @script_version.org_id = current_user.org_id
28
26
  end
29
27
 
30
28
  # EDIT - Script Versions
@@ -35,7 +33,6 @@ module Phcscriptcdn
35
33
  def create
36
34
  @script_version = Script::Version.new(script_version_params)
37
35
  @script_version.user_id = current_user.id
38
- @script_version.org_id = current_user.org_id
39
36
  if @script_version.save
40
37
  redirect_to script_versions_url, notice: 'Version was successfully created.'
41
38
  else
@@ -45,8 +42,6 @@ module Phcscriptcdn
45
42
 
46
43
  # PATCH/PUT - Script Versions
47
44
  def update
48
- @script_version.user_id = current_user.id
49
- @script_version.org_id = current_user.org_id
50
45
  if @script_version.update(script_version_params)
51
46
  redirect_to script_versions_url, notice: 'Version was successfully updated.'
52
47
  else
@@ -69,7 +64,7 @@ module Phcscriptcdn
69
64
 
70
65
  # Only allow a trusted parameter "white list" through.
71
66
  def script_version_params
72
- params.require(:script_version).permit(:scriptversion, :slug, :user_id, :org_id, :listing_id)
67
+ params.require(:script_version).permit(:script_version_number, :slug, :user_id, :org_id)
73
68
  end
74
69
 
75
70
  end
@@ -16,7 +16,7 @@ module Phcscriptcdn
16
16
  # Define for Multiple Records
17
17
  def phcscriptcdn_author_slug
18
18
  [
19
- [:authorfirstname, :authorlastname]
19
+ [:author_first_name, :author_last_name]
20
20
  ]
21
21
  end
22
22
 
@@ -12,13 +12,13 @@ module Phcscriptcdn
12
12
  has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
13
13
 
14
14
  # Validation for Form Fields
15
- validates :scriptextensionname,
15
+ validates :script_extension_name,
16
16
  presence: true
17
17
 
18
- validates :scriptextensiondes,
18
+ validates :script_extension_description,
19
19
  presence: true
20
20
 
21
- validates :scriptextension,
21
+ validates :script_extension,
22
22
  presence: true
23
23
 
24
24
  # Clean URL Define
@@ -27,7 +27,7 @@ module Phcscriptcdn
27
27
  # Define for Multiple Records
28
28
  def phcscriptcdn_extentension_slug
29
29
  [
30
- [:scriptextensionname, :scriptextension]
30
+ [:script_extension]
31
31
  ]
32
32
  end
33
33
 
@@ -11,10 +11,10 @@ module Phcscriptcdn
11
11
  has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
12
12
 
13
13
  # Validation for Form Fields
14
- validates :lcncname,
14
+ validates :licence_name,
15
15
  presence: true
16
16
 
17
- validates :lcncdescript,
17
+ validates :licence_description,
18
18
  presence: true
19
19
 
20
20
  # Clean URL Define
@@ -23,7 +23,7 @@ module Phcscriptcdn
23
23
  # Define for Multiple Records
24
24
  def phcscriptcdn_licence_slug
25
25
  [
26
- [:lcncname]
26
+ [:licence_name]
27
27
  ]
28
28
  end
29
29
 
@@ -9,9 +9,26 @@ module Phcscriptcdn
9
9
 
10
10
  # Relationships
11
11
  has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
12
- belongs_to :author, class_name: 'Phcscriptcdn::Script::Author', optional: true
13
- belongs_to :version, class_name: 'Phcscriptcdn::Script::Version', optional: true
14
- belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence', optional: true
12
+ belongs_to :author, class_name: 'Phcscriptcdn::Script::Author'
13
+ belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence'
14
+
15
+ # Validation for Form Fields
16
+ validates :script_tittle,
17
+ presence: true,
18
+ length: { minimum: 3 }
19
+
20
+ validates :script_description,
21
+ presence: true,
22
+ length: { minimum: 4 }
23
+
24
+ validates :script_source,
25
+ length: { minimum: 5 }
26
+
27
+ validates :script_website,
28
+ length: { minimum: 5 }
29
+
30
+ validates :script_github,
31
+ length: { minimum: 5 }
15
32
 
16
33
  # Clean URL Define
17
34
  friendly_id :phcscriptcdn_listing_slug, use: [:slugged, :finders]
@@ -19,7 +36,7 @@ module Phcscriptcdn
19
36
  # Define for Multiple Records
20
37
  def phcscriptcdn_listing_slug
21
38
  [
22
- [:scripttitle]
39
+ [:script_tittle]
23
40
  ]
24
41
  end
25
42
 
@@ -9,17 +9,17 @@ module Phcscriptcdn
9
9
 
10
10
  # Relationships
11
11
  belongs_to :listing, class_name: 'Phcscriptcdn::Script::Listing'
12
+ belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension'
12
13
  belongs_to :version, class_name: 'Phcscriptcdn::Script::Version', optional: true
13
- belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension', optional: true
14
14
 
15
15
  # Validation for Form Fields
16
- validates :scripturl,
16
+ validates :script_url,
17
17
  presence: true
18
18
 
19
- validates :scripturlrelease,
19
+ validates :script_url_release,
20
20
  presence: true
21
21
 
22
- validates :scripturlcdnupdate,
22
+ validates :script_url_cdn_update,
23
23
  presence: true
24
24
 
25
25
  # Clean URL Define
@@ -28,7 +28,7 @@ module Phcscriptcdn
28
28
  # Define for Multiple Records
29
29
  def phcscriptcdn_url_slug
30
30
  [
31
- [:scripturl]
31
+ [:id]
32
32
  ]
33
33
  end
34
34
 
@@ -8,11 +8,11 @@ module Phcscriptcdn
8
8
  has_paper_trail :class_name => 'Phcscriptcdn::ScriptversionVersions'
9
9
 
10
10
  # Relationships
11
- has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
11
+ has_many :listings, class_name: 'Phcscriptcdn::Script::Listing', :through => :urls
12
12
  has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
13
13
 
14
14
  # Validation for Form Fields
15
- validates :scriptversion,
15
+ validates :script_version_number,
16
16
  presence: true
17
17
 
18
18
  # Clean URL Define
@@ -21,7 +21,7 @@ module Phcscriptcdn
21
21
  # Define for Multiple Records
22
22
  def phcscriptcdn_version_slug
23
23
  [
24
- [:scriptversion]
24
+ [:script_version_number]
25
25
  ]
26
26
  end
27
27
 
@@ -2,25 +2,27 @@
2
2
  <html>
3
3
  <head>
4
4
 
5
- <% phc_seo_title "PHCScriptCDN CDNSM" %>
6
- <% phc_seo_description "Script CDN Listings Management System by PHCDevworks" %>
5
+ <!-- SEO System -->
6
+ <% phc_seo_title "PHCScriptCDN by PHCDevworks" %>
7
+ <% phc_seo_description "Application to manage CDN Script Listings." %>
8
+ <!-- SEO System -->
7
9
 
8
- <!-- -PHC- SEO and Site Description -->
9
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
+ <!-- SEO and Site Description -->
11
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
10
12
  <title><%= yield(:phc_seo_title) %></title>
11
13
  <meta name="description" content="<%= yield(:phc_seo_description) %>">
12
14
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
13
- <link rel="canonical" href="http://phcmembers.com">
14
- <!-- -PHC- SEO and Site Description -->
15
-
16
- <!-- -PHC- Security -->
15
+ <link rel="canonical" href="http://phcdevworks.com">
16
+ <!-- SEO and Site Description -->
17
+
18
+ <!-- Rails Security Tags -->
17
19
  <%= csrf_meta_tags %>
18
20
  <%= csp_meta_tag %>
19
- <!-- -PHC- Security -->
20
-
21
- <!-- -PHC- CSS -->
21
+ <!-- Rails Security Tags -->
22
+
23
+ <!-- CSS Styles -->
22
24
  <%= stylesheet_link_tag 'phcscriptcdn/application', media: 'all', 'data-turbolinks-track': 'reload' %>
23
- <!-- -PHC- CSS -->
25
+ <!-- CSS Styles -->
24
26
 
25
27
  <!-- Font -->
26
28
  <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
@@ -31,6 +33,7 @@
31
33
 
32
34
  <!-- Page Container -->
33
35
  <div id="page-container" class="page-container fade page-sidebar-fixed page-header-fixed">
36
+
34
37
  <!-- Page Header -->
35
38
  <div id="header" class="header navbar-default">
36
39
  <%= render 'layouts/phcscriptcdn/components/backend/navigation/top_menu' %>
@@ -51,29 +54,25 @@
51
54
  <!-- Page Content -->
52
55
 
53
56
  <!-- Footer Content -->
54
- <div id="footer" class="footer">
57
+ <div id="footer" class="footer mb-4">
55
58
  <%= render 'layouts/phcscriptcdn/components/backend/footer/footer' %>
56
59
  </div>
57
60
  <!-- Footer Content -->
58
61
 
59
- <!-- Scroll to Top -->
60
- <a href="javascript:;" class="btn btn-icon btn-circle btn-success btn-scroll-to-top fade" data-click="scroll-top">
61
- <i class="fa fa-angle-up"></i>
62
- </a>
63
- <!-- Scroll to Top -->
64
-
65
62
  </div>
66
63
  <!-- Page Container -->
67
64
 
68
- <!-- Requried JavaScripts -->
65
+ <!-- JavaScript -->
69
66
  <%= javascript_include_tag "phcscriptcdn/application", 'data-turbolinks-track': 'reload' %>
70
- <script src="https://cdn.ckeditor.com/4.10.0/full/ckeditor.js"></script>
67
+ <!-- JavaScript -->
68
+
69
+ <!-- JavaScript Loader -->
71
70
  <script>
72
71
  $(document).ready(function() {
73
72
  App.init();
74
73
  });
75
74
  </script>
76
- <!-- Requried JavaScripts -->
75
+ <!-- JavaScript Loader -->
77
76
 
78
77
  </body>
79
78
  </html>
@@ -15,47 +15,6 @@
15
15
  <% if current_user %>
16
16
  <ul class="navbar-nav navbar-right">
17
17
 
18
- <!-- Topbar - Navigation Main - Search
19
- <li>
20
- <form class="navbar-form">
21
- <div class="form-group">
22
- <input type="text" class="form-control" placeholder="Enter keyword" />
23
- <button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
24
- </div>
25
- </form>
26
- </li>
27
- Topbar - Navigation Main - Search -->
28
-
29
- <!-- Topbar - Navigation Main - Notifications Menu
30
- <li class="dropdown">
31
- <a href="javascript:;" data-toggle="dropdown" class="dropdown-toggle f-s-14">
32
- <i class="fa fa-bell"></i>
33
- <span class="label">5</span>
34
- </a>
35
- <ul class="dropdown-menu media-list dropdown-menu-right">
36
- <li class="dropdown-header">NOTIFICATIONS (5)</li>
37
- <li class="media">
38
- <a href="javascript:;">
39
- <div class="media-left">
40
- <i class="fa fa-bug media-object bg-silver-darker"></i>
41
- </div>
42
- <div class="media-body">
43
- <h6 class="media-heading">
44
- Server Error Reports
45
- <i class="fa fa-exclamation-circle text-danger"></i>
46
- </h6>
47
- <div class="text-muted f-s-11">3 minutes ago</div>
48
- </div>
49
- </a>
50
- </li>
51
- ...
52
- <li class="dropdown-footer text-center">
53
- <a href="javascript:;">View more</a>
54
- </li>
55
- </ul>
56
- </li>
57
- Topbar - Navigation Main - Notifications Menu -->
58
-
59
18
  <!-- Topbar - Navigation Main - User Menu -->
60
19
  <li class="dropdown navbar-user">
61
20
  <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
@@ -5,20 +5,20 @@
5
5
 
6
6
  <!-- Form_phc_scriptcdn_author Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= form_phc_scriptcdn_author.label :authorfirstname, "Author First Name" %>
9
- <%= form_phc_scriptcdn_author.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
8
+ <%= form_phc_scriptcdn_author.label :author_first_name, "Author First Name" %>
9
+ <%= form_phc_scriptcdn_author.text_field :author_first_name, placeholder: "Author First Name", class: "form-control" %>
10
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= form_phc_scriptcdn_author.label :authorlastname, "Author Last Name" %>
13
- <%= form_phc_scriptcdn_author.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
12
+ <%= form_phc_scriptcdn_author.label :author_last_name, "Author Last Name" %>
13
+ <%= form_phc_scriptcdn_author.text_field :author_last_name, placeholder: "Author Last Name", class: "form-control" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= form_phc_scriptcdn_author.label :authorwebsite, "Author Website" %>
17
- <%= form_phc_scriptcdn_author.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
16
+ <%= form_phc_scriptcdn_author.label :author_website, "Author Website" %>
17
+ <%= form_phc_scriptcdn_author.text_field :author_website, placeholder: "Author Website", class: "form-control" %>
18
18
  </div>
19
19
  <div class="form-group field_with_error">
20
- <%= form_phc_scriptcdn_author.label :authorgithub, "Author Github Address" %>
21
- <%= form_phc_scriptcdn_author.text_field :authorgithub, placeholder: "Author Github Address", class: "form-control" %>
20
+ <%= form_phc_scriptcdn_author.label :author_github, "Author Github Address" %>
21
+ <%= form_phc_scriptcdn_author.text_field :author_github, placeholder: "Author Github Address", class: "form-control" %>
22
22
  </div>
23
23
  <!-- Form_phc_scriptcdn_author Input Fields -->
24
24
 
@@ -29,11 +29,9 @@
29
29
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form for Script Author Edit -->
34
33
  <%= render 'form', script_author: @script_author %>
35
- <!-- -->
36
-
34
+ <!-- Form for Script Author Edit -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->