phcdevworks_press 8.2.3 → 8.4.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 +33 -33
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_press_manifest.js +3 -3
  6. data/app/assets/stylesheets/phcdevworks_press/application.scss +0 -0
  7. data/app/assets/stylesheets/phcdevworks_press/article/posts.scss +0 -0
  8. data/app/assets/stylesheets/phcdevworks_press/blog/articles.scss +0 -0
  9. data/app/assets/stylesheets/phcdevworks_press/list/items.scss +3 -3
  10. data/app/assets/stylesheets/phcdevworks_press/list/posts.scss +3 -3
  11. data/app/assets/stylesheets/phcdevworks_press/review/posts.scss +3 -3
  12. data/app/controllers/phcdevworks_press/application_controller.rb +13 -13
  13. data/app/controllers/phcdevworks_press/article/posts_controller.rb +83 -83
  14. data/app/controllers/phcdevworks_press/blog/articles_controller.rb +29 -29
  15. data/app/controllers/phcdevworks_press/blog/lists_controller.rb +29 -29
  16. data/app/controllers/phcdevworks_press/blog/reviews_controller.rb +29 -29
  17. data/app/controllers/phcdevworks_press/list/items_controller.rb +89 -89
  18. data/app/controllers/phcdevworks_press/list/posts_controller.rb +82 -82
  19. data/app/controllers/phcdevworks_press/review/posts_controller.rb +82 -82
  20. data/app/helpers/phcdevworks_press/application_helper.rb +4 -4
  21. data/app/helpers/phcdevworks_press/article/posts_helper.rb +4 -4
  22. data/app/helpers/phcdevworks_press/blog/articles_helper.rb +4 -4
  23. data/app/helpers/phcdevworks_press/list/items_helper.rb +4 -4
  24. data/app/helpers/phcdevworks_press/list/posts_helper.rb +4 -4
  25. data/app/helpers/phcdevworks_press/review/posts_helper.rb +4 -4
  26. data/app/jobs/phcdevworks_press/application_job.rb +4 -4
  27. data/app/mailers/phcdevworks_press/application_mailer.rb +6 -6
  28. data/app/models/phcdevworks_press/application_record.rb +5 -5
  29. data/app/models/phcdevworks_press/article/post.rb +34 -34
  30. data/app/models/phcdevworks_press/article.rb +7 -7
  31. data/app/models/phcdevworks_press/article_post_versions.rb +0 -0
  32. data/app/models/phcdevworks_press/list/item.rb +33 -33
  33. data/app/models/phcdevworks_press/list/post.rb +34 -34
  34. data/app/models/phcdevworks_press/list.rb +7 -7
  35. data/app/models/phcdevworks_press/list_item_versions.rb +0 -0
  36. data/app/models/phcdevworks_press/list_post_versions.rb +0 -0
  37. data/app/models/phcdevworks_press/review/post.rb +33 -33
  38. data/app/models/phcdevworks_press/review.rb +7 -7
  39. data/app/models/phcdevworks_press/review_post_versions.rb +0 -0
  40. data/app/views/layouts/phcdevworks_press/application.html.erb +131 -131
  41. data/app/views/layouts/phcdevworks_press/components/backend/footer/_footer.html.erb +0 -0
  42. data/app/views/layouts/phcdevworks_press/components/backend/navigation/_top_menu.html.erb +0 -0
  43. data/app/views/layouts/phcdevworks_press/components/backend/sidebars/_side_menu.html.erb +43 -43
  44. data/app/views/layouts/phcdevworks_press/frontend.html.erb +5 -5
  45. data/app/views/phcdevworks_press/article/posts/_form.html.erb +105 -105
  46. data/app/views/phcdevworks_press/article/posts/edit.html.erb +23 -23
  47. data/app/views/phcdevworks_press/article/posts/index.html.erb +83 -83
  48. data/app/views/phcdevworks_press/article/posts/new.html.erb +23 -23
  49. data/app/views/phcdevworks_press/blog/articles/index.html.erb +69 -69
  50. data/app/views/phcdevworks_press/blog/articles/show.html.erb +0 -0
  51. data/app/views/phcdevworks_press/list/items/_form.html.erb +37 -37
  52. data/app/views/phcdevworks_press/list/items/edit.html.erb +47 -47
  53. data/app/views/phcdevworks_press/list/items/index.html.erb +81 -81
  54. data/app/views/phcdevworks_press/list/items/new.html.erb +48 -48
  55. data/app/views/phcdevworks_press/list/items/show.html.erb +0 -0
  56. data/app/views/phcdevworks_press/list/posts/_form.html.erb +86 -86
  57. data/app/views/phcdevworks_press/list/posts/edit.html.erb +23 -23
  58. data/app/views/phcdevworks_press/list/posts/index.html.erb +84 -84
  59. data/app/views/phcdevworks_press/list/posts/new.html.erb +23 -23
  60. data/app/views/phcdevworks_press/list/posts/show.html.erb +76 -76
  61. data/app/views/phcdevworks_press/review/posts/_form.html.erb +90 -90
  62. data/app/views/phcdevworks_press/review/posts/edit.html.erb +23 -23
  63. data/app/views/phcdevworks_press/review/posts/index.html.erb +83 -83
  64. data/app/views/phcdevworks_press/review/posts/new.html.erb +23 -23
  65. data/app/views/phcdevworks_press/review/posts/show.html.erb +9 -9
  66. data/config/routes.rb +38 -39
  67. data/config/spring.rb +1 -1
  68. data/db/migrate/20170517064030_create_phcdevworks_press_article_post_versions.rb +0 -0
  69. data/db/migrate/20190805232522_create_phcdevworks_press_article_posts.rb +19 -19
  70. data/db/migrate/20191024232406_create_phcdevworks_press_article_categories_posts.rb +10 -10
  71. data/db/migrate/20200708231335_create_phcdevworks_press_list_post_versions.rb +18 -18
  72. data/db/migrate/20200708231351_create_phcdevworks_press_review_post_versions.rb +18 -18
  73. data/db/migrate/20200712064624_create_phcdevworks_press_list_posts.rb +19 -19
  74. data/db/migrate/20200712064740_create_phcdevworks_press_review_posts.rb +21 -21
  75. data/db/migrate/20200712064920_create_phcdevworks_press_list_items.rb +22 -22
  76. data/db/migrate/20200712065808_create_phcdevworks_press_list_item_versions.rb +18 -18
  77. data/db/migrate/20200716224648_create_phcdevworks_press_review_categories_posts.rb +10 -10
  78. data/db/migrate/20200716224738_create_phcdevworks_press_list_categories_posts.rb +10 -10
  79. data/db/migrate/20210213025633_add_affiliatelink_to_article_posts.rb +5 -5
  80. data/lib/phcdevworks_press/engine.rb +47 -48
  81. data/lib/phcdevworks_press/version.rb +3 -3
  82. data/lib/phcdevworks_press.rb +6 -6
  83. data/lib/tasks/phcdevworks_press_tasks.rake +4 -4
  84. metadata +33 -33
