phcpresspro 5.7.4 → 5.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/phcpresspro/editors/phc_summernote.js +1 -1
- data/app/controllers/phcpresspro/frontend/articles_controller.rb +10 -2
- data/app/views/phcpresspro/articles/posts/_form.html.erb +1 -1
- data/app/views/phcpresspro/frontend/articles/index.html.erb +3 -3
- data/app/views/phcpresspro/frontend/articles/show.html.erb +6 -6
- data/config/routes.rb +0 -1
- 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: 22d37b65a9ff1531dfff7557b443bd8cfd7121c4
|
4
|
+
data.tar.gz: 110c60117d8a81bb922037ea94bbf68416fac51e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21796c8a18b21ff197463e89f54e55a105eb47ff087a6c3290ea87a20eb587bc3802ee0002080948e31fc38687018642d761ce5f6ad145a14bf168ec10955867
|
7
|
+
data.tar.gz: cfddee76fd66d1163a5289ae93718b9458e33f5b1b0fd4929062d445a3e0e08bd90cb661cec6124091adf7e2194a194de5fa65073c7f2b49a3c62bf2c8065c27
|
@@ -5,15 +5,23 @@ module Phcpresspro
|
|
5
5
|
|
6
6
|
# Security & Filters
|
7
7
|
layout '/layouts/phcpresspro/frontend.html.erb'
|
8
|
+
before_action :set_frontend_index, only: [:show, :edit, :update, :destroy]
|
8
9
|
|
9
10
|
# Article Index
|
10
11
|
def index
|
11
|
-
@
|
12
|
+
@article_indicies = Articles::Post.all
|
12
13
|
end
|
13
14
|
|
14
15
|
# Single Article Post
|
15
16
|
def show
|
16
|
-
@
|
17
|
+
@article_index = Articles::Post.find(params[:id])
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
# Common Callbacks
|
23
|
+
def set_frontend_index
|
24
|
+
@article_index = Articles::Post.find(params[:id])
|
17
25
|
end
|
18
26
|
|
19
27
|
end
|
@@ -24,16 +24,16 @@
|
|
24
24
|
<!-- Blog List -->
|
25
25
|
<div class="col-md-9 col-sm-9">
|
26
26
|
|
27
|
-
<% @
|
27
|
+
<% @article_indicies.each do |article_index| %>
|
28
28
|
<div class="blog-post-item">
|
29
29
|
<% if article_index.pstimage? %>
|
30
30
|
<figure class="margin-bottom-20">
|
31
|
-
<%= link_to phcpresspro.
|
31
|
+
<%= link_to phcpresspro.frontend_index_path do %>
|
32
32
|
<%= image_tag article_index.pstimage_url, class: "img-responsive" %>
|
33
33
|
<% end %>
|
34
34
|
</figure>
|
35
35
|
<% end %>
|
36
|
-
<h2><%= link_to article_index.psttitle, phcpresspro.
|
36
|
+
<h2><%= link_to article_index.psttitle, phcpresspro.frontend_index_path %></h2>
|
37
37
|
<ul class="blog-post-info list-inline">
|
38
38
|
<li>
|
39
39
|
<%= link_to "#" do %>
|
@@ -22,12 +22,12 @@
|
|
22
22
|
|
23
23
|
<!-- Blog List -->
|
24
24
|
<div class="col-md-9 col-sm-9">
|
25
|
-
<h1 class="blog-post-title"><%= @
|
25
|
+
<h1 class="blog-post-title"><%= @article_index.psttitle %></h1>
|
26
26
|
<ul class="blog-post-info list-inline">
|
27
27
|
<li>
|
28
28
|
<%= link_to "#" do %>
|
29
29
|
<i class="fa fa-clock-o"></i>
|
30
|
-
<span class="font-lato"><%= @
|
30
|
+
<span class="font-lato"><%= @article_index.created_at %></span>
|
31
31
|
<% end %>
|
32
32
|
</li>
|
33
33
|
<li>
|
@@ -48,16 +48,16 @@
|
|
48
48
|
<li>
|
49
49
|
<%= link_to "#" do %>
|
50
50
|
<i class="fa fa-user"></i>
|
51
|
-
<span class="font-lato"><%= @
|
51
|
+
<span class="font-lato"><%= @article_index.user_name %></span>
|
52
52
|
<% end %>
|
53
53
|
</li>
|
54
54
|
</ul>
|
55
|
-
<% if @
|
55
|
+
<% if @article_index.pstimage? %>
|
56
56
|
<figure class="margin-bottom-20">
|
57
|
-
<%= image_tag @
|
57
|
+
<%= image_tag @article_index.pstimage_url, class: "img-responsive" %>
|
58
58
|
</figure>
|
59
59
|
<% end %>
|
60
|
-
<p class="dropcap"><%= @
|
60
|
+
<p class="dropcap"><%= @article_index.psttext %></p>
|
61
61
|
</div>
|
62
62
|
<!-- Blog List -->
|
63
63
|
|
data/config/routes.rb
CHANGED
data/lib/phcpresspro/version.rb
CHANGED