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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +2 -1
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_press_manifest.js +2 -3
- data/app/controllers/phcdevworks_press/application_controller.rb +0 -0
- data/app/controllers/phcdevworks_press/article/posts_controller.rb +0 -0
- data/app/controllers/phcdevworks_press/blog/articles_controller.rb +0 -0
- data/app/controllers/phcdevworks_press/blog/lists_controller.rb +0 -0
- data/app/controllers/phcdevworks_press/blog/reviews_controller.rb +0 -0
- data/app/controllers/phcdevworks_press/list/items_controller.rb +0 -0
- data/app/controllers/phcdevworks_press/list/posts_controller.rb +0 -0
- data/app/controllers/phcdevworks_press/review/posts_controller.rb +0 -0
- data/app/helpers/phcdevworks_press/application_helper.rb +0 -0
- data/app/helpers/phcdevworks_press/article/posts_helper.rb +0 -0
- data/app/helpers/phcdevworks_press/blog/articles_helper.rb +0 -0
- data/app/helpers/phcdevworks_press/list/items_helper.rb +0 -0
- data/app/helpers/phcdevworks_press/list/posts_helper.rb +0 -0
- data/app/helpers/phcdevworks_press/review/posts_helper.rb +0 -0
- data/app/jobs/phcdevworks_press/application_job.rb +0 -0
- data/app/mailers/phcdevworks_press/application_mailer.rb +0 -0
- data/app/models/phcdevworks_press/application_record.rb +0 -0
- data/app/models/phcdevworks_press/article/post.rb +1 -1
- data/app/models/phcdevworks_press/article.rb +0 -0
- data/app/models/phcdevworks_press/article_post_versions.rb +0 -0
- data/app/models/phcdevworks_press/list/item.rb +1 -1
- data/app/models/phcdevworks_press/list/post.rb +1 -1
- data/app/models/phcdevworks_press/list.rb +0 -0
- data/app/models/phcdevworks_press/list_item_versions.rb +0 -0
- data/app/models/phcdevworks_press/list_post_versions.rb +0 -0
- data/app/models/phcdevworks_press/review/post.rb +1 -1
- data/app/models/phcdevworks_press/review.rb +0 -0
- data/app/models/phcdevworks_press/review_post_versions.rb +0 -0
- data/app/views/layouts/phcdevworks_press/application.html.erb +73 -131
- 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 -349
- data/app/views/phcdevworks_press/article/posts/_form.html.erb +14 -17
- data/app/views/phcdevworks_press/article/posts/edit.html.erb +2 -2
- data/app/views/phcdevworks_press/article/posts/index.html.erb +49 -57
- data/app/views/phcdevworks_press/article/posts/new.html.erb +1 -1
- data/app/views/phcdevworks_press/blog/articles/index.html.erb +0 -0
- data/app/views/phcdevworks_press/blog/articles/show.html.erb +0 -0
- data/app/views/phcdevworks_press/list/items/_form.html.erb +0 -0
- data/app/views/phcdevworks_press/list/items/edit.html.erb +17 -25
- data/app/views/phcdevworks_press/list/items/index.html.erb +47 -55
- data/app/views/phcdevworks_press/list/items/new.html.erb +17 -25
- data/app/views/phcdevworks_press/list/items/show.html.erb +0 -0
- data/app/views/phcdevworks_press/list/posts/_form.html.erb +0 -0
- data/app/views/phcdevworks_press/list/posts/edit.html.erb +2 -2
- data/app/views/phcdevworks_press/list/posts/index.html.erb +50 -58
- data/app/views/phcdevworks_press/list/posts/new.html.erb +1 -1
- data/app/views/phcdevworks_press/list/posts/show.html.erb +42 -50
- data/app/views/phcdevworks_press/review/posts/_form.html.erb +0 -0
- data/app/views/phcdevworks_press/review/posts/edit.html.erb +2 -2
- data/app/views/phcdevworks_press/review/posts/index.html.erb +49 -57
- data/app/views/phcdevworks_press/review/posts/new.html.erb +1 -1
- data/app/views/phcdevworks_press/review/posts/show.html.erb +0 -0
- data/config/routes.rb +34 -38
- data/config/spring.rb +0 -0
- data/db/migrate/20170517064030_create_phcdevworks_press_article_post_versions.rb +1 -1
- data/db/migrate/20190805232522_create_phcdevworks_press_article_posts.rb +1 -1
- data/db/migrate/20191024232406_create_phcdevworks_press_article_categories_posts.rb +1 -1
- data/db/migrate/20200708231335_create_phcdevworks_press_list_post_versions.rb +1 -1
- data/db/migrate/20200708231351_create_phcdevworks_press_review_post_versions.rb +1 -1
- data/db/migrate/20200712064624_create_phcdevworks_press_list_posts.rb +1 -1
- data/db/migrate/20200712064740_create_phcdevworks_press_review_posts.rb +1 -1
- data/db/migrate/20200712064920_create_phcdevworks_press_list_items.rb +1 -1
- data/db/migrate/20200712065808_create_phcdevworks_press_list_item_versions.rb +1 -1
- data/db/migrate/20200716224648_create_phcdevworks_press_review_categories_posts.rb +1 -1
- data/db/migrate/20200716224738_create_phcdevworks_press_list_categories_posts.rb +1 -1
- data/db/migrate/20210213025633_add_affiliatelink_to_article_posts.rb +1 -1
- data/lib/phcdevworks_press/engine.rb +47 -47
- data/lib/phcdevworks_press/version.rb +3 -3
- data/lib/phcdevworks_press.rb +6 -6
- data/lib/tasks/phcdevworks_press_tasks.rake +4 -4
- metadata +28 -78
- 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
@@ -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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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
|
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
|
-
<
|
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
|
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
|
-
<
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
<div class="col-lg-12">
|
19
|
+
<!-- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
49
|
-
|
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
|
-
|
65
|
-
|
66
|
-
|
31
|
+
<!-- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
67
34
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
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
|
-
|
76
|
-
|
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
|
-
<!--
|
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
|
-
<!--
|
75
|
+
<!-- Panel -->
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<!-- PHCTitleSEO Title Variables -->
|
8
8
|
|
9
9
|
<!-- Page Bradcrumbs -->
|
10
|
-
<ol class="breadcrumb
|
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>
|
File without changes
|
File without changes
|
File without changes
|
@@ -6,42 +6,34 @@
|
|
6
6
|
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb
|
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
|
-
<
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
<div class="col-lg-12">
|
19
|
+
<!-- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
40
|
-
|
28
|
+
<!-- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
41
30
|
|
42
|
-
|
43
|
-
|
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
|
-
<!--
|
39
|
+
<!-- Panel -->
|
@@ -6,76 +6,68 @@
|
|
6
6
|
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb
|
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
|
-
<
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
<div class="col-lg-12">
|
19
|
+
<!-- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
48
|
-
|
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
|
-
|
63
|
-
|
64
|
-
|
31
|
+
<!-- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
65
34
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Item Headline</th>
|
38
|
+
<th>Text Preview</th>
|
39
|
+
<th></th>
|
40
|
+
</tr>
|
41
|
+
</thead>
|
72
42
|
|
73
|
-
|
74
|
-
|
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
|
-
<!--
|
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
|
-
<!--
|
73
|
+
<!-- Panel -->
|
@@ -7,42 +7,34 @@
|
|
7
7
|
<!-- PHCTitleSEO Title Variables -->
|
8
8
|
|
9
9
|
<!-- Page Bradcrumbs -->
|
10
|
-
<ol class="breadcrumb
|
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
|
-
<
|
17
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
18
18
|
<!-- Page Header -->
|
19
19
|
|
20
|
-
<!--
|
21
|
-
<div class="
|
22
|
-
<div class="col-lg-12">
|
20
|
+
<!-- Panel -->
|
21
|
+
<div class="panel panel-inverse">
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
41
|
-
|
29
|
+
<!-- Panel - Body -->
|
30
|
+
<div class="panel-body">
|
42
31
|
|
43
|
-
|
44
|
-
|
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
|
-
<!--
|
40
|
+
<!-- Panel -->
|
File without changes
|
File without changes
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<!-- PHCTitleSEO Title Variables -->
|
8
8
|
|
9
9
|
<!-- Page Bradcrumbs -->
|
10
|
-
<ol class="breadcrumb
|
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
|
-
<
|
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
|
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
|
-
<
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
<div class="col-lg-12">
|
19
|
+
<!-- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
49
|
-
|
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
|
-
|
66
|
-
|
67
|
-
|
31
|
+
<!-- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
68
34
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
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
|
-
|
77
|
-
|
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
|
-
<!--
|
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
|
-
<!--
|
76
|
+
<!-- Panel -->
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<!-- PHCTitleSEO Title Variables -->
|
8
8
|
|
9
9
|
<!-- Page Bradcrumbs -->
|
10
|
-
<ol class="breadcrumb
|
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>
|