phcscriptcdn 3.3.3 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/phcscriptcdn/script/authors_controller.rb +14 -23
  3. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +1 -1
  4. data/app/controllers/phcscriptcdn/script/licences_controller.rb +2 -2
  5. data/app/controllers/phcscriptcdn/script/listings_controller.rb +5 -5
  6. data/app/controllers/phcscriptcdn/script/urls_controller.rb +1 -1
  7. data/app/controllers/phcscriptcdn/script/versions_controller.rb +4 -4
  8. data/app/models/phcscriptcdn/script/author.rb +2 -2
  9. data/app/models/phcscriptcdn/script/extension.rb +4 -1
  10. data/app/models/phcscriptcdn/script/licence.rb +5 -0
  11. data/app/models/phcscriptcdn/script/listing.rb +7 -5
  12. data/app/models/phcscriptcdn/script/url.rb +3 -3
  13. data/app/models/phcscriptcdn/script/version.rb +5 -5
  14. data/app/views/phcscriptcdn/script/authors/_form.html.erb +3 -5
  15. data/app/views/phcscriptcdn/script/authors/edit.html.erb +10 -5
  16. data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -14
  17. data/app/views/phcscriptcdn/script/authors/new.html.erb +10 -5
  18. data/app/views/phcscriptcdn/script/authors/show.html.erb +27 -0
  19. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +2 -2
  20. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +9 -4
  21. data/app/views/phcscriptcdn/script/extensions/index.html.erb +8 -3
  22. data/app/views/phcscriptcdn/script/extensions/new.html.erb +8 -3
  23. data/app/views/phcscriptcdn/script/extensions/show.html.erb +28 -0
  24. data/app/views/phcscriptcdn/script/licences/_form.html.erb +12 -13
  25. data/app/views/phcscriptcdn/script/licences/edit.html.erb +9 -4
  26. data/app/views/phcscriptcdn/script/licences/index.html.erb +7 -4
  27. data/app/views/phcscriptcdn/script/licences/new.html.erb +9 -4
  28. data/app/views/phcscriptcdn/script/licences/show.html.erb +27 -0
  29. data/app/views/phcscriptcdn/script/listings/_form.html.erb +23 -20
  30. data/app/views/phcscriptcdn/script/listings/edit.html.erb +9 -3
  31. data/app/views/phcscriptcdn/script/listings/index.html.erb +9 -7
  32. data/app/views/phcscriptcdn/script/listings/new.html.erb +8 -2
  33. data/app/views/phcscriptcdn/script/listings/show.html.erb +15 -5
  34. data/app/views/phcscriptcdn/script/urls/_form.html.erb +4 -6
  35. data/app/views/phcscriptcdn/script/urls/edit.html.erb +9 -3
  36. data/app/views/phcscriptcdn/script/urls/index.html.erb +7 -3
  37. data/app/views/phcscriptcdn/script/urls/new.html.erb +10 -4
  38. data/app/views/phcscriptcdn/script/urls/show.html.erb +39 -3
  39. data/app/views/phcscriptcdn/script/versions/_form.html.erb +2 -0
  40. data/app/views/phcscriptcdn/script/versions/edit.html.erb +8 -3
  41. data/app/views/phcscriptcdn/script/versions/index.html.erb +7 -3
  42. data/app/views/phcscriptcdn/script/versions/new.html.erb +9 -4
  43. data/app/views/phcscriptcdn/script/versions/show.html.erb +38 -3
  44. data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +3 -0
  45. data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +6 -1
  46. data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +3 -0
  47. data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +3 -1
  48. data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +3 -2
  49. data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +4 -0
  50. data/lib/phcscriptcdn/version.rb +1 -1
  51. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53b3700536316fd9abfe9fb20b8290bccea7511c
4
- data.tar.gz: 32a407add504e256f224ffa2cd885c68f7872016
3
+ metadata.gz: a0cb13c94a573bd31e0ca2ce920d91450ddfea8a
4
+ data.tar.gz: bba1ddccf2665550da900d9bdcac6842927412b9
5
5
  SHA512:
