phcdevworks_press 8.4.0 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +2 -1
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_press_manifest.js +2 -3
  6. data/app/controllers/phcdevworks_press/application_controller.rb +0 -0
  7. data/app/controllers/phcdevworks_press/article/posts_controller.rb +0 -0
  8. data/app/controllers/phcdevworks_press/blog/articles_controller.rb +0 -0
  9. data/app/controllers/phcdevworks_press/blog/lists_controller.rb +0 -0
  10. data/app/controllers/phcdevworks_press/blog/reviews_controller.rb +0 -0
  11. data/app/controllers/phcdevworks_press/list/items_controller.rb +0 -0
  12. data/app/controllers/phcdevworks_press/list/posts_controller.rb +0 -0
  13. data/app/controllers/phcdevworks_press/review/posts_controller.rb +0 -0
  14. data/app/helpers/phcdevworks_press/application_helper.rb +0 -0
  15. data/app/helpers/phcdevworks_press/article/posts_helper.rb +0 -0
  16. data/app/helpers/phcdevworks_press/blog/articles_helper.rb +0 -0
  17. data/app/helpers/phcdevworks_press/list/items_helper.rb +0 -0
  18. data/app/helpers/phcdevworks_press/list/posts_helper.rb +0 -0
  19. data/app/helpers/phcdevworks_press/review/posts_helper.rb +0 -0
  20. data/app/jobs/phcdevworks_press/application_job.rb +0 -0
  21. data/app/mailers/phcdevworks_press/application_mailer.rb +0 -0
  22. data/app/models/phcdevworks_press/application_record.rb +0 -0
  23. data/app/models/phcdevworks_press/article/post.rb +1 -1
  24. data/app/models/phcdevworks_press/article.rb +0 -0
  25. data/app/models/phcdevworks_press/article_post_versions.rb +0 -0
  26. data/app/models/phcdevworks_press/list/item.rb +1 -1
  27. data/app/models/phcdevworks_press/list/post.rb +1 -1
  28. data/app/models/phcdevworks_press/list.rb +0 -0
  29. data/app/models/phcdevworks_press/list_item_versions.rb +0 -0
  30. data/app/models/phcdevworks_press/list_post_versions.rb +0 -0
  31. data/app/models/phcdevworks_press/review/post.rb +1 -1
  32. data/app/models/phcdevworks_press/review.rb +0 -0
  33. data/app/models/phcdevworks_press/review_post_versions.rb +0 -0
  34. data/app/views/layouts/phcdevworks_press/application.html.erb +73 -131
  35. data/app/views/layouts/phcdevworks_press/components/backend/footer/_footer.html.erb +10 -9
  36. data/app/views/layouts/phcdevworks_press/components/backend/navigation/_top_menu.html.erb +26 -25
  37. data/app/views/layouts/phcdevworks_press/components/backend/sidebars/_side_menu.html.erb +491 -349
  38. data/app/views/phcdevworks_press/article/posts/_form.html.erb +14 -17
  39. data/app/views/phcdevworks_press/article/posts/edit.html.erb +2 -2
  40. data/app/views/phcdevworks_press/article/posts/index.html.erb +49 -57
  41. data/app/views/phcdevworks_press/article/posts/new.html.erb +1 -1
  42. data/app/views/phcdevworks_press/blog/articles/index.html.erb +0 -0
  43. data/app/views/phcdevworks_press/blog/articles/show.html.erb +0 -0
  44. data/app/views/phcdevworks_press/list/items/_form.html.erb +0 -0
  45. data/app/views/phcdevworks_press/list/items/edit.html.erb +17 -25
  46. data/app/views/phcdevworks_press/list/items/index.html.erb +47 -55
  47. data/app/views/phcdevworks_press/list/items/new.html.erb +17 -25
  48. data/app/views/phcdevworks_press/list/items/show.html.erb +0 -0
  49. data/app/views/phcdevworks_press/list/posts/_form.html.erb +0 -0
  50. data/app/views/phcdevworks_press/list/posts/edit.html.erb +2 -2
  51. data/app/views/phcdevworks_press/list/posts/index.html.erb +50 -58
  52. data/app/views/phcdevworks_press/list/posts/new.html.erb +1 -1
  53. data/app/views/phcdevworks_press/list/posts/show.html.erb +42 -50
  54. data/app/views/phcdevworks_press/review/posts/_form.html.erb +0 -0
  55. data/app/views/phcdevworks_press/review/posts/edit.html.erb +2 -2
  56. data/app/views/phcdevworks_press/review/posts/index.html.erb +49 -57
  57. data/app/views/phcdevworks_press/review/posts/new.html.erb +1 -1
  58. data/app/views/phcdevworks_press/review/posts/show.html.erb +0 -0
  59. data/config/routes.rb +34 -38
  60. data/config/spring.rb +0 -0
  61. data/db/migrate/20170517064030_create_phcdevworks_press_article_post_versions.rb +1 -1
  62. data/db/migrate/20190805232522_create_phcdevworks_press_article_posts.rb +1 -1
  63. data/db/migrate/20191024232406_create_phcdevworks_press_article_categories_posts.rb +1 -1
  64. data/db/migrate/20200708231335_create_phcdevworks_press_list_post_versions.rb +1 -1
  65. data/db/migrate/20200708231351_create_phcdevworks_press_review_post_versions.rb +1 -1
  66. data/db/migrate/20200712064624_create_phcdevworks_press_list_posts.rb +1 -1
  67. data/db/migrate/20200712064740_create_phcdevworks_press_review_posts.rb +1 -1
  68. data/db/migrate/20200712064920_create_phcdevworks_press_list_items.rb +1 -1
  69. data/db/migrate/20200712065808_create_phcdevworks_press_list_item_versions.rb +1 -1
  70. data/db/migrate/20200716224648_create_phcdevworks_press_review_categories_posts.rb +1 -1
  71. data/db/migrate/20200716224738_create_phcdevworks_press_list_categories_posts.rb +1 -1
  72. data/db/migrate/20210213025633_add_affiliatelink_to_article_posts.rb +1 -1
  73. data/lib/phcdevworks_press/engine.rb +47 -47
  74. data/lib/phcdevworks_press/version.rb +3 -3
  75. data/lib/phcdevworks_press.rb +6 -6
  76. data/lib/tasks/phcdevworks_press_tasks.rake +4 -4
  77. metadata +28 -78
  78. data/app/assets/stylesheets/phcdevworks_press/application.scss +0 -0
  79. data/app/assets/stylesheets/phcdevworks_press/article/posts.scss +0 -0
  80. data/app/assets/stylesheets/phcdevworks_press/blog/articles.scss +0 -0
  81. data/app/assets/stylesheets/phcdevworks_press/list/items.scss +0 -3
  82. data/app/assets/stylesheets/phcdevworks_press/list/posts.scss +0 -3
  83. data/app/assets/stylesheets/phcdevworks_press/review/posts.scss +0 -3
  84. data/app/views/layouts/phcdevworks_press/frontend.html.erb +0 -5
