phcpresspro 5.8.0 → 5.8.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9838984a792b260572281ecb97e01e0662215ff9
|
4
|
+
data.tar.gz: 487b6a3fc0848d0f9a6852e7ade9734db0f64bce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4f10cd0398ad9c3c8f47bbe632a8f4bc711b281c542e729250ae1fbf39787ca4e328c454dbc7615259837c31d03ceaf7f0d196242b4ceedea1728cf7fe85a0c
|
7
|
+
data.tar.gz: b22c7bdc698a15033577a0cb2ae9830a91d97bb6cd9bbe41ebab1af9eb8456a097699a2df26cbb9cdf146c0d4053ec26495da491bd8f9aee899d83546f36d9e9
|
@@ -8,12 +8,12 @@ module Phcpresspro
|
|
8
8
|
|
9
9
|
# Article Index
|
10
10
|
def index
|
11
|
-
@
|
11
|
+
@articles_index = Articles::Post.all
|
12
12
|
end
|
13
13
|
|
14
14
|
# Single Article Post
|
15
15
|
def show
|
16
|
-
@
|
16
|
+
@articles_single = Articles::Post.find(params[:id])
|
17
17
|
end
|
18
18
|
|
19
19
|
end
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<!-- Blog List -->
|
25
25
|
<div class="col-md-9 col-sm-9">
|
26
26
|
|
27
|
-
<% @
|
27
|
+
<% @articles_index.each do |frontend_article| %>
|
28
28
|
<div class="blog-post-item">
|
29
29
|
<% if frontend_article.pstimage? %>
|
30
30
|
<figure class="margin-bottom-20">
|
@@ -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"><%= @articles_single.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"><%= @articles_single.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"><%= @articles_single.user_name %></span>
|
52
52
|
<% end %>
|
53
53
|
</li>
|
54
54
|
</ul>
|
55
|
-
<% if @
|
55
|
+
<% if @articles_single.pstimage? %>
|
56
56
|
<figure class="margin-bottom-20">
|
57
|
-
<%= image_tag @
|
57
|
+
<%= image_tag @articles_single.pstimage_url, class: "img-responsive" %>
|
58
58
|
</figure>
|
59
59
|
<% end %>
|
60
|
-
<p class="dropcap"><%= @
|
60
|
+
<p class="dropcap"><%= @articles_single.psttext %></p>
|
61
61
|
</div>
|
62
62
|
<!-- Blog List -->
|
63
63
|
|
data/lib/phcpresspro/version.rb
CHANGED