phcscriptcdnpro 72.2.0 → 73.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +3 -4
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +2 -3
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +2 -3
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +2 -5
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +1 -2
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +2 -3
- data/app/helpers/phcscriptcdnpro/application_helper.rb +0 -10
- data/app/models/phcscriptcdnpro/script/listing.rb +3 -3
- data/app/models/phcscriptcdnpro/script/url.rb +2 -2
- data/app/views/layouts/phcscriptcdnpro/application.html.erb +1 -1
- data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +9 -1
- data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +0 -1
- data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +16 -16
- data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +13 -17
- data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +16 -3
- data/app/views/phcscriptcdnpro/script/authors/index.html.erb +19 -7
- data/app/views/phcscriptcdnpro/script/authors/new.html.erb +16 -3
- data/app/views/phcscriptcdnpro/script/authors/show.html.erb +35 -42
- data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +11 -11
- data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +15 -1
- data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +21 -21
- data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/licences/index.html.erb +15 -1
- data/app/views/phcscriptcdnpro/script/licences/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/licences/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +25 -25
- data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +12 -1
- data/app/views/phcscriptcdnpro/script/listings/index.html.erb +12 -0
- data/app/views/phcscriptcdnpro/script/listings/new.html.erb +12 -1
- data/app/views/phcscriptcdnpro/script/listings/show.html.erb +31 -40
- data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +8 -8
- data/app/views/phcscriptcdnpro/script/urls/index.html.erb +15 -1
- data/app/views/phcscriptcdnpro/script/urls/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/urls/show.html.erb +34 -41
- data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +4 -4
- data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/versions/index.html.erb +15 -1
- data/app/views/phcscriptcdnpro/script/versions/new.html.erb +15 -2
- data/app/views/phcscriptcdnpro/script/versions/show.html.erb +34 -43
- data/config/routes.rb +2 -2
- data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +0 -1
- data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +0 -1
- data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +4 -4
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +61 -103
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c4d7ab69f247c93c11fbbe719f8f1f946343845daf7fcfa6ba0cbd0d809cd52
|
4
|
+
data.tar.gz: a3e2b86aa46a6d8212d541e50560253fcae97f0fc0e696c95cdcd446e34a4d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19af2e0f441396d4c7cbd1ade816e1287cee99e20a4d09fbc28530d3f1dc26b883aee0e7013b34211b6e735780ce3c1bb763cfd48032b73e30bdfbbd090dcb52
|
7
|
+
data.tar.gz: ebaa258fbea2b324080d6590a4d6d2830d64fb4e00d31762a95721c038a6f41c4b68bf2a1c8672223c7a6cd3a25b351b107a7c7201ed6dadc1c5e1b5ba858256
|
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
|
|
4
4
|
class Script::AuthorsController < ApplicationController
|
5
5
|
|
6
6
|
# Include Core Helpers, Security & Action Filters
|
7
|
-
include Phccorehelpers::
|
7
|
+
include Phccorehelpers::PhcpluginsproHelper
|
8
8
|
before_action :authenticate_user!
|
9
|
-
before_action :phc_accounts_pro_admin_only
|
10
9
|
before_action :set_paper_trail_whodunnit
|
11
10
|
before_action :set_script_author, only: [:show, :edit, :update, :destroy]
|
12
11
|
|
@@ -18,7 +17,7 @@ module Phcscriptcdnpro
|
|
18
17
|
# DETAILS - Script Author
|
19
18
|
def show
|
20
19
|
@script_authors = Script::Author.friendly.find(params[:id])
|
21
|
-
@versions = Phcscriptcdnpro::
|
20
|
+
@versions = Phcscriptcdnpro::AuthorVersions.where(item_id: params[:id], item_type: 'Phcscriptcdnpro::Script::Author')
|
22
21
|
end
|
23
22
|
|
24
23
|
# NEW - Script Author
|
@@ -70,7 +69,7 @@ module Phcscriptcdnpro
|
|
70
69
|
|
71
70
|
# Whitelist
|
72
71
|
def script_author_params
|
73
|
-
params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :
|
72
|
+
params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :slug, :user_id, :org_id, :listing_id)
|
74
73
|
end
|
75
74
|
|
76
75
|
end
|
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
|
|
4
4
|
class Script::ExtensionsController < ApplicationController
|
5
5
|
|
6
6
|
# Include Core Helpers, Security & Action Filters
|
7
|
-
include Phccorehelpers::
|
7
|
+
include Phccorehelpers::PhcpluginsproHelper
|
8
8
|
before_action :authenticate_user!
|
9
|
-
before_action :phc_accounts_pro_admin_only
|
10
9
|
before_action :set_paper_trail_whodunnit
|
11
10
|
before_action :set_script_extension, only: [:show, :edit, :update, :destroy]
|
12
11
|
|
@@ -70,7 +69,7 @@ module Phcscriptcdnpro
|
|
70
69
|
|
71
70
|
# Whitelists
|
72
71
|
def script_extension_params
|
73
|
-
params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :slug, :user_id, :org_id)
|
72
|
+
params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :slug, :user_id, :org_id, :listing_id)
|
74
73
|
end
|
75
74
|
|
76
75
|
end
|
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
|
|
4
4
|
class Script::LicencesController < ApplicationController
|
5
5
|
|
6
6
|
# Include Core Helpers, Security & Action Filters
|
7
|
-
include Phccorehelpers::
|
7
|
+
include Phccorehelpers::PhcpluginsproHelper
|
8
8
|
before_action :authenticate_user!
|
9
|
-
before_action :phc_accounts_pro_admin_only
|
10
9
|
before_action :set_paper_trail_whodunnit
|
11
10
|
before_action :set_script_licence, only: [:show, :edit, :update, :destroy]
|
12
11
|
|
@@ -70,7 +69,7 @@ module Phcscriptcdnpro
|
|
70
69
|
|
71
70
|
# Whitelists
|
72
71
|
def script_licence_params
|
73
|
-
params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :slug, :user_id, :org_id)
|
72
|
+
params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :slug, :user_id, :org_id, :listing_id)
|
74
73
|
end
|
75
74
|
|
76
75
|
end
|
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
|
|
4
4
|
class Script::ListingsController < ApplicationController
|
5
5
|
|
6
6
|
# Include Core Helpers, Security & Action Filters
|
7
|
-
include Phccorehelpers::
|
7
|
+
include Phccorehelpers::PhcpluginsproHelper
|
8
8
|
before_action :authenticate_user!
|
9
|
-
before_action :phc_accounts_pro_admin_only
|
10
9
|
before_action :set_paper_trail_whodunnit
|
11
10
|
before_action :set_script_listing, only: [:show, :edit, :update, :destroy]
|
12
11
|
|
@@ -24,8 +23,6 @@ module Phcscriptcdnpro
|
|
24
23
|
# NEW - Script Listings
|
25
24
|
def new
|
26
25
|
@script_listing = Script::Listing.new
|
27
|
-
@script_listing.user_id = current_user.id
|
28
|
-
@script_listing.org_id = current_user.org_id
|
29
26
|
end
|
30
27
|
|
31
28
|
# EDIT - Script Listings
|
@@ -70,7 +67,7 @@ module Phcscriptcdnpro
|
|
70
67
|
|
71
68
|
# Whitelist
|
72
69
|
def script_listing_params
|
73
|
-
params.require(:script_listing).permit(:scripttitle, :scriptdescription, :descriptionsource, :scriptwebsite, :
|
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)
|
74
71
|
end
|
75
72
|
|
76
73
|
end
|
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
|
|
4
4
|
class Script::UrlsController < ApplicationController
|
5
5
|
|
6
6
|
# Include Core Helpers, Security & Action Filters
|
7
|
-
include Phccorehelpers::
|
7
|
+
include Phccorehelpers::PhcpluginsproHelper
|
8
8
|
before_action :authenticate_user!
|
9
|
-
before_action :phc_accounts_pro_admin_only
|
10
9
|
before_action :set_paper_trail_whodunnit
|
11
10
|
before_action :set_script_url, only: [:show, :edit, :update, :destroy]
|
12
11
|
|
@@ -4,9 +4,8 @@ module Phcscriptcdnpro
|
|
4
4
|
class Script::VersionsController < ApplicationController
|
5
5
|
|
6
6
|
# Include Core Helpers, Security & Action Filters
|
7
|
-
include Phccorehelpers::
|
7
|
+
include Phccorehelpers::PhcpluginsproHelper
|
8
8
|
before_action :authenticate_user!
|
9
|
-
before_action :phc_accounts_pro_admin_only
|
10
9
|
before_action :set_paper_trail_whodunnit
|
11
10
|
before_action :set_script_version, only: [:show, :edit, :update, :destroy]
|
12
11
|
|
@@ -70,7 +69,7 @@ module Phcscriptcdnpro
|
|
70
69
|
|
71
70
|
# Only allow a trusted parameter "white list" through.
|
72
71
|
def script_version_params
|
73
|
-
params.require(:script_version).permit(:scriptversion, :slug, :user_id, :org_id)
|
72
|
+
params.require(:script_version).permit(:scriptversion, :slug, :user_id, :org_id, :listing_id)
|
74
73
|
end
|
75
74
|
|
76
75
|
end
|
@@ -1,14 +1,4 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
module ApplicationHelper
|
3
|
-
|
4
|
-
# Add Active to Menu
|
5
|
-
def is_active_controller(controller_name)
|
6
|
-
params[:controller] == controller_name ? "active open selected" : nil
|
7
|
-
end
|
8
|
-
|
9
|
-
def is_active_action(action_name)
|
10
|
-
params[:action] == action_name ? "active" : nil
|
11
|
-
end
|
12
|
-
|
13
3
|
end
|
14
4
|
end
|
@@ -9,9 +9,9 @@ module Phcscriptcdnpro
|
|
9
9
|
|
10
10
|
# Relationships
|
11
11
|
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
|
12
|
-
belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author'
|
13
|
-
belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'
|
14
|
-
belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence'
|
12
|
+
belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author', optional: true
|
13
|
+
belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version', optional: true
|
14
|
+
belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence', optional: true
|
15
15
|
|
16
16
|
# Clean URL Define
|
17
17
|
friendly_id :phcscriptcdnpro_listing_slug, use: [:slugged, :finders]
|
@@ -9,8 +9,8 @@ module Phcscriptcdnpro
|
|
9
9
|
|
10
10
|
# Relationships
|
11
11
|
belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'
|
12
|
-
belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'
|
13
|
-
belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension'
|
12
|
+
belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version', optional: true
|
13
|
+
belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension', optional: true
|
14
14
|
|
15
15
|
# Validation for Form Fields
|
16
16
|
validates :scripturl,
|
@@ -1 +1,9 @@
|
|
1
|
-
<span class="float-left"
|
1
|
+
<span class="float-left">
|
2
|
+
© 2012-<%= Time.now.year %> -
|
3
|
+
<strong>PHC</strong>Press(Pro) -
|
4
|
+
Engine v<%= Gem.loaded_specs["phcscriptcdnpro"].version.to_s %>
|
5
|
+
</span>
|
6
|
+
<span class="float-right">
|
7
|
+
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
8
|
+
<a class="phcnet_copyright" href="https://phcdevworks.com/"><strong>PHC</strong>Devworks</a>
|
9
|
+
</span>
|
@@ -1,7 +1,6 @@
|
|
1
1
|
<!-- Topbar - Navigation Header -->
|
2
2
|
<div class="navbar-header">
|
3
3
|
<%= link_to phcscriptcdnpro.script_listings_path, class: "navbar-brand" do %>
|
4
|
-
<!--<span class="navbar-logo"></span>-->
|
5
4
|
<strong>PHC</strong>ScriptCDN(Pro)
|
6
5
|
<% end %>
|
7
6
|
<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
|
@@ -47,8 +47,8 @@
|
|
47
47
|
<span>Article Posts</span>
|
48
48
|
</a>
|
49
49
|
<ul class="sub-menu">
|
50
|
-
<li class="<%=
|
51
|
-
<li class="<%=
|
50
|
+
<li class="<%= phc_menus_active_controller('phcpresspro/article/posts') %>"><%= link_to('Article Index', phcpresspro.article_posts_path) %></li>
|
51
|
+
<li class="<%= phc_menus_active_controller('phcpresspro/article/posts#new') %>"><%= link_to('New Aritcle', phcpresspro.new_article_post_path) %></li>
|
52
52
|
</ul>
|
53
53
|
</li>
|
54
54
|
<li class="has-sub">
|
@@ -58,8 +58,8 @@
|
|
58
58
|
<span>Article Categories</span>
|
59
59
|
</a>
|
60
60
|
<ul class="sub-menu">
|
61
|
-
<li class="<%=
|
62
|
-
<li class="<%=
|
61
|
+
<li class="<%= phc_menus_active_controller('phcpresspro/article/categories') %>"><%= link_to('Category Index', phcpresspro.article_categories_path) %></li>
|
62
|
+
<li class="<%= phc_menus_active_controller('phcpresspro/article/categories#new') %>"><%= link_to('New Category', phcpresspro.new_article_category_path) %></li>
|
63
63
|
</ul>
|
64
64
|
</li>
|
65
65
|
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
@@ -75,8 +75,8 @@
|
|
75
75
|
<span>Member's Data</span>
|
76
76
|
</a>
|
77
77
|
<ul class="sub-menu">
|
78
|
-
<li class="<%=
|
79
|
-
<li class="<%=
|
78
|
+
<li class="<%= phc_menus_active_controller('phcmemberspro/member/profiles') %>"><%= link_to('Profile Index', phcmemberspro.member_profiles_path) %></li>
|
79
|
+
<li class="<%= phc_menus_active_controller('phcmemberspro/member/profiles#new') %>"><%= link_to('New Member Profile', phcmemberspro.new_member_profile_path) %></li>
|
80
80
|
</ul>
|
81
81
|
</li>
|
82
82
|
<li class="has-sub">
|
@@ -86,8 +86,8 @@
|
|
86
86
|
<span>Member's Directory</span>
|
87
87
|
</a>
|
88
88
|
<ul class="sub-menu">
|
89
|
-
<li class="<%=
|
90
|
-
<li class="<%=
|
89
|
+
<li class="<%= phc_menus_active_controller('phcmemberspro/directory/categories') %>"><%= link_to('Directory Index', phcmemberspro.directory_categories_path) %></li>
|
90
|
+
<li class="<%= phc_menus_active_controller('phcmemberspro/directory/categories#new') %>"><%= link_to('New Directory Listing', phcmemberspro.new_directory_category_path) %></li>
|
91
91
|
</ul>
|
92
92
|
</li>
|
93
93
|
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
@@ -103,8 +103,8 @@
|
|
103
103
|
<span>Script Posts</span>
|
104
104
|
</a>
|
105
105
|
<ul class="sub-menu">
|
106
|
-
<li class="<%=
|
107
|
-
<li class="<%=
|
106
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdnpro.script_listings_path %></li>
|
107
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
|
108
108
|
</ul>
|
109
109
|
</li>
|
110
110
|
<li class="has-sub">
|
@@ -114,10 +114,10 @@
|
|
114
114
|
<span>Script Extras</span>
|
115
115
|
</a>
|
116
116
|
<ul class="sub-menu">
|
117
|
-
<li class="<%=
|
118
|
-
<li class="<%=
|
119
|
-
<li class="<%=
|
120
|
-
<li class="<%=
|
117
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
|
118
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
|
119
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
|
120
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdnpro/script/versions') %>"><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
|
121
121
|
</ul>
|
122
122
|
</li>
|
123
123
|
<!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
|
@@ -133,8 +133,8 @@
|
|
133
133
|
<span>Accounts Dashboard</span>
|
134
134
|
</a>
|
135
135
|
<ul class="sub-menu">
|
136
|
-
<li class="<%=
|
137
|
-
<li class="<%=
|
136
|
+
<li class="<%= phc_menus_active_controller('phcaccountspro/admin/edit') %>"><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
|
137
|
+
<li class="<%= phc_menus_active_controller('phcaccountspro/admin/new') %>"><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
|
138
138
|
</ul>
|
139
139
|
</li>
|
140
140
|
<!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
|
@@ -1,34 +1,30 @@
|
|
1
|
-
<%= form_with(model: script_author, local: true) do |
|
1
|
+
<%= form_with(model: script_author, local: true) do |form_phc_scriptcdn_author| %>
|
2
2
|
|
3
3
|
<!-- PHCNotifi Render Validation -->
|
4
4
|
<%= render 'phcnotifi/validations', :object => @script_author %>
|
5
5
|
|
6
|
-
<!--
|
6
|
+
<!-- Form_phc_scriptcdn_author Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%=
|
9
|
-
<%=
|
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" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group field_with_error">
|
12
|
-
<%=
|
13
|
-
<%=
|
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" %>
|
14
14
|
</div>
|
15
15
|
<div class="form-group field_with_error">
|
16
|
-
<%=
|
17
|
-
<%=
|
16
|
+
<%= form_phc_scriptcdn_author.label :authorwebsite, "Author Website" %>
|
17
|
+
<%= form_phc_scriptcdn_author.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
|
18
18
|
</div>
|
19
19
|
<div class="form-group field_with_error">
|
20
|
-
<%=
|
21
|
-
<%=
|
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" %>
|
22
22
|
</div>
|
23
|
-
|
24
|
-
<%= form.label :authortwitter, "Author Twitter Addresss" %>
|
25
|
-
<%= form.text_field :authortwitter, placeholder: "Author Twitter Addresss", class: "form-control" %>
|
26
|
-
</div>
|
27
|
-
<!-- Form Input Fields -->
|
23
|
+
<!-- Form_phc_scriptcdn_author Input Fields -->
|
28
24
|
|
29
|
-
<!--
|
25
|
+
<!-- Form_phc_scriptcdn_author Submition Button -->
|
30
26
|
<div class="actions">
|
31
|
-
<%=
|
27
|
+
<%= form_phc_scriptcdn_author.submit class: "btn btn-primary" %>
|
32
28
|
</div>
|
33
29
|
<!-- For Submition Button -->
|
34
30
|
|
@@ -1,10 +1,23 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "Script
|
2
|
+
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Update Author Data" %>
|
4
|
-
<% phc_breadcrumb_one link_to "
|
5
|
-
<% phc_breadcrumb_two
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcscriptcdnpro.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
6
7
|
<!-- Title System -->
|
7
8
|
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
8
21
|
<!-- Page Content -->
|
9
22
|
<div class="panel panel-inverse">
|
10
23
|
<div class="panel-heading">
|
@@ -1,9 +1,23 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "Script
|
2
|
+
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Author Index" %>
|
4
|
-
<% phc_breadcrumb_one
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcscriptcdnpro.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
5
7
|
<!-- Title System -->
|
6
8
|
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
7
21
|
<!-- Page Content -->
|
8
22
|
<div class="panel panel-inverse">
|
9
23
|
<div class="panel-heading">
|
@@ -24,7 +38,6 @@
|
|
24
38
|
<th>Last Name</th>
|
25
39
|
<th>Website</th>
|
26
40
|
<th>Github</th>
|
27
|
-
<th>Twitter</th>
|
28
41
|
</tr>
|
29
42
|
</thead>
|
30
43
|
<tbody>
|
@@ -34,12 +47,11 @@
|
|
34
47
|
<td><%= link_to script_author.authorlastname, script_author %></td>
|
35
48
|
<td><%= link_to script_author.authorwebsite, script_author %></td>
|
36
49
|
<td><%= link_to script_author.authorgithub, script_author %></td>
|
37
|
-
<td><%= link_to script_author.authortwitter, script_author %></td>
|
38
50
|
</tr>
|
39
51
|
<% end %>
|
40
|
-
|
41
|
-
|
42
|
-
|
52
|
+
</tbody>
|
53
|
+
</table>
|
54
|
+
</div>
|
43
55
|
</div>
|
44
56
|
</div>
|
45
57
|
<!-- Page Content -->
|
@@ -1,10 +1,23 @@
|
|
1
1
|
<!-- Title System -->
|
2
|
-
<% phc_title "Script
|
2
|
+
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Add a New Author" %>
|
4
|
-
<% phc_breadcrumb_one link_to "
|
5
|
-
<% phc_breadcrumb_two
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcscriptcdnpro.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
6
7
|
<!-- Title System -->
|
7
8
|
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
8
21
|
<!-- Page Content -->
|
9
22
|
<div class="panel panel-inverse">
|
10
23
|
<div class="panel-heading">
|