@@ -9,8 +9,8 @@
9
9
  <h4 class="panel-title">Publish Panel</h4>
10
10
  </div>
11
11
  <div class="panel-body">
12
- <div class="form-group field_with_errors">
13
- <%= form.label :article_post_status, "Post Status" %>
12
+ <div class="mb-3">
13
+ <%= form.label :article_post_status, "Post Status", class: "form-label" %>
14
14
  <%= form.select( :article_post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control"}) %>
15
15
  </div>
16
16
  <div class="actions">
@@ -26,8 +26,8 @@
26
26
  <h4 class="panel-title">Post Images</h4>
27
27
  </div>
28
28
  <div class="panel-body">
29
- <div class="form-group field_with_errors">
30
- <%= form.label :article_post_image, "Featured Image" %>
29
+ <div class="mb-3">
30
+ <%= form.label :article_post_image, "Featured Image", class: "form-label" %>
31
31
  <%= form.file_field :article_post_image, class: "form-control" %>
32
32
  </div>
33
33
  <% if form.object.article_post_image.attached? %>
@@ -57,16 +57,16 @@
57
57
  <h4 class="panel-title">Article Marketing</h4>
58
58
  </div>
59
59
  <div class="panel-body">
60
- <div class="form-group">
61
- <label>Attach SEO Data</label>
60
+ <div class="mb-3">
61
+ <label class="form-label">Attach SEO Data</label>
62
62
  <%= collection_select(:article_post, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("marketing_optimization_page_title"), :id, :marketing_optimization_page_title, {include_blank: true}, {class: "form-control"}) %>
63
63
  </div>
64
- <div class="form-group">
65
- <label>Attach Affiliate Data</label>
64
+ <div class="mb-3">
65
+ <label class="form-label">Attach Affiliate Data</label>
66
66
  <%= collection_select(:article_post, :link_id, PhcdevworksCoreModules::Affiliate::Link.order("affiliate_link_name"), :id, :affiliate_link_name, {include_blank: true}, {class: "form-control"}) %>
67
67
  </div>
68
- <div class="form-group field_with_errors">
69
- <%= form.label :slug, "Article Slug" %>
68
+ <div class="mb-3">
69
+ <%= form.label :slug, "Article Slug", class: "form-label" %>
70
70
  <%= form.text_field :slug, class: "form-control", disabled: (true if article_post.new_record?) %>
71
71
  </div>
72
72
  </div>
@@ -82,18 +82,15 @@
82
82
 
83
83
  <div class="panel panel-inverse">
84
84
  <div class="panel-heading">
85
- <div class="panel-heading-btn">
86
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
87
- </div>
88
85
  <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
89
86
  </div>
90
87
  <div class="panel-body">
91
- <div class="form-group field_with_errors">
92
- <%= form.label :article_post_title, "Article Title" %>
88
+ <div class="mb-3">
89
+ <%= form.label :article_post_title, "Article Title", class: "form-label" %>
93
90
  <%= form.text_field :article_post_title, class: "form-control" %>
94
91
  </div>
95
- <div class="form-group ">
96
- <%= form.text_area :article_post_text, class: "form-control editor" %>
92
+ <div class="mb-3">
93
+ <%= form.text_area :article_post_text, class: "form-control editor", rows: "32" %>
97
94
  <div id="word-count" class="mt-3"></div>
98
95
  </div>
99
96
  </div>
@@ -7,7 +7,7 @@
7
7
  <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
10
+ <ol class="breadcrumb float-xl-end">
11
11
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
12
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
13
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
@@ -15,7 +15,7 @@
15
15
  <!-- Page Bradcrumbs -->
16
16
 
17
17
  <!-- Page Header -->
18
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
20
 
21
21
  <!-- Edit Form -->
@@ -6,78 +6,70 @@
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
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>Post Headline</th>
42
- <th>Post Preview</th>
43
- <th>Post Status</th>
44
- <th></th>
45
- </tr>
46
- </thead>
22
+ <!-- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- Panel - Heading -->
47
27
 
48
- <tbody>
49
- <% @article_posts.each do |article_post| %>
50
- <tr>
51
- <td><%= article_post.article_post_title %></td>
52
- <td><%= truncate(article_post.article_post_text, :length => 80, :escape => false) %></td>
53
- <td><%= article_post.article_post_status.capitalize %></td>
54
- <td>
55
- <div class="btn-group d-flex" role="group">
56
- <%= link_to "Update Post", edit_article_post_path(article_post), class: "btn btn-primary btn-xs" %>
57
- <%= link_to "Remove Post", article_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
58
- </div>
59
- </td>
60
- </tr>
61
- <% end %>
62
- </tbody>
28
+ <!-- Panel - Body -->
29
+ <div class="panel-body">
63
30
 
64
- </table>
65
- </div>
66
- <!-- Index - Table -->
31
+ <!-- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
67
34
 
68
- <!-- New Button -->
69
- <%= link_to phcdevworks_press.new_article_post_path, class: "btn btn-primary" do %>
70
- <i class="fad fa-plus-circle"></i>
71
- <%= "Add a New Article Post" %>
72
- <% end %>
73
- <!-- New Button -->
35
+ <thead>
36
+ <tr>
37
+ <th>Post Headline</th>
38
+ <th>Post Preview</th>
39
+ <th>Post Status</th>
40
+ <th></th>
41
+ </tr>
42
+ </thead>
74
43
 
75
- </div>
76
- <!-- Panel - Body -->
44
+ <tbody>
45
+ <% @article_posts.each do |article_post| %>
46
+ <tr>
47
+ <td><%= article_post.article_post_title %></td>
48
+ <td><%= truncate(article_post.article_post_text, :length => 80, :escape => false) %></td>
49
+ <td><%= article_post.article_post_status.capitalize %></td>
50
+ <td>
51
+ <div class="btn-group d-flex" role="group">
52
+ <%= link_to "Update Post", edit_article_post_path(article_post), class: "btn btn-primary btn-xs" %>
53
+ <%= link_to "Remove Post", article_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
54
+ </div>
55
+ </td>
56
+ </tr>
57
+ <% end %>
58
+ </tbody>
77
59
 
60
+ </table>
78
61
  </div>
79
- <!-- Panel -->
62
+ <!-- Index - Table -->
63
+
64
+ <!-- New Button -->
65
+ <%= link_to phcdevworks_press.new_article_post_path, class: "btn btn-primary" do %>
66
+ <i class="fad fa-plus-circle"></i>
67
+ <%= "Add a New Article Post" %>
68
+ <% end %>
69
+ <!-- New Button -->
80
70
 
81
71
  </div>
72
+ <!-- Panel - Body -->
73
+
82
74
  </div>
83
- <!-- Page Content -->
75
+ <!-- Panel -->
@@ -7,7 +7,7 @@
7
7
  <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
10
+ <ol class="breadcrumb float-xl-end">
11
11
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
12
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
13
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
@@ -6,42 +6,34 @@
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
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: list_post_item_path } %>
37
- <!-- Edit Form -->
22
+ <!-- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- Edit Form -->
32
+ <%= render "form", { form_url: list_post_item_path } %>
33
+ <!-- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- Panel -->
@@ -6,76 +6,68 @@
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
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>Item Headline</th>
42
- <th>Text Preview</th>
43
- <th></th>
44
- </tr>
45
- </thead>
22
+ <!-- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- Panel - Heading -->
46
27
 
