phccodesnipper 1.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/controllers/phccodesnipper/application_controller.rb +17 -17
  4. data/app/controllers/phccodesnipper/script/snippets_controller.rb +11 -10
  5. data/app/controllers/phccodesnipper/script/urls_controller.rb +3 -3
  6. data/app/models/phccodesnipper/script/snippet.rb +23 -1
  7. data/app/models/phccodesnipper/script/url.rb +8 -0
  8. data/app/views/layouts/phccodesnipper/application.html.erb +6 -5
  9. data/app/views/layouts/phccodesnipper/components/backend/footer/_footer.html.erb +5 -5
  10. data/app/views/layouts/phccodesnipper/components/backend/sidebars/_side_menu.html.erb +43 -26
  11. data/app/views/phccodesnipper/script/snippets/_form.html.erb +20 -17
  12. data/app/views/phccodesnipper/script/snippets/edit.html.erb +17 -21
  13. data/app/views/phccodesnipper/script/snippets/index.html.erb +14 -21
  14. data/app/views/phccodesnipper/script/snippets/new.html.erb +18 -22
  15. data/app/views/phccodesnipper/script/snippets/show.html.erb +4 -16
  16. data/app/views/phccodesnipper/script/urls/_form.html.erb +14 -10
  17. data/app/views/phccodesnipper/script/urls/edit.html.erb +10 -6
  18. data/app/views/phccodesnipper/script/urls/index.html.erb +21 -29
  19. data/app/views/phccodesnipper/script/urls/new.html.erb +11 -7
  20. data/app/views/phccodesnipper/script/urls/show.html.erb +4 -16
  21. data/config/initializers/friendly_id.rb +107 -0
  22. data/config/routes.rb +4 -4
  23. data/db/migrate/20190508091330_create_phccodesnipper_script_snippets.rb +1 -1
  24. data/db/migrate/20190513040626_create_friendly_id_slugs.rb +21 -0
  25. data/lib/phccodesnipper/engine.rb +16 -15
  26. data/lib/phccodesnipper/version.rb +1 -1
  27. data/lib/phccodesnipper.rb +0 -1
  28. metadata +68 -75
  29. data/app/assets/javascripts/phccodesnipper/script/snippets.coffee +0 -3
  30. data/app/assets/stylesheets/phccodesnipper/script/snippets.scss +0 -3
  31. data/app/assets/stylesheets/scaffolds.scss +0 -65
@@ -18,26 +18,22 @@
18
18
 
19
19
  <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
-
22
- <!-- Panel Heading -->
23
- <div class="panel-heading">
24
- <div class="panel-heading-btn">
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
26
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
- </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
- </div>
31
- <!-- Panel Heading -->
32
-
33
- <!-- Panel Body -->
34
- <div class="panel-body">
35
- <!-- Edit - Form - Script - Posts -->
36
- <%= render 'form', script_snippet: @script_snippet %>
37
- <!-- Edit - Form - Script - Posts -->
38
- </div>
39
- <!-- Panel Body -->
40
-
21
+ <!-- Panel Heading -->
22
+ <div class="panel-heading">
23
+ <div class="panel-heading-btn">
24
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
26
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
27
+ </div>
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
32
+ <div class="panel-body">
33
+ <!-- Form to Edit Script Snippet -->
34
+ <%= render 'form', script_snippet: @script_snippet %>
35
+ <!-- Form to Edit Script Snippet -->
36
+ </div>
37
+ <!-- Panel Body -->
41
38
  </div>
42
39
  <!-- Page & Panel Content -->
43
-
@@ -18,7 +18,6 @@
18
18
 
19
19
  <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
-
22
21
  <!-- Panel Heading -->
23
22
  <div class="panel-heading">
24
23
  <div class="panel-heading-btn">
@@ -29,47 +28,41 @@
29
28
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
29
  </div>
31
30
  <!-- Panel Heading -->
32
-
33
31
  <!-- Panel Body -->
34
32
  <div class="panel-body">
