phcdevworks_scripts 8.1.1 → 8.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +1 -28
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_scripts_manifest.js +3 -3
  6. data/app/assets/stylesheets/phcdevworks_scripts/application.scss +15 -15
  7. data/app/assets/stylesheets/phcdevworks_scripts/script/authors.scss +3 -3
  8. data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.scss +3 -3
  9. data/app/assets/stylesheets/phcdevworks_scripts/script/listings.scss +3 -3
  10. data/app/assets/stylesheets/phcdevworks_scripts/script/urls.scss +3 -3
  11. data/app/assets/stylesheets/phcdevworks_scripts/script/versions.scss +3 -3
  12. data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.scss +3 -3
  13. data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.scss +3 -3
  14. data/app/controllers/phcdevworks_scripts/application_controller.rb +13 -13
  15. data/app/controllers/phcdevworks_scripts/script/authors_controller.rb +83 -83
  16. data/app/controllers/phcdevworks_scripts/script/extensions_controller.rb +83 -83
  17. data/app/controllers/phcdevworks_scripts/script/listings_controller.rb +83 -83
  18. data/app/controllers/phcdevworks_scripts/script/urls_controller.rb +78 -78
  19. data/app/controllers/phcdevworks_scripts/script/versions_controller.rb +83 -83
  20. data/app/controllers/phcdevworks_scripts/snippet/posts_controller.rb +82 -82
  21. data/app/controllers/phcdevworks_scripts/snippet/urls_controller.rb +77 -77
  22. data/app/helpers/phcdevworks_scripts/application_helper.rb +4 -4
  23. data/app/helpers/phcdevworks_scripts/script/authors_helper.rb +4 -4
  24. data/app/helpers/phcdevworks_scripts/script/extensions_helper.rb +4 -4
  25. data/app/helpers/phcdevworks_scripts/script/listings_helper.rb +4 -4
  26. data/app/helpers/phcdevworks_scripts/script/urls_helper.rb +4 -4
  27. data/app/helpers/phcdevworks_scripts/script/versions_helper.rb +4 -4
  28. data/app/helpers/phcdevworks_scripts/snippet/posts_helper.rb +4 -4
  29. data/app/helpers/phcdevworks_scripts/snippet/urls_helper.rb +4 -4
  30. data/app/jobs/phcdevworks_scripts/application_job.rb +4 -4
  31. data/app/mailers/phcdevworks_scripts/application_mailer.rb +6 -6
  32. data/app/models/phcdevworks_scripts/application_record.rb +5 -5
  33. data/app/models/phcdevworks_scripts/script/author.rb +33 -33
  34. data/app/models/phcdevworks_scripts/script/extension.rb +32 -32
  35. data/app/models/phcdevworks_scripts/script/listing.rb +38 -38
  36. data/app/models/phcdevworks_scripts/script/url.rb +24 -24
  37. data/app/models/phcdevworks_scripts/script/version.rb +26 -26
  38. data/app/models/phcdevworks_scripts/script.rb +7 -7
  39. data/app/models/phcdevworks_scripts/script_author_versions.rb +0 -0
  40. data/app/models/phcdevworks_scripts/script_extension_versions.rb +0 -0
  41. data/app/models/phcdevworks_scripts/script_listing_versions.rb +0 -0
  42. data/app/models/phcdevworks_scripts/script_url_versions.rb +0 -0
  43. data/app/models/phcdevworks_scripts/script_version_versions.rb +0 -0
  44. data/app/models/phcdevworks_scripts/snippet/post.rb +28 -28
  45. data/app/models/phcdevworks_scripts/snippet/url.rb +19 -19
  46. data/app/models/phcdevworks_scripts/snippet.rb +7 -7
  47. data/app/models/phcdevworks_scripts/snippet_post_versions.rb +5 -5
  48. data/app/models/phcdevworks_scripts/snippet_url_versions.rb +5 -5
  49. data/app/views/layouts/phcdevworks_scripts/application.html.erb +131 -131
  50. data/app/views/layouts/phcdevworks_scripts/components/backend/footer/_footer.html.erb +0 -0
  51. data/app/views/layouts/phcdevworks_scripts/components/backend/navigation/_top_menu.html.erb +0 -0
  52. data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +0 -0
  53. data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +37 -37
  54. data/app/views/phcdevworks_scripts/script/authors/edit.html.erb +49 -49
  55. data/app/views/phcdevworks_scripts/script/authors/index.html.erb +78 -78
  56. data/app/views/phcdevworks_scripts/script/authors/new.html.erb +49 -49
  57. data/app/views/phcdevworks_scripts/script/authors/show.html.erb +49 -49
  58. data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +32 -32
  59. data/app/views/phcdevworks_scripts/script/extensions/edit.html.erb +49 -49
  60. data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +73 -73
  61. data/app/views/phcdevworks_scripts/script/extensions/new.html.erb +49 -49
  62. data/app/views/phcdevworks_scripts/script/extensions/show.html.erb +49 -49
  63. data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +73 -73
  64. data/app/views/phcdevworks_scripts/script/listings/edit.html.erb +47 -47
  65. data/app/views/phcdevworks_scripts/script/listings/index.html.erb +76 -76
  66. data/app/views/phcdevworks_scripts/script/listings/new.html.erb +47 -47
  67. data/app/views/phcdevworks_scripts/script/listings/show.html.erb +48 -48
  68. data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +42 -42
  69. data/app/views/phcdevworks_scripts/script/urls/edit.html.erb +60 -60
  70. data/app/views/phcdevworks_scripts/script/urls/index.html.erb +76 -76
  71. data/app/views/phcdevworks_scripts/script/urls/new.html.erb +49 -49
  72. data/app/views/phcdevworks_scripts/script/urls/show.html.erb +49 -49
  73. data/app/views/phcdevworks_scripts/script/versions/_form.html.erb +22 -22
  74. data/app/views/phcdevworks_scripts/script/versions/edit.html.erb +49 -49
  75. data/app/views/phcdevworks_scripts/script/versions/index.html.erb +72 -72
  76. data/app/views/phcdevworks_scripts/script/versions/new.html.erb +49 -49
  77. data/app/views/phcdevworks_scripts/script/versions/show.html.erb +49 -49
  78. data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +28 -28
  79. data/app/views/phcdevworks_scripts/snippet/posts/edit.html.erb +47 -47
  80. data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +82 -82
  81. data/app/views/phcdevworks_scripts/snippet/posts/new.html.erb +47 -47
  82. data/app/views/phcdevworks_scripts/snippet/posts/show.html.erb +71 -71
  83. data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +22 -22
  84. data/app/views/phcdevworks_scripts/snippet/urls/edit.html.erb +47 -47
  85. data/app/views/phcdevworks_scripts/snippet/urls/index.html.erb +80 -80
  86. data/app/views/phcdevworks_scripts/snippet/urls/new.html.erb +47 -47
  87. data/app/views/phcdevworks_scripts/snippet/urls/show.html.erb +71 -71
  88. data/config/routes.rb +33 -33
  89. data/config/spring.rb +1 -1
  90. data/db/migrate/20170517064030_create_phcdevworks_scripts_script_extension_versions.rb +0 -0
  91. data/db/migrate/20170517064049_create_phcdevworks_scripts_script_listing_versions.rb +18 -18
  92. data/db/migrate/20170517064114_create_phcdevworks_scripts_script_version_versions.rb +18 -18
  93. data/db/migrate/20170517064150_create_phcdevworks_scripts_script_url_versions.rb +0 -0
  94. data/db/migrate/20170517064208_create_phcdevworks_scripts_script_author_versions.rb +18 -18
  95. data/db/migrate/20190818022002_create_phcdevworks_scripts_snippet_posts.rb +18 -18
  96. data/db/migrate/20190818022024_create_phcdevworks_scripts_snippet_urls.rb +17 -17
  97. data/db/migrate/20190818022939_create_phcdevworks_scripts_script_authors.rb +18 -18
  98. data/db/migrate/20190818023353_create_phcdevworks_scripts_script_listings.rb +29 -29
  99. data/db/migrate/20190818023709_create_phcdevworks_scripts_script_extensions.rb +17 -17
  100. data/db/migrate/20190818023911_create_phcdevworks_scripts_script_urls.rb +21 -21
  101. data/db/migrate/20190818031653_create_phcdevworks_scripts_script_versions.rb +15 -15
  102. data/db/migrate/20191102092649_create_phcdevworks_scripts_snippet_url_versions.rb +18 -18
  103. data/db/migrate/20191102092711_create_phcdevworks_scripts_snippet_post_versions.rb +18 -18
  104. data/lib/phcdevworks_scripts/engine.rb +47 -47
  105. data/lib/phcdevworks_scripts/version.rb +3 -3
  106. data/lib/phcdevworks_scripts.rb +6 -6
  107. data/lib/tasks/phcdevworks_scripts_tasks.rake +4 -4
  108. metadata +33 -33