6
- metadata.gz: 2f81ba4d3293934e6bdf86fea9c2a017177afaae6efff282361f5d0142445d8596d6ed182be806faa322d33fe819ec9d696aecac4b41006414b4a66bac719ef9
7
- data.tar.gz: 34f37cc5d34af9cf9cba48258a27768487ddf529e61ca9450c60d74f8ddd2cb9ecb41db941efe7c4f6236991ab19505070de4fdadf6ca660c56df46c3bd91fa2
6
+ metadata.gz: 358b088f403f5e212f53880855707293bcbba52aca08bfa8c50b4fd2f41c130be0244979faacacf57e762c5bdb329e42d2166650a136cdc573f9eb2879800c92
7
+ data.tar.gz: 55802ba14d1e1c4c460b3095a9d95a10afad135602bcaffb2b89168f0cd0a44707c5e4d825d34f3a101aebc5108bbd50c092143e52283e4c46554d2626f803c2
@@ -6,56 +6,47 @@ module Phcscriptcdn
6
6
  # Filters & Security
7
7
  before_action :set_script_author, only: [:show, :edit, :update, :destroy]
8
8
 
9
- # INDEX - Script Authors
9
+ # INDEX - Script Author
10
10
  def index
11
- script_listing = Script::Listing.find(params[:listing_id])
12
- @script_authors = script_listing.authors
11
+ @script_authors = Script::Author.all
13
12
  end
14
13
 
15
- # DETAILED PROFILE - Script Authors
14
+ # DETAILS - Script Author
16
15
  def show
17
- script_listing = Script::Listing.find(params[:listing_id])
18
- @script_author = script_listing.authors.find(params[:id])
19
16
  end
20
17
 
21
- # NEW - Script Athors
18
+ # NEW - Script Author
22
19
  def new
23
- script_listing = Script::Listing.find(params[:listing_id])
24
- @script_author = script_listing.authors.build
20
+ @script_author = Script::Author.new
25
21
  end
26
22
 
27
- # EDIT - Script Athors
23
+ # EDIT - Script Author
28
24
  def edit
29
- script_listing = Script::Listing.find(params[:listing_id])
30
- @script_author = script_listing.authors.find(params[:id])
31
25
  end
32
26
 
33
- # POST - Script Athors
27
+ # CREATE - Script Author
34
28
  def create
35
- @script_listing = Script::Listing.find(params[:listing_id])
36
- @script_author = @script_listing.authors.create(script_author_params)
29
+ @script_author = Script::Author.new(script_author_params)
37
30
  if @script_author.save
38
- redirect_to script_listing_authors_path, notice: 'Author was successfully created.'
31
+ redirect_to script_authors_url, notice: 'Author was successfully created.'
39
32
  else
40
33
  render :new
41
34
  end
42
35
  end
43
36
 
44
- # PATCH/PUT - Script Athors
37
+ # PATCH/PUT - Script Author
45
38
  def update
46
39
  if @script_author.update(script_author_params)
47
- redirect_to script_listing_authors_path, notice: 'Author was successfully updated.'
40
+ redirect_to script_authors_url, notice: 'Author was successfully updated.'
48
41
  else
49
42
  render :edit
50
43
  end
51
44
  end
52
45
 
53
- # DELETE - Script Athors
46
+ # DELETE - Script Author
54
47
  def destroy
55
- @script_listing = Script::Listing.find(params[:listing_id])
56
- @script_author = @script_listing.authors.find(params[:id])
57
48
  @script_author.destroy
58
- redirect_to script_listing_authors_path, notice: 'Author was successfully destroyed.'
49
+ redirect_to script_authors_url, notice: 'Author was successfully destroyed.'
59
50
  end
60
51
 
61
52
  private
@@ -67,7 +58,7 @@ module Phcscriptcdn
67
58
 
68
59
  # Whitelist
69
60
  def script_author_params
70
- params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :authortwitter, :listing_id)
61
+ params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :authortwitter, :user_id, :user_name)
71
62
  end
72
63
 
73
64
  end
@@ -58,7 +58,7 @@ module Phcscriptcdn
58
58
 
59
59
  # Whitelists
60
60
  def script_extension_params
61
- params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension)
61
+ params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :user_id, :user_name)
62
62
  end
63
63
 
64
64
  end
@@ -3,7 +3,7 @@ require_dependency "phcscriptcdn/application_controller"
3
3
  module Phcscriptcdn
4
4
  class Script::LicencesController < ApplicationController
5
5
 
6
- #Secrity & Filters
6
+ # Filters & Security
7
7
  before_action :set_script_licence, only: [:show, :edit, :update, :destroy]
8
8
 
9
9
  # INDEX - Script Licences
@@ -58,7 +58,7 @@ module Phcscriptcdn
58
58
 
59
59
  # Whitelists