35
-
36
33
  <!-- Table - Snippet Index -->
37
34
  <div class="table-responsive">
38
35
  <table class="table table-striped table-bordered">
39
-
40
36
  <thead>
41
37
  <tr>
42
- <th>Snippet Tittle</th>
38
+ <th>Snippet Title</th>
43
39
  <th>Snippet Summary</th>
44
- <th colspan="3"></th>
40
+ <th></th>
45
41
  </tr>
46
42
  </thead>
47
43
  <tbody>
48
44
  <% @script_snippets.each do |script_snippet| %>
49
45
  <tr>
50
- <td><%= script_snippet.snippet_tittle %></td>
46
+ <td><%= script_snippet.snippet_title %></td>
51
47
  <td><%= truncate(script_snippet.snippet_code, :length => 80) %></td>
52
- <td>
53
- <div class="btn-group d-flex" role="group">
54
- <%= link_to 'Details', script_snippet, class: "btn btn-purple btn-xs" %>
55
- <%= link_to 'Update', edit_script_snippet_path(script_snippet), class: "btn btn-primary btn-xs" %>
56
- <%= link_to 'Remmove', script_snippet, method: :delete, data: { confirm: 'Are you sure? This will aslo delte the snippet urls.' }, class: "btn btn-danger btn-xs" %>
57
- </div>
58
- </td>
48
+ <td>
49
+ <div class="btn-group d-flex" role="group">
50
+ <%= link_to 'Details', script_snippet, class: "btn btn-purple btn-xs" %>
51
+ <%= link_to 'Update', edit_script_snippet_path(script_snippet), class: "btn btn-primary btn-xs" %>
52
+ <%= link_to 'Remmove', script_snippet, method: :delete, data: { confirm: 'Are you sure? This will aslo delte the snippet urls.' }, class: "btn btn-danger btn-xs" %>
53
+ </div>
54
+ </td>
59
55
  </tr>
60
56
  <% end %>
61
57
  </tbody>
62
-
63
58
  </table>
64
- <%= link_to phccodesnipper.new_script_snippet_path, class: "btn btn-primary btn-sm" do %>
65
- <i class="fas fa-plus-circle"></i>
66
- Add a New Code Snippet
67
- <% end %>
59
+ <%= link_to phccodesnipper.new_script_snippet_path, class: "btn btn-primary btn-sm" do %>
60
+ <i class="fas fa-plus-circle"></i>
61
+ Add a New Code Snippet
62
+ <% end %>
68
63
  </div>
69
64
  <!-- Table - Snippet Index -->
70
-
71
65
  </div>
72
66
  <!-- Panel Body -->
73
-
74
67
  </div>
75
68
  <!-- Page & Panel Content -->
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "New Code Snippet" %>
3
+ <% phc_title_tagline "Create a New Code Snippet" %>
4
4
  <% phc_breadcrumb_one link_to "Code Snippet Index", phccodesnipper.script_snippets_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
@@ -18,26 +18,22 @@
18
18
 
19
19
  <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
-
22
- <!-- Panel Heading -->
23
- <div class="panel-heading">
24
- <div class="panel-heading-btn">
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
26
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
- </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
- </div>
31
- <!-- Panel Heading -->
32
-
33
- <!-- Panel Body -->
34
- <div class="panel-body">
35
- <!-- New - Form - Script - Posts -->
36
- <%= render 'form', script_snippet: @script_snippet %>
37
- <!-- New - Form - Script - Posts -->
38
- </div>
39
- <!-- Panel Body -->
40
-
21
+ <!-- Panel Heading -->
22
+ <div class="panel-heading">
23
+ <div class="panel-heading-btn">
24
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
26
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
27
+ </div>
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
32
+ <div class="panel-body">
33
+ <!-- Form for New Script Snippet -->
34
+ <%= render 'form', script_snippet: @script_snippet %>
35
+ <!-- Form for New Script Snippet -->
36
+ </div>
37
+ <!-- Panel Body -->
41
38
  </div>
42
39
  <!-- Page & Panel Content -->