@@ -1,71 +1,71 @@
1
- <!-- Title System -->
2
- <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "Code Snippet Details" %>
4
- <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- Title System -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
-
22
- <!-- Button Area -->
23
- <div class="col-lg-4">
24
- <!-- Button Panel -->
25
- <div class="panel panel-inverse">
26
- <!-- Panel Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title">Options Panel</h4>
29
- </div>
30
- <!-- Panel Heading -->
31
- <!-- Panel Body -->
32
- <div class="panel-body">
33
- <div class="btn-group d-flex" role="group">
34
- <%= link_to 'Update', phcdevworks_scripts.edit_snippet_post_path, class: "btn btn-primary" %>
35
- <%= link_to 'Remove', phcdevworks_scripts.snippet_post_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
36
- </div>
37
- </div>
38
- <!-- Panel Body -->
39
- </div>
40
- <!-- Button Panel -->
41
- </div>
42
- <!-- Button Area -->
43
-
44
- <!-- Main Area -->
45
- <div class="col-lg-8">
46
- <!-- Main Panel -->
47
- <div class="panel panel-inverse">
48
- <!-- Panel Heading -->
49
- <div class="panel-heading">
50
- <div class="panel-heading-btn">
51
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
52
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
53
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
54
- </div>
55
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
56
- </div>
57
- <!-- Panel Heading -->
58
- <!-- Panel Body -->
59
- <div class="panel-body">
60
- <p class="h3"><%= @snippet_post.snippet_post_title %></p>
61
- <hr>
62
- <pre><code><%= @snippet_post.snippet_post_code %></code></pre>
63
- </div>
64
- <!-- Panel Body -->
65
- </div>
66
- <!-- Main Panel -->
67
- </div>
68
- <!-- Main Area -->
69
-
70
- </div>
71
- <!-- Page Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "Code Snippet Manager" %>
3
+ <% phc_title_tagline "Code Snippet Details" %>
4
+ <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+
22
+ <!-- Button Area -->
23
+ <div class="col-lg-4">
24
+ <!-- Button Panel -->
25
+ <div class="panel panel-inverse">
26
+ <!-- Panel Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title">Options Panel</h4>
29
+ </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
32
+ <div class="panel-body">
33
+ <div class="btn-group d-flex" role="group">
34
+ <%= link_to 'Update', phcdevworks_scripts.edit_snippet_post_path, class: "btn btn-primary" %>
35
+ <%= link_to 'Remove', phcdevworks_scripts.snippet_post_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
36
+ </div>
37
+ </div>
38
+ <!-- Panel Body -->
39
+ </div>
40
+ <!-- Button Panel -->
41
+ </div>
42
+ <!-- Button Area -->
43
+
44
+ <!-- Main Area -->
45
+ <div class="col-lg-8">
46
+ <!-- Main Panel -->
47
+ <div class="panel panel-inverse">
48
+ <!-- Panel Heading -->
49
+ <div class="panel-heading">
50
+ <div class="panel-heading-btn">
51
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
52
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
53
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
54
+ </div>
55
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
56
+ </div>
57
+ <!-- Panel Heading -->
58
+ <!-- Panel Body -->
59
+ <div class="panel-body">
60
+ <p class="h3"><%= @snippet_post.snippet_post_title %></p>
61
+ <hr>
62
+ <pre><code><%= @snippet_post.snippet_post_code %></code></pre>
63
+ </div>
64
+ <!-- Panel Body -->
65
+ </div>
66
+ <!-- Main Panel -->
67
+ </div>
68
+ <!-- Main Area -->
69
+
70
+ </div>
71
+ <!-- Page Content -->
@@ -1,22 +1,22 @@
1
- <!-- Form - Script - Script URLs -->
2
- <%= form_with(model: [ @script_snippet, @snippet_url], url: form_url, local: true) do |form| %>
3
-
4
- <!-- PHCNotifi Render Validation -->
5
- <%= render "phcdevworks_notifications/bootstrap/validations", :object => @snippet_url %>
6
- <!-- PHCNotifi Render Validation -->
7
-
8
- <!-- Form Input Fields -->
9
- <div class="form-group field_with_errors">
10
- <%= form.label :snippet_post_url, "Script URL" %>
11
- <%= form.text_field :snippet_post_url, placeholder: "Script Url", class: "form-control" %>
12
- </div>
13
- <!-- Form Input Fields -->
14
-
15
- <!-- Form Submition Button -->
16
- <div class="actions">
17
- <%= form.submit class: "btn btn-primary" %>
18
- </div>
19
- <!-- For Submition Button -->
20
-
21
- <% end %>
22
- <!-- Form - Script - Script URLs -->
1
+ <!-- Form - Script - Script URLs -->
2
+ <%= form_with(model: [ @script_snippet, @snippet_url], url: form_url, local: true) do |form| %>
3
+
4
+ <!-- PHCNotifi Render Validation -->
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @snippet_url %>
6
+ <!-- PHCNotifi Render Validation -->
7
+
8
+ <!-- Form Input Fields -->
9
+ <div class="form-group field_with_errors">
10
+ <%= form.label :snippet_post_url, "Script URL" %>
11
+ <%= form.text_field :snippet_post_url, placeholder: "Script Url", class: "form-control" %>
12
+ </div>
13
+ <!-- Form Input Fields -->
14
+
15
+ <!-- Form Submition Button -->
16
+ <div class="actions">
17
+ <%= form.submit class: "btn btn-primary" %>
18
+ </div>
19
+ <!-- For Submition Button -->
20
+
21
+ <% end %>
22
+ <!-- Form - Script - Script URLs -->
@@ -1,47 +1,47 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "Update Asset URL" %>
4
- <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Edit Form -->
36
- <%= render "form", { form_url: snippet_post_url_path } %>
37
- <!-- Edit Form -->
38
-
39
- </div>
40
- <!-- Panel - Body -->
41
-
42
- </div>
43
- <!-- Panel -->
44
-
45
- </div>
46
- </div>
47
- <!-- Page Content -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Code Snippet Manager" %>
3
+ <% phc_title_tagline "Update Asset URL" %>
4
+ <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- Edit Form -->
36
+ <%= render "form", { form_url: snippet_post_url_path } %>
37
+ <!-- Edit Form -->
38
+
39
+ </div>
40
+ <!-- Panel - Body -->
41
+
42
+ </div>
43
+ <!-- Panel -->
44
+
45
+ </div>
46
+ </div>
47
+ <!-- Page Content -->
@@ -1,80 +1,80 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "Update Asset Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Script Url</th>
42
- <th></th>
43
- </tr>
44
- </thead>
45
-
46
- <tbody>
47
- <% @snippet_urls.each do |snippet_url| %>
48
- <tr>
49
- <td><%= snippet_url.snippet_url %></td>
50
- <td>
51
- <div class="btn-group d-flex" role="group">
52
- <%= link_to "URL Details", snippet_post_url_path(snippet_url.post, snippet_url), class: "btn btn-purple btn-xs" %>
53
- <%= link_to "Update URL", edit_snippet_post_url_path(snippet_url.post, snippet_url), class: "btn btn-primary btn-xs" %>
54
- <%= link_to "Remove URL", snippet_post_url_path(snippet_url.post, snippet_url), method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
55
- </div>
56
- </td>
57
- </tr>
58
- <% end %>
59
- </tbody>
60
-
61
- </table>
62
- </div>
63
- <!-- Index - Table -->
64
-
65
- <!-- New Button -->
66
- <%= link_to phcdevworks_scripts.new_snippet_post_url_path, class: "btn btn-primary btn-sm" do %>
67
- <i class="fad fa-plus-circle"></i>
68
- Add a New Script URL
69
- <% end %>
70
- <!-- New Button -->
71
-
72
- </div>
73
- <!-- Panel - Body -->
74
-
75
- </div>
76
- <!-- Panel -->
77
-
78
- </div>
79
- </div>
80
- <!-- Page Content -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Code Snippet Manager" %>
3
+ <% phc_title_tagline "Update Asset Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- Index - Table -->
36
+ <div class="table-responsive">
37
+ <table class="table table-striped table-bordered">
38
+
39
+ <thead>
40
+ <tr>
41
+ <th>Script Url</th>
42
+ <th></th>
43
+ </tr>
44
+ </thead>
45
+
46
+ <tbody>
47
+ <% @snippet_urls.each do |snippet_url| %>
48
+ <tr>
49
+ <td><%= snippet_url.snippet_url %></td>
50
+ <td>
51
+ <div class="btn-group d-flex" role="group">
52
+ <%= link_to "URL Details", snippet_post_url_path(snippet_url.post, snippet_url), class: "btn btn-purple btn-xs" %>
53
+ <%= link_to "Update URL", edit_snippet_post_url_path(snippet_url.post, snippet_url), class: "btn btn-primary btn-xs" %>
54
+ <%= link_to "Remove URL", snippet_post_url_path(snippet_url.post, snippet_url), method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <% end %>
59
+ </tbody>
60
+
61
+ </table>
62
+ </div>
63
+ <!-- Index - Table -->
64
+
65
+ <!-- New Button -->
66
+ <%= link_to phcdevworks_scripts.new_snippet_post_url_path, class: "btn btn-primary btn-sm" do %>
67
+ <i class="fad fa-plus-circle"></i>
68
+ Add a New Script URL
69
+ <% end %>
70
+ <!-- New Button -->
71
+
72
+ </div>
73
+ <!-- Panel - Body -->
74
+
75
+ </div>
76
+ <!-- Panel -->
77
+
78
+ </div>
79
+ </div>
80
+ <!-- Page Content -->
@@ -1,47 +1,47 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "Create a New Asset URL" %>
4
- <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- New Form -->
36
- <%= render "form", { form_url: snippet_post_urls_path } %>
37
- <!-- New Form -->
38
-
39
- </div>
40
- <!-- Panel - Body -->
41
-
42
- </div>
43
- <!-- Panel -->
44
-
45
- </div>
46
- </div>
47
- <!-- Page Content -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Code Snippet Manager" %>
3
+ <% phc_title_tagline "Create a New Asset URL" %>
4
+ <% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- New Form -->
36
+ <%= render "form", { form_url: snippet_post_urls_path } %>
37
+ <!-- New Form -->
38
+
39
+ </div>
40
+ <!-- Panel - Body -->
41
+
42
+ </div>
43
+ <!-- Panel -->
44
+
45
+ </div>
46
+ </div>
47
+ <!-- Page Content -->