@@ -277,49 +277,49 @@
277
277
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
278
278
  <% end %>
279
279
 
280
- <li class="nav-header">Administration</li>
281
- <% if defined?phcdevworks_accounts_stripe && current_user && current_user.admin %>
282
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
283
- <li class="has-sub">
284
- <a href="javascript:;">
285
- <b class="caret"></b>
286
- <i class="fab fa-cc-stripe"></i>
287
- <span>Subscriptions</span>
288
- </a>
289
- <ul class="sub-menu">
290
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Subscription Index", phcdevworks_accounts_stripe.admin_subscriptions_path) %></li>
291
- </ul>
292
- </li>
293
- <li class="has-sub">
294
- <a href="javascript:;">
295
- <b class="caret"></b>
296
- <i class="fad fa-money-check-alt"></i>
297
- <span>Plans</span>
298
- </a>
299
- <ul class="sub-menu">
300
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products#admin_products_list") %>"><%= link_to("Product List", phcdevworks_accounts_stripe.admin_products_path) %></li>
301
- </ul>
302
- </li>
303
- <li class="has-sub">
304
- <a href="javascript:;">
305
- <b class="caret"></b>
306
- <i class="fad fa-users"></i>
307
- <span>Customers</span>
308
- </a>
309
- <ul class="sub-menu">
310
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers#admin_customer_list") %>"><%= link_to("Customer List", phcdevworks_accounts_stripe.admin_customers_path) %></li>
311
- </ul>
312
- </li>
313
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
314
- <% end %>
315
-
316
- <% if current_user && current_user.admin? %>
280
+ <% if current_user and current_user.admin? %>
281
+ <li class="nav-header">Administration</li>
282
+ <% if defined?phcdevworks_accounts_stripe and current_user.admin? %>
283
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
284
+ <li class="has-sub">
285
+ <a href="javascript:;">
286
+ <b class="caret"></b>
287
+ <i class="fab fa-cc-visa"></i>
288
+ <span>Accounting</span>
289
+ </a>
290
+ <ul class="sub-menu">
291
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Invoices", phcdevworks_accounts_stripe.admin_invoices_path) %></li>
292
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Subscriptions", phcdevworks_accounts_stripe.admin_subscriptions_path) %></li>
293
+ </ul>
294
+ </li>
295
+ <li class="has-sub">
296
+ <a href="javascript:;">
297
+ <b class="caret"></b>
298
+ <i class="fad fa-money-check-alt"></i>
299
+ <span>Services</span>
300
+ </a>
301
+ <ul class="sub-menu">
302
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products#admin_products_list") %>"><%= link_to("Product List", phcdevworks_accounts_stripe.admin_products_path) %></li>
303
+ </ul>
304
+ </li>
305
+ <li class="has-sub">
306
+ <a href="javascript:;">
307
+ <b class="caret"></b>
308
+ <i class="fad fa-users"></i>
309
+ <span>Customers</span>
310
+ </a>
311
+ <ul class="sub-menu">
312
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers#admin_customer_list") %>"><%= link_to("Customer List", phcdevworks_accounts_stripe.admin_customers_path) %></li>
313
+ </ul>
314
+ </li>
315
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
316
+ <% end %>
317
317
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
318
318
  <li class="has-sub">