43
-
@@ -7,8 +7,8 @@
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
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>
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
@@ -21,39 +21,30 @@
21
21
 
22
22
  <!-- Button Area -->
23
23
  <div class="col-lg-4">
24
-
25
24
  <!-- Button Panel -->
26
25
  <div class="panel panel-inverse">
27
-
28
26
  <!-- Panel Heading -->
29
27
  <div class="panel-heading">
30
28
  <h4 class="panel-title">Options Panel</h4>
31
29
  </div>
32
30
  <!-- Panel Heading -->
33
-
34
31
  <!-- Panel Body -->
35
32
  <div class="panel-body">
36
-
37
33
  <div class="btn-group d-flex" role="group">
38
34
  <%= link_to 'Update', phccodesnipper.edit_script_snippet_path, class: "btn btn-primary" %>
39
35
  <%= link_to 'Remove', phccodesnipper.script_snippet_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
40
- </div>
41
-
36
+ </div>
42
37
  </div>
43
38
  <!-- Panel Body -->
44
-
45
39
  </div>
46
40
  <!-- Button Panel -->
47
-
48
41
  </div>
49
42
  <!-- Button Area -->
50
43
 
51
44
  <!-- Main Area -->
52
45
  <div class="col-lg-8">
53
-
54
46
  <!-- Main Panel -->
55
47
  <div class="panel panel-inverse">
56
-
57
48
  <!-- Panel Heading -->
58
49
  <div class="panel-heading">
59
50
  <div class="panel-heading-btn">
@@ -64,18 +55,15 @@
64
55
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
65
56
  </div>
66
57
  <!-- Panel Heading -->
67
-
68
58
  <!-- Panel Body -->
69
59
  <div class="panel-body">
70
- <p class="h3"><%= @script_snippet.snippet_tittle %></p>
60
+ <p class="h3"><%= @script_snippet.snippet_title %></p>
71
61
  <hr>
72
62
  <pre><code><%= @script_snippet.snippet_code %></code></pre>
73
63
  </div>
74
64
  <!-- Panel Body -->
75
-
76
65
  </div>
77
66
  <!-- Main Panel -->
78
-
79
67
  </div>
80
68
  <!-- Main Area -->
81
69
 
@@ -1,18 +1,22 @@
1
1
  <!-- Form - Script - Url -->
2
2
  <%= form_with(model: [ @script_snippet, @script_url], url: form_url, local: true) do |form| %>
3
3
 
4
- <!-- Render Validation -->
5
- <%= render 'phcnotifi/validations', :object => @script_url %>
6
- <!-- Render Validation -->
4
+ <!-- PHCNotifi Render Validation -->
5
+ <%= render 'phcnotifi/default/validations', :object => @script_url %>
6
+ <!-- PHCNotifi Render Validation -->
7
7
 
8
- <div class="form-group field_with_errors">
9
- <%= form.label :script_url %>
10
- <%= form.text_field :script_url, class: 'form-control', placeholder: 'Script Url' %>
11
- </div>
8
+ <!-- Form Input Fields -->
9
+ <div class="form-group field_with_errors">
10
+ <%= form.label :script_url %>
11
+ <%= form.text_field :script_url, class: 'form-control', placeholder: 'Script Url' %>
12
+ </div>
13
+ <!-- Form Input Fields -->
12
14
 
13
- <div class="actions">
14
- <%= form.submit class: "btn btn-primary" %>
15
- </div>
15
+ <!-- Form Submition Button -->
16
+ <div class="actions">
17
+ <%= form.submit class: "btn btn-primary" %>
18
+ </div>
19
+ <!-- For Submition Button -->
16
20
 
17
21
  <% end %>
18
22
  <!-- Form - Script - Url -->
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "Update Code URL" %>
3
+ <% phc_title_tagline "Update Asset URL" %>
4
4
  <% phc_breadcrumb_one link_to "Code Snippet Index", phccodesnipper.script_snippets_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