47
- <tbody>
48
- <% @list_items.each do |list_item| %>
49
- <tr>
50
- <td><%= list_item.list_item_title %></td>
51
- <td><%= truncate(list_item.list_item_text, :length => 80, :escape => false) %></td>
52
- <td>
53
- <div class="btn-group d-flex" role="group">
54
- <%= link_to "Update Item", edit_list_post_item_path(list_item.post, list_item), class: "btn btn-primary btn-xs" %>
55
- <%= link_to "Remove Item", list_post_item_path(list_item.post, list_item), 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 %>
60
- </tbody>
28
+ <!-- Panel - Body -->
29
+ <div class="panel-body">
61
30
 
62
- </table>
63
- </div>
64
- <!-- Index - Table -->
31
+ <!-- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
65
34
 
66
- <!-- New Button -->
67
- <%= link_to phcdevworks_press.new_list_post_item_path, class: "btn btn-primary" do %>
68
- <i class="fad fa-plus-circle"></i>
69
- <%= "Add a New List Item" %>
70
- <% end %>
71
- <!-- New Button -->
35
+ <thead>
36
+ <tr>
37
+ <th>Item Headline</th>
38
+ <th>Text Preview</th>
39
+ <th></th>
40
+ </tr>
41
+ </thead>
72
42
 