60
60
  def script_licence_params
61
- params.require(:script_licence).permit(:lcncname, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora)
61
+ params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :user_id, :user_name)
62
62
  end
63
63
 
64
64
  end
@@ -3,7 +3,7 @@ require_dependency "phcscriptcdn/application_controller"
3
3
  module Phcscriptcdn
4
4
  class Script::ListingsController < ApplicationController
5
5
 
6
- # Security & Filters
6
+ # Filters & Security
7
7
  before_action :set_script_listing, only: [:show, :edit, :update, :destroy]
8
8
 
9
9
  # INDEX - Script Listings
@@ -28,7 +28,7 @@ module Phcscriptcdn
28
28
  def create
29
29
  @script_listing = Script::Listing.new(script_listing_params)
30
30
  if @script_listing.save
31
- redirect_to script_listings_url, notice: 'Listing was successfully created.'
31
+ redirect_to script_listings_path, notice: 'Listing was successfully created.'
32
32
  else
33
33
  render :new
34
34
  end
@@ -37,7 +37,7 @@ module Phcscriptcdn
37
37
  # PATCH/PUT - Script Listings
38
38
  def update
39
39
  if @script_listing.update(script_listing_params)
40
- redirect_to script_listings_url, notice: 'Listing was successfully updated.'
40
+ redirect_to script_listings_path, notice: 'Listing was successfully updated.'
41
41
  else
42
42
  render :edit
43
43
  end
@@ -46,7 +46,7 @@ module Phcscriptcdn
46
46
  # DELETE - Script Listings
47
47
  def destroy
48
48
  @script_listing.destroy
49
- redirect_to script_listings_url, notice: 'Listing was successfully destroyed.'
49
+ redirect_to script_listings_path, notice: 'Listing was successfully destroyed.'
50
50
  end
51
51
 
52
52
  private
@@ -58,7 +58,7 @@ module Phcscriptcdn
58
58
 
59
59
  # Whitelist
60
60
  def script_listing_params
61
- params.require(:script_listing).permit(:scripttitle, :scriptdescription, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptstatus, :version_id)
61
+ params.require(:script_listing).permit(:scripttitle, :scriptdescription, :descriptionsource, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptstatus, :user_id, :user_name, :version_id, :author_id, :licence_id)
62
62
  end
63
63
 
64
64
  end
@@ -67,7 +67,7 @@ module Phcscriptcdn
67
67
 
68
68
  # Whitelists
69
69
  def script_url_params
70
- params.require(:script_url).permit(:scripturl, :scripturlrelease, :scripturlcdnupdate, :listing_id, :version_id, :extension_id)
70
+ params.require(:script_url).permit(:scripturl, :scripturlrelease, :scripturlcdnupdate, :user_id, :user_name, :listing_id, :version_id, :extension_id)
71
71
  end
72
72
 
73
73
  end
@@ -45,20 +45,20 @@ module Phcscriptcdn
45
45
 
46
46
  # DELETE - Script Versions
47
47
  def destroy
48
- @script_version.destroy
49
- redirect_to script_versions_url, notice: 'Version was successfully destroyed.'
48
+ @script_version.destroy
49
+ redirect_to script_versions_url, notice: 'Version was successfully destroyed.'
50
50
  end
51
51
 
52
52
  private
53
53
 
54
54
  # Common Callbacks
55
55
  def set_script_version
56
- @script_version = Script::Version.find(params[:id])
56
+ @script_version = Script::Version.find(params[:id])
57
57
  end
58
58
 
59
59
  # Only allow a trusted parameter "white list" through.
60
60
  def script_version_params
61
- params.require(:script_version).permit(:scriptversion)
61
+ params.require(:script_version).permit(:scriptversion, :user_id, :user_name)
62
62
  end
63
63
 
64
64
  end
@@ -3,8 +3,8 @@ module Phcscriptcdn
3
3
 
4
4
  # Relationships
5
5
 
6
- # Attach to Listings
7
- belongs_to :listing, class_name: 'Phcscriptcdn::Script::Listing'
6
+ # Listing (None Nested)
7
+ has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
8
8
 
9
9
  end
10
10
  end
@@ -1,7 +1,10 @@
1
1
  module Phcscriptcdn
2
2
  class Script::Extension < ApplicationRecord
3
3
 
4
- # URL Un-Nested
4
+ # Relationships
5
+
6
+ # URLs & Extensions (None Nested)
7
+ has_many :listings, class_name: 'Phcscriptcdn::Script::Listing', :through => :urls
5
8
  has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