319
319
  <a href="javascript:;">
320
320
  <b class="caret"></b>
321
- <i class="fad fa-user"></i>
322
- <span>User Auth</span>
321
+ <i class="fad fa-user-lock"></i>
322
+ <span>User Logins</span>
323
323
  </a>
324
324
  <ul class="sub-menu">
325
325
  <li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
@@ -329,13 +329,13 @@
329
329
  <% end %>
330
330
 
331
331
  <li class="nav-header">Your Account</li>
332
- <% if defined?phcdevworks_accounts_stripe && current_user %>
332
+ <% if defined?phcdevworks_accounts_stripe and current_user %>
333
333
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
334
334
  <li class="has-sub">
335
335
  <a href="javascript:;">
336
336
  <b class="caret"></b>
337
337
  <i class="fad fa-money-check-alt"></i>
338
- <span>Plan Settings</span>
338
+ <span>Your Subscription</span>
339
339
  </a>
340
340
  <ul class="sub-menu">
341
341
  <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Your Subscription", phcdevworks_accounts_stripe.user_subscription_path) %></li>
@@ -346,7 +346,7 @@
346
346
  <a href="javascript:;">
347
347
  <b class="caret"></b>
348
348
  <i class="fad fa-file-invoice"></i>
349
- <span>Invoices</span>
349
+ <span>Your Invoices</span>
350
350
  </a>
351
351
  <ul class="sub-menu">
352
352
  <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/user/invoices#admin_customer_list") %>"><%= link_to("Current Invoice", phcdevworks_accounts_stripe.user_invoices_path) %></li>