73
- </div>
74
- <!-- Panel - Body -->
43
+ <tbody>
44
+ <% @list_items.each do |list_item| %>
45
+ <tr>
46
+ <td><%= list_item.list_item_title %></td>
47
+ <td><%= truncate(list_item.list_item_text, :length => 80, :escape => false) %></td>
48
+ <td>
49
+ <div class="btn-group d-flex" role="group">
50
+ <%= link_to "Update Item", edit_list_post_item_path(list_item.post, list_item), class: "btn btn-primary btn-xs" %>
51
+ <%= link_to "Remove Item", list_post_item_path(list_item.post, list_item), method: :delete, data: { confirm: "Are you sure? This Action Cannot be Reversed." }, class: "btn btn-danger btn-xs" %>
52
+ </div>
53
+ </td>
54
+ </tr>
55
+ <% end %>
56
+ </tbody>
75
57
 
58
+ </table>
76
59
  </div>
77
- <!-- Panel -->
60
+ <!-- Index - Table -->
61
+
62
+ <!-- New Button -->
63
+ <%= link_to phcdevworks_press.new_list_post_item_path, class: "btn btn-primary" do %>
64
+ <i class="fad fa-plus-circle"></i>
65
+ <%= "Add a New List Item" %>
66
+ <% end %>
67
+ <!-- New Button -->
78
68
 
79
69
  </div>
70
+ <!-- Panel - Body -->
71
+
80
72
  </div>
81
- <!-- Page Content -->
73
+ <!-- Panel -->
@@ -7,42 +7,34 @@
7
7
  <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
10
+ <ol class="breadcrumb float-xl-end">
11
11
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
12
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
13
13
  </ol>
14
14
  <!-- Page Bradcrumbs -->
15
15
 
16
16
  <!-- Page Header -->
17
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
18
  <!-- Page Header -->
19
19
 
20
- <!-- Page Content -->
21
- <div class="row">
22
- <div class="col-lg-12">
20
+ <!-- Panel -->
21
+ <div class="panel panel-inverse">
23
22
 
24
- <!-- Panel -->
25
- <div class="panel panel-inverse">
26
-
27
- <!-- Panel - Heading -->
28
- <div class="panel-heading">
29
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
- </div>
31
- <!-- Panel - Heading -->
32
-
33
- <!-- Panel - Body -->
34
- <div class="panel-body">
35
-
36
- <!-- New Form -->
37
- <%= render "form", { form_url: list_post_items_path } %>
38
- <!-- New Form -->
23
+ <!-- Panel - Heading -->
24
+ <div class="panel-heading">
25
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
26
+ </div>
27
+ <!-- Panel - Heading -->
39
28
 