6
9
 
7
10
  end
@@ -1,5 +1,10 @@
1
1
  module Phcscriptcdn
2
2
  class Script::Licence < ApplicationRecord
3
3
 
4
+ # Relationships
5
+
6
+ # Listing (None Nested)
7
+ has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
8
+
4
9
  end
5
10
  end
@@ -3,15 +3,17 @@ module Phcscriptcdn
3
3
 
4
4
  # Relationships
5
5
 
6
- #has_many :informations, class_name: 'Phcscriptcdn::Script::Version'
7
- # URL Nested
6
+ # Attach to URL (Nested)
8
7
  has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
9
8
 
10
- # Author Nested
11
- has_many :authors, class_name: 'Phcscriptcdn::Script::Author'
9
+ # Attach to Author (None Nested)
10
+ belongs_to :author, class_name: 'Phcscriptcdn::Script::Author'
12
11
 
13
- # Attach to Version
12
+ # Attach to Version (None Nested)
14
13
  belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
15
14
 
15
+ # Attach to Licence (None Nested)
16
+ belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence'
17
+
16
18
  end
17
19
  end
@@ -3,13 +3,13 @@ module Phcscriptcdn
3
3
 
4
4
  # Relationships
5
5
 
6
- # Attach to Listings
6
+ # Attach to Listings (Nested)
7
7
  belongs_to :listing, class_name: 'Phcscriptcdn::Script::Listing'
8
8
 
9
- # Attach to Version
9
+ # Attach to Version (None Nested)
10
10
  belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
11
11
 
12
- # Attach to Extensions
12
+ # Attach to Extension (None Nested)
13
13
  belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension'
14
14
 
15
15
  end
@@ -1,13 +1,13 @@
1
1
  module Phcscriptcdn
2
2
  class Script::Version < ApplicationRecord
3
3
 
4
- #Relationships
4
+ # Relationships
5
5
 
6
- # URL Un-Nested
7
- has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
8
-
9
- # Listing Un-Nested
6
+ # Attach to Listing (None Nested)
10
7
  has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
11
8
 
9
+ # Attach to URL (None Nested)
10
+ has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
11
+
12
12
  end
13
13
  end
@@ -1,25 +1,23 @@
1
- <%= form_for([@script_author.listing, @script_author], url: form_url) do |f| %>
1
+ <%= form_for(script_author) do |f| %>
2
+
3
+ <%= render 'phcnotifi/validations', :object => @script_author %>
2
4
 
3
5
  <div class="form-group field_with_error">
4
6
  <%= f.label :authorfirstname, "Author First Name" %>
5
7
  <%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
6
8
  </div>
7
-
8
9
  <div class="form-group field_with_error">
9
10
  <%= f.label :authorlastname, "Author Last Name" %>
10
11
  <%= f.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
11
12
  </div>
12
-
13
13
  <div class="form-group field_with_error">
14
14
  <%= f.label :authorwebsite, "Author Website" %>
15
15
  <%= f.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
16
16
  </div>
17
-
18
17
  <div class="form-group field_with_error">
19
18
  <%= f.label :authorgithub, "Author Github Address" %>
20
19
  <%= f.text_field :authorgithub, placeholder: "Author Github Address", class: "form-control" %>
21
20
  </div>
22
-
23
21
  <div class="form-group field_with_error">
24
22
  <%= f.label :authortwitter, "Author Twitter Addresss" %>
25
23
  <%= f.text_field :authortwitter, placeholder: "Author Twitter Addresss", class: "form-control" %>
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Extension" %>
3
- <% phc_title_tagline "Update Script Extension" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Update Author Data" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,25 +9,29 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
- <li><%= link_to "Author Index", script_listing_authors_path %></li>
12
+ <li><%= link_to "Author Index", phcscriptcdn.script_authors_path %></li>
13
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
14
  </ol>
15
+ <!-- Bread Crumbs -->
15
16
 
16
17
  <!-- Page Title -->
17
18
  <h3 class="page-title">
18
19
  <%= yield(:phc_title) %> </br>
19
20
  <small><%= yield(:phc_title_tagline) %></small>
20
21
  </h3>
22
+ <!-- Page Title -->
21
23
 
22
24
  </div>
23
25
  </div>
26
+ <!-- Page Header -->
24
27
 