@@ -16,8 +16,9 @@
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
19
+ <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
+ <!-- Panel Heading -->
21
22
  <div class="panel-heading">
22
23
  <div class="panel-heading-btn">
23
24
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
@@ -26,10 +27,13 @@
26
27
  </div>
27
28
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
29
  </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
29
32
  <div class="panel-body">
30
- <!-- Edit - Form - Script - Posts -->
31
- <%= render 'form', { form_url: script_snippet_url_path } %>
32
- <!-- Edit - Form - Script - Posts -->
33
+ <!-- Form to Edit Script Snippet Asset URLS -->
34
+ <%= render 'form', { form_url: script_snippet_url_path } %>
35
+ <!-- Form to Edit Script Snippet Asset URLS -->
33
36
  </div>
37
+ <!-- Panel Body -->
34
38
  </div>
35
- <!-- Page Content -->
39
+ <!-- Page & Panel Content -->
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "Code Snippet Index" %>
3
+ <% phc_title_tagline "Update Asset Index" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Code Snippet Index", phccodesnipper.script_snippets_path %>
6
6
  <!-- Title System -->
@@ -18,7 +18,6 @@
18
18
 
19
19
  <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
-
22
21
  <!-- Panel Heading -->
23
22
  <div class="panel-heading">
24
23
  <div class="panel-heading-btn">
@@ -29,46 +28,39 @@
29
28
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
29
  </div>
31
30
  <!-- Panel Heading -->
32
-
33
31
  <!-- Panel Body -->
34
32
  <div class="panel-body">
35
-
36
33
  <!-- Table - Snippet Index -->
37
34
  <div class="table-responsive">
38
35
  <table class="table table-striped table-bordered">
39
-
40
36
  <thead>
41
- <tr>
42
- <th>Script Url</th>
43
- <th colspan="3"></th>
44
- </tr>
37
+ <tr>
38
+ <th>Script Url</th>
39
+ <th colspan="3"></th>
40
+ </tr>
45
41
  </thead>
46
-
47
42
  <tbody>
48
- <% @script_urls.each do |script_url| %>
49
- <tr>
50
- <td><%= script_url.script_url %></td>
51
- <td>
52
- <div class="btn-group d-flex" role="group">
53
- <%= link_to 'Details', script_snippet_url_path(script_url.snippet, script_url), class: "btn btn-purple btn-xs" %>
54
- <%= link_to 'Update', edit_script_snippet_url_path(script_url.snippet, script_url), class: "btn btn-primary btn-xs" %>
55
- <%= link_to 'Remove', script_snippet_url_path(script_url.snippet, script_url), method: :delete, data: { confirm: 'Are you sure? This action cannot be reversed.' }, class: "btn btn-danger btn-xs" %>
56
- </div>
57
- </td>
58
- </tr>
59
- <% end %>
43
+ <% @script_urls.each do |script_url| %>
44
+ <tr>
45
+ <td><%= script_url.script_url %></td>
46
+ <td>
47
+ <div class="btn-group d-flex" role="group">
48
+ <%= link_to 'Details', script_snippet_url_path(script_url.snippet, script_url), class: "btn btn-purple btn-xs" %>
49
+ <%= link_to 'Update', edit_script_snippet_url_path(script_url.snippet, script_url), class: "btn btn-primary btn-xs" %>
50
+ <%= link_to 'Remove', script_snippet_url_path(script_url.snippet, script_url), method: :delete, data: { confirm: 'Are you sure? This action cannot be reversed.' }, class: "btn btn-danger btn-xs" %>
51
+ </div>
52
+ </td>
53
+ </tr>
54
+ <% end %>
60
55
  </tbody>
61
-
62
56
  </table>
63
- <%= link_to phccodesnipper.new_script_snippet_url_path, class: "btn btn-primary btn-sm" do %>
64
- <i class="fas fa-plus-circle"></i>
65
- Add a New Script URL
66
- <% end %>
57
+ <%= link_to phccodesnipper.new_script_snippet_url_path, class: "btn btn-primary btn-sm" do %>
58
+ <i class="fas fa-plus-circle"></i>
59
+ Add a New Script URL
60
+ <% end %>
67
61
  </div>