40
- </div>
41
- <!-- Panel - Body -->
29
+ <!-- Panel - Body -->
30
+ <div class="panel-body">
42
31
 
43
- </div>
44
- <!-- Panel -->
32
+ <!-- New Form -->
33
+ <%= render "form", { form_url: list_post_items_path } %>
34
+ <!-- New Form -->
45
35
 
46
36
  </div>
37
+ <!-- Panel - Body -->
38
+
47
39
  </div>
48
- <!-- Page Content -->
40
+ <!-- Panel -->
File without changes
@@ -7,7 +7,7 @@
7
7
  <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
10
+ <ol class="breadcrumb float-xl-end">
11
11
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
12
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
13
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
@@ -15,7 +15,7 @@
15
15
  <!-- Page Bradcrumbs -->
16
16
 
17
17
  <!-- Page Header -->
18
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
20
 
21
21
  <!-- Edit Form -->
@@ -6,79 +6,71 @@
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
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>List Headline</th>
42
- <th>Text Preview</th>
43
- <th>List Status</th>
44
- <th></th>
45
- </tr>
46
- </thead>
22
+ <!-- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- Panel - Heading -->
47
27
 
48
- <tbody>
49
- <% @list_posts.each do |list_post| %>
50
- <tr>
51
- <td><%= list_post.list_post_title %></td>
52
- <td><%= truncate(list_post.list_post_text, :length => 80, :escape => false) %></td>
53
- <td><%= list_post.list_post_status.capitalize %></td>
54
- <td>
55
- <div class="btn-group d-flex" role="group">
56
- <%= link_to "List Details", list_post_path(list_post), class: "btn btn-primary btn-xs" %>
57
- <%= link_to "Update List", edit_list_post_path(list_post), class: "btn btn-primary btn-xs" %>
58
- <%= link_to "Remove List", list_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
59
- </div>
60
- </td>
61
- </tr>
62
- <% end %>
63
- </tbody>
28
+ <!-- Panel - Body -->
29
+ <div class="panel-body">
64
30
 
65
- </table>
66
- </div>
67
- <!-- Index - Table -->
31
+ <!-- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
68
34
 
69
- <!-- New Button -->
70
- <%= link_to phcdevworks_press.new_list_post_path, class: "btn btn-primary" do %>
71
- <i class="fad fa-plus-circle"></i>
72
- <%= "Add a New Top List" %>
73
- <% end %>
74
- <!-- New Button -->
35
+ <thead>
36
+ <tr>
37
+ <th>List Headline</th>
38
+ <th>Text Preview</th>
39
+ <th>List Status</th>
40
+ <th></th>
41
+ </tr>
42
+ </thead>
75
43
 
76
- </div>
77
- <!-- Panel - Body -->
44
+ <tbody>
45
+ <% @list_posts.each do |list_post| %>
46
+ <tr>
47
+ <td><%= list_post.list_post_title %></td>
48
+ <td><%= truncate(list_post.list_post_text, :length => 80, :escape => false) %></td>
49
+ <td><%= list_post.list_post_status.capitalize %></td>
50
+ <td>
51
+ <div class="btn-group d-flex" role="group">
52
+ <%= link_to "List Details", list_post_path(list_post), class: "btn btn-primary btn-xs" %>
53
+ <%= link_to "Update List", edit_list_post_path(list_post), class: "btn btn-primary btn-xs" %>
54
+ <%= link_to "Remove List", list_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <% end %>
59
+ </tbody>
78
60
 
61
+ </table>
79
62
  </div>
80
- <!-- Panel -->
63
+ <!-- Index - Table -->
64
+
65
+ <!-- New Button -->
66
+ <%= link_to phcdevworks_press.new_list_post_path, class: "btn btn-primary" do %>
67
+ <i class="fad fa-plus-circle"></i>
68
+ <%= "Add a New Top List" %>
69
+ <% end %>
70
+ <!-- New Button -->
81
71
 
82
72
  </div>
73
+ <!-- Panel - Body -->
74
+
83
75
  </div>
84
- <!-- Page Content -->
76
+ <!-- Panel -->
@@ -7,7 +7,7 @@
7
7
  <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
10
+ <ol class="breadcrumb float-xl-end">
11
11
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
12
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
13
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>