phcpresspro 15.2.0 → 15.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/phcpresspro/article/posts/_form.html.erb +2 -2
- data/app/views/phcpresspro/article/posts/edit.html.erb +3 -3
- data/app/views/phcpresspro/article/posts/index.html.erb +8 -8
- data/app/views/phcpresspro/article/posts/new.html.erb +3 -3
- data/app/views/phcpresspro/article/posts/show.html.erb +4 -4
- data/lib/phcpresspro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5359063c972e297d2be31bce0516790fa29a88be
|
4
|
+
data.tar.gz: 60cbc0ea1f74ebadc4536e071c757c3d89a72fe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c9ced74f446732feccf940d140a17b7fdee56ffcf3de10de7454cf3c5555049adda82736e873700d67494dd52b41f4290138304c68c27f706aee25ea15713b9
|
7
|
+
data.tar.gz: 68b7fa8a82ed98a982a460deec2976e7866e3835c7811034539f7f2830c5c497c93c45635e4854ecd8ac52122bdec81a8c84bb17255fc4c9dab143038142c99b
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= form_for(@
|
1
|
+
<%= form_for(@article_post, :html => {:multipart => true}) do |f| %>
|
2
2
|
<div class="row">
|
3
3
|
|
4
4
|
<div class="col-md-3">
|
@@ -55,7 +55,7 @@
|
|
55
55
|
|
56
56
|
<div class="ibox-content">
|
57
57
|
|
58
|
-
<%= render 'phcnotifi/validations', :object => @
|
58
|
+
<%= render 'phcnotifi/validations', :object => @article_post %>
|
59
59
|
|
60
60
|
<div class="form-group">
|
61
61
|
<%= f.label :psttext, "News Post Title" %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Article Manager" %>
|
3
3
|
<% phc_title_tagline "Update Article" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Article Index", phcpresspro.
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpresspro.article_posts_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
6
|
<!-- Title System -->
|
7
7
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
</div>
|
19
19
|
<div class="col-sm-4">
|
20
20
|
<div class="title-action">
|
21
|
-
<%= link_to phcpresspro.
|
21
|
+
<%= link_to phcpresspro.article_posts_path, class: "btn btn-default" do %>
|
22
22
|
<i class="fa fa fa-arrow-left"></i> Back to Article Index
|
23
23
|
<% end %>
|
24
24
|
</div>
|
@@ -28,6 +28,6 @@
|
|
28
28
|
|
29
29
|
<!-- Page Content -->
|
30
30
|
<div class="wrapper wrapper-content animated fadeInRight">
|
31
|
-
<%= render 'form',
|
31
|
+
<%= render 'form', article_post: @article_post %>
|
32
32
|
</div>
|
33
33
|
<!-- Page Content -->
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Article Manager" %>
|
3
3
|
<% phc_title_tagline "Article Index" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Article Index", phcpresspro.
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpresspro.article_posts_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
6
|
<!-- Title System -->
|
7
7
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
</div>
|
19
19
|
<div class="col-sm-4">
|
20
20
|
<div class="title-action">
|
21
|
-
<%= link_to phcpresspro.
|
21
|
+
<%= link_to phcpresspro.new_article_post_path, class: "btn btn-primary" do %>
|
22
22
|
<i class="fa fa-plus"></i> Create a New Article
|
23
23
|
<% end %>
|
24
24
|
</div>
|
@@ -56,14 +56,14 @@
|
|
56
56
|
</tr>
|
57
57
|
</thead>
|
58
58
|
<tbody>
|
59
|
-
<% @
|
59
|
+
<% @article_posts.each do |article_post| %>
|
60
60
|
<tr>
|
61
|
-
<td><%=
|
62
|
-
<td><%= truncate(
|
63
|
-
<td><%=
|
61
|
+
<td><%= article_post.psttitle %></td>
|
62
|
+
<td><%= truncate(article_post.psttext, :length => 80, :escape => false) %></td>
|
63
|
+
<td><%= article_post.pststatus %></td>
|
64
64
|
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
65
|
-
<%= link_to 'Edit Post',
|
66
|
-
<%= link_to 'Trash Post',
|
65
|
+
<%= link_to 'Edit Post', edit_article_post_path(article_post), class: "btn btn-primary btn-xs" %>
|
66
|
+
<%= link_to 'Trash Post', article_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
67
67
|
</div></td>
|
68
68
|
</tr>
|
69
69
|
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Article Manager" %>
|
3
3
|
<% phc_title_tagline "Create a New Article" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Article Index", phcpresspro.
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpresspro.article_posts_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
6
|
<!-- Title System -->
|
7
7
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
</div>
|
19
19
|
<div class="col-sm-4">
|
20
20
|
<div class="title-action">
|
21
|
-
<%= link_to phcpresspro.
|
21
|
+
<%= link_to phcpresspro.article_posts_path, class: "btn btn-default" do %>
|
22
22
|
<i class="fa fa fa-arrow-left"></i> Back to Article Index
|
23
23
|
<% end %>
|
24
24
|
</div>
|
@@ -28,6 +28,6 @@
|
|
28
28
|
|
29
29
|
<!-- Page Content -->
|
30
30
|
<div class="wrapper wrapper-content animated fadeInRight">
|
31
|
-
<%= render 'form',
|
31
|
+
<%= render 'form', article_post: @article_post %>
|
32
32
|
</div>
|
33
33
|
<!-- Page Content -->
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!-- Title System -->
|
2
2
|
<% phc_title "Article Manager" %>
|
3
3
|
<% phc_title_tagline "Article Details" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Article Index", phcpresspro.
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpresspro.article_posts_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
6
|
<!-- Title System -->
|
7
7
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
</div>
|
19
19
|
<div class="col-sm-4">
|
20
20
|
<div class="title-action">
|
21
|
-
<%= link_to phcpresspro.
|
21
|
+
<%= link_to phcpresspro.article_posts_path, class: "btn btn-default" do %>
|
22
22
|
<i class="fa fa fa-arrow-left"></i> Back to Article Index
|
23
23
|
<% end %>
|
24
24
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
</div>
|
46
46
|
<div class="ibox-content">
|
47
47
|
<p id="notice"><%= notice %></p>
|
48
|
-
<%= link_to 'Edit', phcpresspro.
|
49
|
-
<%= link_to 'Back', phcpresspro.
|
48
|
+
<%= link_to 'Edit', phcpresspro.edit_article_post_path(@article_post) %> |
|
49
|
+
<%= link_to 'Back', phcpresspro.article_posts_path %>
|
50
50
|
</div>
|
51
51
|
<!-- Page Content -->
|
data/lib/phcpresspro/version.rb
CHANGED