@@ -362,7 +362,7 @@
362
362
  <a href="javascript:;">
363
363
  <b class="caret"></b>
364
364
  <i class="fad fa-user"></i>
365
- <span>Accounts Settings</span>
365
+ <span>Login Settings</span>
366
366
  </a>
367
367
  <ul class="sub-menu">
368
368
  <li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/edit") %>"><%= link_to "Settings", phcdevworks_accounts.edit_user_registration_path %></li>
@@ -1,5 +1,5 @@
1
- <!-- Page Content -->
2
- <div id="content" class="content">
3
- <%= yield %>
4
- </div>
5
- <!-- Page Content -->
1
+ <!-- Page Content -->
2
+ <div id="content" class="content">
3
+ <%= yield %>
4
+ </div>
5
+ <!-- Page Content -->
@@ -1,105 +1,105 @@
1
- <!-- Form - Article - Posts -->
2
- <%= form_with(model: article_post, local: true) do |form| %>
3
- <div class="row">
4
- <div class="col-md-3">
5
-
6
- <!-- Panel - Publishing -->
7
- <div class="panel panel-inverse">
8
- <div class="panel-heading">
9
- <h4 class="panel-title">Publish Panel</h4>
10
- </div>
11
- <div class="panel-body">
12
- <div class="form-group field_with_errors">
13
- <%= form.label :article_post_status, "Post Status" %>
14
- <%= form.select( :article_post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control"}) %>
15
- </div>
16
- <div class="actions">
17
- <%= form.submit class: "btn btn-primary" %>
18
- </div>
19
- </div>
20
- </div>
21
- <!-- Panel - Publishing -->
22
-
23
- <!-- Panel - Image Uploading -->
24
- <div class="panel panel-inverse">
25
- <div class="panel-heading">
26
- <h4 class="panel-title">Post Images</h4>
27
- </div>
28
- <div class="panel-body">
29
- <div class="form-group field_with_errors">
30
- <%= form.label :article_post_image, "Featured Image" %>
31
- <%= form.file_field :article_post_image, class: "form-control" %>
32
- </div>
33
- <% if form.object.article_post_image.attached? %>
34
- <%= image_tag main_app.url_for(form.object.article_post_image), class: "img-responsive img-thumbnail" %>
35
- <% end %>
36
- </div>
37
- </div>
38
- <!-- Panel - Image Uploading -->
39
-
40
- <!-- Panel - Article - Categories -->
41
- <div class="panel panel-inverse">
42
- <div class="panel-heading">
43
- <h4 class="panel-title">Article Categories</h4>
44
- </div>
45
- <div class="panel-body">
46
- <%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Post::Category.all, :id, :post_category_name do |post_category| %>
47
- <%= post_category.check_box %>
48
- <%= post_category.label %><br>
49
- <% end %>
50
- </div>
51
- </div>
52
- <!-- Panel - Article - Categories -->
53
-
54
- <!-- Panel - Article - Optimizations -->
55
- <div class="panel panel-inverse">
56
- <div class="panel-heading">
57
- <h4 class="panel-title">Article Marketing</h4>
58
- </div>
59
- <div class="panel-body">
60
- <div class="form-group">
61
- <label>Attach SEO Data</label>
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
- </div>
64
- <div class="form-group">
65
- <label>Attach Affiliate Data</label>
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
- </div>
68
- <div class="form-group field_with_errors">
69
- <%= form.label :slug, "Article Slug" %>
70
- <%= form.text_field :slug, class: "form-control", disabled: (true if article_post.new_record?) %>
71
- </div>
72
- </div>
73
- </div>
74
- <!-- Panel - Article - Optimizations -->
75
-
76
- </div>
77
- <div class="col-md-9 ">
78
-
79
- <!-- PHCNotifi Render Validation -->
80
- <%= render "phcdevworks_notifications/bootstrap/validations", :object => @article_post %>
81
- <!-- PHCNotifi Render Validation -->
82
-
83
- <div class="panel panel-inverse">
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
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
89
- </div>
90
- <div class="panel-body">
91
- <div class="form-group field_with_errors">
92
- <%= form.label :article_post_title, "Article Title" %>
93
- <%= form.text_field :article_post_title, class: "form-control" %>
94
- </div>
95
- <div class="form-group ">
96
- <%= form.text_area :article_post_text, class: "form-control editor" %>
97
- <div id="word-count" class="mt-3"></div>
98
- </div>
99
- </div>
100
- </div>
101
-
102
- </div>
103
- </div>
104
- <% end %>
105
- <!-- Form - Article - Posts -->
1
+ <!-- Form - Article - Posts -->
2
+ <%= form_with(model: article_post, local: true) do |form| %>
3
+ <div class="row">
4
+ <div class="col-md-3">
5
+
6
+ <!-- Panel - Publishing -->
7
+ <div class="panel panel-inverse">
8
+ <div class="panel-heading">
9
+ <h4 class="panel-title">Publish Panel</h4>
10
+ </div>
11
+ <div class="panel-body">
12
+ <div class="form-group field_with_errors">
13
+ <%= form.label :article_post_status, "Post Status" %>
14
+ <%= form.select( :article_post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control"}) %>
15
+ </div>
16
+ <div class="actions">
17
+ <%= form.submit class: "btn btn-primary" %>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ <!-- Panel - Publishing -->
22
+
23
+ <!-- Panel - Image Uploading -->
24
+ <div class="panel panel-inverse">
25
+ <div class="panel-heading">
26
+ <h4 class="panel-title">Post Images</h4>
27
+ </div>
28
+ <div class="panel-body">
29
+ <div class="form-group field_with_errors">
30
+ <%= form.label :article_post_image, "Featured Image" %>
31
+ <%= form.file_field :article_post_image, class: "form-control" %>
32
+ </div>
33
+ <% if form.object.article_post_image.attached? %>
34
+ <%= image_tag main_app.url_for(form.object.article_post_image), class: "img-responsive img-thumbnail" %>
35
+ <% end %>
36
+ </div>
37
+ </div>
38
+ <!-- Panel - Image Uploading -->
39
+
40
+ <!-- Panel - Article - Categories -->
41
+ <div class="panel panel-inverse">
42
+ <div class="panel-heading">
43
+ <h4 class="panel-title">Article Categories</h4>
44
+ </div>
45
+ <div class="panel-body">
46
+ <%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Post::Category.all, :id, :post_category_name do |post_category| %>
47
+ <%= post_category.check_box %>
48
+ <%= post_category.label %><br>
49
+ <% end %>
50
+ </div>
51
+ </div>
52
+ <!-- Panel - Article - Categories -->
53
+
54
+ <!-- Panel - Article - Optimizations -->
55
+ <div class="panel panel-inverse">
56
+ <div class="panel-heading">
57
+ <h4 class="panel-title">Article Marketing</h4>
58
+ </div>
59
+ <div class="panel-body">
60
+ <div class="form-group">
61
+ <label>Attach SEO Data</label>
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
+ </div>
64
+ <div class="form-group">
65
+ <label>Attach Affiliate Data</label>
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
+ </div>
68
+ <div class="form-group field_with_errors">
69
+ <%= form.label :slug, "Article Slug" %>
70
+ <%= form.text_field :slug, class: "form-control", disabled: (true if article_post.new_record?) %>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ <!-- Panel - Article - Optimizations -->
75
+
76
+ </div>
77
+ <div class="col-md-9 ">
78
+
79
+ <!-- PHCNotifi Render Validation -->
80
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @article_post %>
81
+ <!-- PHCNotifi Render Validation -->
82
+
83
+ <div class="panel panel-inverse">
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
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
89
+ </div>
90
+ <div class="panel-body">
91
+ <div class="form-group field_with_errors">
92
+ <%= form.label :article_post_title, "Article Title" %>
93
+ <%= form.text_field :article_post_title, class: "form-control" %>
94
+ </div>
95
+ <div class="form-group ">
96
+ <%= form.text_area :article_post_text, class: "form-control editor" %>
97
+ <div id="word-count" class="mt-3"></div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+
102
+ </div>
103
+ </div>
104
+ <% end %>
105
+ <!-- Form - Article - Posts -->
@@ -1,23 +1,23 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Article Manager" %>
3
- <% phc_title_tagline "Update Article" %>
4
- <% phc_breadcrumb_one yield(:phc_title) %>
5
- <% phc_breadcrumb_two link_to "Article Index", phcdevworks_press.article_posts_path %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- PHCTitleSEO Title Variables -->
8
-
9
- <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
11
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
- </ol>
15
- <!-- Page Bradcrumbs -->
16
-
17
- <!-- Page Header -->
18
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
- <!-- Page Header -->
20
-
21
- <!-- Edit Form -->
22
- <%= render "form", article_post: @article_post %>
23
- <!-- Edit Form -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Article Manager" %>
3
+ <% phc_title_tagline "Update Article" %>
4
+ <% phc_breadcrumb_one yield(:phc_title) %>
5
+ <% phc_breadcrumb_two link_to "Article Index", phcdevworks_press.article_posts_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
+ <!-- PHCTitleSEO Title Variables -->
8
+
9
+ <!-- Page Bradcrumbs -->
10
+ <ol class="breadcrumb pull-right">
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- Page Bradcrumbs -->
16
+
17
+ <!-- Page Header -->
18
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
+ <!-- Page Header -->
20
+
21
+ <!-- Edit Form -->
22
+ <%= render "form", article_post: @article_post %>
23
+ <!-- Edit Form -->
@@ -1,83 +1,83 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Article Manager" %>
3
- <% phc_title_tagline "Article Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title) %>
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
- <!-- 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>
47
-
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>
63
-
64
- </table>
65
- </div>
66
- <!-- Index - Table -->
67
-
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 -->
74
-
75
- </div>
76
- <!-- Panel - Body -->
77
-
78
- </div>
79
- <!-- Panel -->
80
-
81
- </div>
82
- </div>
83
- <!-- Page Content -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Article Manager" %>
3
+ <% phc_title_tagline "Article Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title) %>
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
+ <!-- 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>
47
+
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>
63
+
64
+ </table>
65
+ </div>
66
+ <!-- Index - Table -->
67
+
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 -->
74
+
75
+ </div>
76
+ <!-- Panel - Body -->
77
+
78
+ </div>
79
+ <!-- Panel -->
80
+
81
+ </div>
82
+ </div>
83
+ <!-- Page Content -->
@@ -1,23 +1,23 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Article Manager" %>
3
- <% phc_title_tagline "Create a New Article" %>
4
- <% phc_breadcrumb_one yield(:phc_title) %>
5
- <% phc_breadcrumb_two link_to "Article Index", phcdevworks_press.article_posts_path %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- PHCTitleSEO Title Variables -->
8
-
9
- <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
11
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
- </ol>
15
- <!-- Page Bradcrumbs -->
16
-
17
- <!-- Page Header -->
18
- <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
- <!-- Page Header -->
20
-
21
- <!-- New Form -->
22
- <%= render "form", article_post: @article_post %>
23
- <!-- New Form -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Article Manager" %>
3
+ <% phc_title_tagline "Create a New Article" %>
4
+ <% phc_breadcrumb_one yield(:phc_title) %>
5
+ <% phc_breadcrumb_two link_to "Article Index", phcdevworks_press.article_posts_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
+ <!-- PHCTitleSEO Title Variables -->
8
+
9
+ <!-- Page Bradcrumbs -->
10
+ <ol class="breadcrumb pull-right">
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- Page Bradcrumbs -->
16
+
17
+ <!-- Page Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
21
+ <!-- New Form -->
22
+ <%= render "form", article_post: @article_post %>
23
+ <!-- New Form -->