phcdevworks_press 8.3.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +34 -33
- data/app/assets/config/phcdevworks_press_manifest.js +2 -3
- data/app/controllers/phcdevworks_press/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_press/article/posts_controller.rb +83 -83
- data/app/controllers/phcdevworks_press/blog/articles_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/blog/lists_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/blog/reviews_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/list/items_controller.rb +89 -89
- data/app/controllers/phcdevworks_press/list/posts_controller.rb +82 -82
- data/app/controllers/phcdevworks_press/review/posts_controller.rb +82 -82
- data/app/helpers/phcdevworks_press/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/article/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/blog/articles_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/list/items_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/list/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/review/posts_helper.rb +4 -4
- data/app/jobs/phcdevworks_press/application_job.rb +4 -4
- data/app/mailers/phcdevworks_press/application_mailer.rb +6 -6
- data/app/models/phcdevworks_press/application_record.rb +5 -5
- data/app/models/phcdevworks_press/article/post.rb +34 -34
- data/app/models/phcdevworks_press/article.rb +7 -7
- data/app/models/phcdevworks_press/list/item.rb +33 -33
- data/app/models/phcdevworks_press/list/post.rb +34 -34
- data/app/models/phcdevworks_press/list.rb +7 -7
- data/app/models/phcdevworks_press/review/post.rb +33 -33
- data/app/models/phcdevworks_press/review.rb +7 -7
- data/app/views/layouts/phcdevworks_press/application.html.erb +34 -92
- data/app/views/layouts/phcdevworks_press/components/backend/footer/_footer.html.erb +10 -9
- data/app/views/layouts/phcdevworks_press/components/backend/navigation/_top_menu.html.erb +26 -25
- data/app/views/layouts/phcdevworks_press/components/backend/sidebars/_side_menu.html.erb +491 -287
- data/app/views/phcdevworks_press/article/posts/_form.html.erb +102 -105
- data/app/views/phcdevworks_press/article/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/article/posts/index.html.erb +75 -83
- data/app/views/phcdevworks_press/article/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/blog/articles/index.html.erb +69 -69
- data/app/views/phcdevworks_press/list/items/_form.html.erb +37 -37
- data/app/views/phcdevworks_press/list/items/edit.html.erb +39 -47
- data/app/views/phcdevworks_press/list/items/index.html.erb +73 -81
- data/app/views/phcdevworks_press/list/items/new.html.erb +40 -48
- data/app/views/phcdevworks_press/list/posts/_form.html.erb +86 -86
- data/app/views/phcdevworks_press/list/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/list/posts/index.html.erb +76 -84
- data/app/views/phcdevworks_press/list/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/list/posts/show.html.erb +68 -76
- data/app/views/phcdevworks_press/review/posts/_form.html.erb +90 -90
- data/app/views/phcdevworks_press/review/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/review/posts/index.html.erb +75 -83
- data/app/views/phcdevworks_press/review/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/review/posts/show.html.erb +9 -9
- data/config/routes.rb +0 -5
- data/config/spring.rb +1 -1
- data/db/migrate/20170517064030_create_phcdevworks_press_article_post_versions.rb +1 -1
- data/db/migrate/20190805232522_create_phcdevworks_press_article_posts.rb +19 -19
- data/db/migrate/20191024232406_create_phcdevworks_press_article_categories_posts.rb +10 -10
- data/db/migrate/20200708231335_create_phcdevworks_press_list_post_versions.rb +18 -18
- data/db/migrate/20200708231351_create_phcdevworks_press_review_post_versions.rb +18 -18
- data/db/migrate/20200712064624_create_phcdevworks_press_list_posts.rb +19 -19
- data/db/migrate/20200712064740_create_phcdevworks_press_review_posts.rb +21 -21
- data/db/migrate/20200712064920_create_phcdevworks_press_list_items.rb +22 -22
- data/db/migrate/20200712065808_create_phcdevworks_press_list_item_versions.rb +18 -18
- data/db/migrate/20200716224648_create_phcdevworks_press_review_categories_posts.rb +10 -10
- data/db/migrate/20200716224738_create_phcdevworks_press_list_categories_posts.rb +10 -10
- data/db/migrate/20210213025633_add_affiliatelink_to_article_posts.rb +5 -5
- data/lib/phcdevworks_press/engine.rb +29 -30
- data/lib/phcdevworks_press/version.rb +1 -1
- metadata +36 -86
- data/app/assets/stylesheets/phcdevworks_press/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/article/posts.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/blog/articles.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/list/items.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_press/list/posts.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_press/review/posts.scss +0 -3
- data/app/views/layouts/phcdevworks_press/frontend.html.erb +0 -5
@@ -1,105 +1,102 @@
|
|
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="
|
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="
|
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="
|
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="
|
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="
|
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
|
-
<
|
86
|
-
|
87
|
-
|
88
|
-
<
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
<%= form.
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
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="mb-3">
|
13
|
+
<%= form.label :article_post_status, "Post Status", class: "form-label" %>
|
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="mb-3">
|
30
|
+
<%= form.label :article_post_image, "Featured Image", class: "form-label" %>
|
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="mb-3">
|
61
|
+
<label class="form-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="mb-3">
|
65
|
+
<label class="form-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="mb-3">
|
69
|
+
<%= form.label :slug, "Article Slug", class: "form-label" %>
|
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
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
86
|
+
</div>
|
87
|
+
<div class="panel-body">
|
88
|
+
<div class="mb-3">
|
89
|
+
<%= form.label :article_post_title, "Article Title", class: "form-label" %>
|
90
|
+
<%= form.text_field :article_post_title, class: "form-control" %>
|
91
|
+
</div>
|
92
|
+
<div class="mb-3">
|
93
|
+
<%= form.text_area :article_post_text, class: "form-control editor", rows: "32" %>
|
94
|
+
<div id="word-count" class="mt-3"></div>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
<% end %>
|
102
|
+
<!-- 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
|
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
|
-
<
|
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 float-xl-end">
|
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
|
+
<!-- Edit Form -->
|
22
|
+
<%= render "form", article_post: @article_post %>
|
23
|
+
<!-- Edit Form -->
|
@@ -1,83 +1,75 @@
|
|
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
|
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
|
-
<
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
<
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
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 float-xl-end">
|
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
|
+
<!-- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
|
22
|
+
<!-- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
30
|
+
|
31
|
+
<!-- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
34
|
+
|
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>
|
43
|
+
|
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>
|
59
|
+
|
60
|
+
</table>
|
61
|
+
</div>
|
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 -->
|
70
|
+
|
71
|
+
</div>
|
72
|
+
<!-- Panel - Body -->
|
73
|
+
|
74
|
+
</div>
|
75
|
+
<!-- Panel -->
|
@@ -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
|
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 float-xl-end">
|
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,69 +1,69 @@
|
|
1
|
-
<% @phcdevworks_cms_press_index.each do |blog_post_index| %>
|
2
|
-
<div class="row blog-post">
|
3
|
-
<div class="col-md-2 date-md">
|
4
|
-
<div class="date-wrapper">
|
5
|
-
<span class="date-m bg-primary"><%= blog_post_index.created_at.strftime("%B") %></span>
|
6
|
-
<span class="date-d"><%= blog_post_index.created_at.strftime("%d") %></span>
|
7
|
-
</div>
|
8
|
-
<p class="text-muted text-sm">
|
9
|
-
<i class="fas fa-user-tie text-xs"></i>
|
10
|
-
<%= blog_post_index.user_id %>
|
11
|
-
</p>
|
12
|
-
</div>
|
13
|
-
<div class="col-md-10">
|
14
|
-
<div class="text-xs">
|
15
|
-
<a href="#" class="text-primary text-uppercase">Blog</a> /
|
16
|
-
<a href="#" class="text-dark text-uppercase">Post</a>
|
17
|
-
</div>
|
18
|
-
<h4 class="title media-heading">
|
19
|
-
<%= blog_post_index.post_title %>
|
20
|
-
</h4>
|
21
|
-
<ul class="list-inline meta text-muted">
|
22
|
-
<li class="list-inline-item">
|
23
|
-
<i class="fas fa-calendar-alt text-xs"></i>
|
24
|
-
<%= blog_post_index.created_at.strftime("%a %B %d %Y") %>
|
25
|
-
</li>
|
26
|
-
<li class="list-inline-item">
|
27
|
-
<i class="fas fa-user-tie text-xs"></i>
|
28
|
-
<%= blog_post_index.user_id %>
|
29
|
-
</li>
|
30
|
-
</ul>
|
31
|
-
<div class="row">
|
32
|
-
<div class="col-md-12">
|
33
|
-
<% if blog_post_index.pstimage.attached? %>
|
34
|
-
<div class="blog-media">
|
35
|
-
<img src="<%= url_for(blog_post_index.post_image) %>" alt="Picture for Blog Post - <%= blog_post_index.post_title %>" class="img-fluid" />
|
36
|
-
</div>
|
37
|
-
<% end %>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
<div class="row">
|
41
|
-
<div class="col-md-12">
|
42
|
-
<%= truncate(blog_post_index.post_text, :length => 120, :escape => false) %>
|
43
|
-
<ul class="list-inline links">
|
44
|
-
<li class="list-inline-item">
|
45
|
-
<%= link_to blog_article_path(blog_post_index), class: "btn btn-secondary btn-sm" do %>
|
46
|
-
<i class="fas fa-arrow-alt-circle-right"></i> Read More
|
47
|
-
<% end %>
|
48
|
-
</li>
|
49
|
-
<li class="list-inline-item">
|
50
|
-
<a href="blog-post.html#comments" class="btn btn-secondary btn-sm"><i class="fa fa-comment"></i> 64 Comments</a>
|
51
|
-
</li>
|
52
|
-
<% if current_user.admin! %>
|
53
|
-
<li class="list-inline-item">
|
54
|
-
<%= link_to edit_article_post_path(blog_post_index), class: "btn btn-secondary btn-sm" do %>
|
55
|
-
<i class="fas fa-edit"></i> Edit Post
|
56
|
-
<% end %>
|
57
|
-
</li>
|
58
|
-
<li class="list-inline-item">
|
59
|
-
<%= link_to blog_post_index, class: "btn btn-danger btn-sm", method: :delete, data: { confirm: "Are you sure?" } do %>
|
60
|
-
<i class="fas fa-dumpster"></i> Delete Post
|
61
|
-
<% end %>
|
62
|
-
</li>
|
63
|
-
<% end %>
|
64
|
-
</ul>
|
65
|
-
</div>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
</div>
|
69
|
-
<% end %>
|
1
|
+
<% @phcdevworks_cms_press_index.each do |blog_post_index| %>
|
2
|
+
<div class="row blog-post">
|
3
|
+
<div class="col-md-2 date-md">
|
4
|
+
<div class="date-wrapper">
|
5
|
+
<span class="date-m bg-primary"><%= blog_post_index.created_at.strftime("%B") %></span>
|
6
|
+
<span class="date-d"><%= blog_post_index.created_at.strftime("%d") %></span>
|
7
|
+
</div>
|
8
|
+
<p class="text-muted text-sm">
|
9
|
+
<i class="fas fa-user-tie text-xs"></i>
|
10
|
+
<%= blog_post_index.user_id %>
|
11
|
+
</p>
|
12
|
+
</div>
|
13
|
+
<div class="col-md-10">
|
14
|
+
<div class="text-xs">
|
15
|
+
<a href="#" class="text-primary text-uppercase">Blog</a> /
|
16
|
+
<a href="#" class="text-dark text-uppercase">Post</a>
|
17
|
+
</div>
|
18
|
+
<h4 class="title media-heading">
|
19
|
+
<%= blog_post_index.post_title %>
|
20
|
+
</h4>
|
21
|
+
<ul class="list-inline meta text-muted">
|
22
|
+
<li class="list-inline-item">
|
23
|
+
<i class="fas fa-calendar-alt text-xs"></i>
|
24
|
+
<%= blog_post_index.created_at.strftime("%a %B %d %Y") %>
|
25
|
+
</li>
|
26
|
+
<li class="list-inline-item">
|
27
|
+
<i class="fas fa-user-tie text-xs"></i>
|
28
|
+
<%= blog_post_index.user_id %>
|
29
|
+
</li>
|
30
|
+
</ul>
|
31
|
+
<div class="row">
|
32
|
+
<div class="col-md-12">
|
33
|
+
<% if blog_post_index.pstimage.attached? %>
|
34
|
+
<div class="blog-media">
|
35
|
+
<img src="<%= url_for(blog_post_index.post_image) %>" alt="Picture for Blog Post - <%= blog_post_index.post_title %>" class="img-fluid" />
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
<div class="row">
|
41
|
+
<div class="col-md-12">
|
42
|
+
<%= truncate(blog_post_index.post_text, :length => 120, :escape => false) %>
|
43
|
+
<ul class="list-inline links">
|
44
|
+
<li class="list-inline-item">
|
45
|
+
<%= link_to blog_article_path(blog_post_index), class: "btn btn-secondary btn-sm" do %>
|
46
|
+
<i class="fas fa-arrow-alt-circle-right"></i> Read More
|
47
|
+
<% end %>
|
48
|
+
</li>
|
49
|
+
<li class="list-inline-item">
|
50
|
+
<a href="blog-post.html#comments" class="btn btn-secondary btn-sm"><i class="fa fa-comment"></i> 64 Comments</a>
|
51
|
+
</li>
|
52
|
+
<% if current_user.admin! %>
|
53
|
+
<li class="list-inline-item">
|
54
|
+
<%= link_to edit_article_post_path(blog_post_index), class: "btn btn-secondary btn-sm" do %>
|
55
|
+
<i class="fas fa-edit"></i> Edit Post
|
56
|
+
<% end %>
|
57
|
+
</li>
|
58
|
+
<li class="list-inline-item">
|
59
|
+
<%= link_to blog_post_index, class: "btn btn-danger btn-sm", method: :delete, data: { confirm: "Are you sure?" } do %>
|
60
|
+
<i class="fas fa-dumpster"></i> Delete Post
|
61
|
+
<% end %>
|
62
|
+
</li>
|
63
|
+
<% end %>
|
64
|
+
</ul>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
<% end %>
|