68
62
  <!-- Table - Snippet Index -->
69
-
70
63
  </div>
71
64
  <!-- Panel Body -->
72
-
73
65
  </div>
74
66
  <!-- Page & Panel Content -->
@@ -1,7 +1,7 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "New Code URL" %>
4
- <% phc_breadcrumb_one link_to "Code Snippet Index", phccodesnipper.script_snippet_urls_path %>
3
+ <% phc_title_tagline "Create a New Asset URL" %>
4
+ <% phc_breadcrumb_one link_to "Code Snippet Index", phccodesnipper.script_snippets_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
7
 
@@ -16,8 +16,9 @@
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
19
+ <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
+ <!-- Panel Heading -->
21
22
  <div class="panel-heading">
22
23
  <div class="panel-heading-btn">
23
24
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
@@ -26,10 +27,13 @@
26
27
  </div>
27
28
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
29
  </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
29
32
  <div class="panel-body">
30
- <!-- Edit - Form - Script - Posts -->
31
- <%= render 'form', { form_url: script_snippet_urls_path } %>
32
- <!-- Edit - Form - Script - Posts -->
33
+ <!-- Form for New Script Asset URL -->
34
+ <%= render 'form', { form_url: script_snippet_urls_path } %>
35
+ <!-- Form for New Script Asset URL -->
33
36
  </div>
37
+ <!-- Panel Body -->
34
38
  </div>
35
- <!-- Page Content -->
39
+ <!-- Page & Panel Content -->
@@ -1,14 +1,14 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Code Snippet Manager" %>
3
- <% phc_title_tagline "Url Details" %>
3
+ <% phc_title_tagline "Asset URL Details" %>
4
4
  <% phc_breadcrumb_one link_to "Code Snippet Index", phccodesnipper.script_snippets_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
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>
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
@@ -21,39 +21,30 @@
21
21
 
22
22
  <!-- Button Area -->
23
23
  <div class="col-lg-4">
24
-
25
24
  <!-- Button Panel -->
26
25
  <div class="panel panel-inverse">
27
-
28
26
  <!-- Panel Heading -->
29
27
  <div class="panel-heading">
30
28
  <h4 class="panel-title">Options Panel</h4>
31
29
  </div>
32
30
  <!-- Panel Heading -->
33
-
34
31
  <!-- Panel Body -->
35
32
  <div class="panel-body">
36
-
37
33
  <div class="btn-group d-flex" role="group">
38
34
  <%= link_to 'Update', phccodesnipper.edit_script_snippet_url_path, class: "btn btn-primary" %>
39
35
  <%= link_to 'Remove', phccodesnipper.script_snippet_urls_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
40
- </div>
41
-
36
+ </div>
42
37
  </div>
43
38
  <!-- Panel Body -->
44
-
45
39
  </div>
46
40
  <!-- Button Panel -->
47
-
48
41
  </div>
49
42
  <!-- Button Area -->
50
43
 
51
44
  <!-- Main Area -->
52
45
  <div class="col-lg-8">
53
-
54
46
  <!-- Main Panel -->
55
47
  <div class="panel panel-inverse">
56
-
57
48
  <!-- Panel Heading -->
58
49
  <div class="panel-heading">
59
50
  <div class="panel-heading-btn">
@@ -64,7 +55,6 @@
64
55
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
65
56
  </div>
66
57
  <!-- Panel Heading -->
67
-
68
58
  <!-- Panel Body -->
69
59
  <div class="panel-body">
70
60
  <p class="h3">Script Snippet URL</p>
@@ -72,10 +62,8 @@
72
62
  <pre><code><%= @script_url.script_url %></code></pre>
73
63
  </div>
74
64
  <!-- Panel Body -->
75
-
76
65
  </div>
77
66
  <!-- Main Panel -->
78
-
79
67
  </div>
80
68
  <!-- Main Area -->
81
69