25
28
  <!-- Main Content -->
26
29
  <div class="row">
27
30
  <div class="col-lg-12">
28
31
 
29
- <%= render 'form', { form_url: script_listing_author_path } %>
32
+ <!-- Form Requries URL to Function Properly -->
33
+ <%= render 'form', script_author: @script_author %>
30
34
 
31
35
  </div>
32
36
  </div>
37
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Authors" %>
3
- <% phc_title_tagline "Script Author Index" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Author Index" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,48 +9,52 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Author Index", script_listing_authors_path %></li>
12
12
  <li class="active"><%= yield(:phc_title_tagline) %></li>
13
13
  </ol>
14
+ <!-- Bread Crumbs -->
14
15
 
15
16
  <!-- Page Title -->
16
17
  <h3 class="page-title">
17
18
  <%= yield(:phc_title) %> </br>
18
19
  <small><%= yield(:phc_title_tagline) %></small>
19
20
  </h3>
21
+ <!-- Page Title -->
20
22
 
21
23
  </div>
22
24
  </div>
25
+ <!-- Page Header -->
23
26
 
24
27
  <!-- Main Content -->
25
28
  <div class="row">
26
29
  <div class="col-lg-12">
27
30
 
31
+ <!-- Table Index -->
28
32
  <table class="table table-striped table-bordered table-advance table-hover">
29
33
  <thead>
30
34
  <tr>
31
- <th>Author Firstname</th>
32
- <th>Author Lastname</th>
33
- <th>Author Website</th>
34
- <th>Author Github</th>
35
- <th>Author Twitter</th>
35
+ <th>First Name</th>
36
+ <th>Last Name</th>
37
+ <th>Website</th>
38
+ <th>Github</th>
39
+ <th>Twitter</th>
36
40
  </tr>
37
41
  </thead>
38
-
39
42
  <tbody>
40
43
  <% @script_authors.each do |script_author| %>
41
44
  <tr>
42
- <td><%= link_to script_author.authorfirstname, script_listing_author_path(script_author.listing, script_author) %></td>
43
- <td><%= link_to script_author.authorlastname, script_listing_author_path(script_author.listing, script_author) %></td>
44
- <td><%= link_to script_author.authorwebsite, script_listing_author_path(script_author.listing, script_author) %></td>
45
- <td><%= link_to script_author.authorgithub, script_listing_author_path(script_author.listing, script_author) %></td>
46
- <td><%= link_to script_author.authortwitter, script_listing_author_path(script_author.listing, script_author) %></td>
45
+ <td><%= link_to script_author.authorfirstname, script_author %></td>
46
+ <td><%= link_to script_author.authorlastname, script_author %></td>
47
+ <td><%= link_to script_author.authorwebsite, script_author %></td>
48
+ <td><%= link_to script_author.authorgithub, script_author %></td>
49
+ <td><%= link_to script_author.authortwitter, script_author %></td>
47
50
  </tr>
48
51
  <% end %>
49
52
  </tbody>
50
53
  </table>
54
+ <!-- Table Index -->
51
55
 
52
56
  <%= link_to 'New Script Author', new_script_listing_author_path, class: "btn btn-primary" %>
53
57
 
54
58
  </div>
55
59
  </div>
60
+ <!-- Main Content -->
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Author" %>
3
- <% phc_title_tagline "Create a New Script Author" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Add a New Author" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,25 +9,29 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
- <li><%= link_to "Author Index", script_listing_authors_path %></li>
12
+ <li><%= link_to "Author Index", phcscriptcdn.script_authors_path %></li>
13
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
14
  </ol>
15
+ <!-- Bread Crumbs -->
15
16
 
16
17
  <!-- Page Title -->
17
18
  <h3 class="page-title">
18
19
  <%= yield(:phc_title) %> </br>
19
20
  <small><%= yield(:phc_title_tagline) %></small>
20
21
  </h3>
22
+ <!-- Page Title -->
21
23
 
22
24
  </div>
23
25
  </div>
26
+ <!-- Page Header -->
24
27
 
25
28
  <!-- Main Content -->
26
29
  <div class="row">
27
30
  <div class="col-lg-12">
28
31
 
29
- <%= render 'form', { form_url: script_listing_authors_path } %>
32
+ <!-- Form Requries URL to Function Properly -->
33
+ <%= render 'form', script_author: @script_author %>
30
34
 
31
35
  </div>
32
36
  </div>
37
+ <!-- Main Content -->