phcpresspro 5.7.6 → 5.7.7
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: 37b8b59f2521a3311444f16aaab143d0f8be5534
|
4
|
+
data.tar.gz: 170c38900d093fc58c26f72a79efbdd32d08555a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e6bee6dc03bb8cc20922ebb48e0cd322acdbe24acc4bc26a06c7be789c79700f49eb33c154330c0fc0ed09fb34fcb08bd87e13b6391746a6239a0551b999942
|
7
|
+
data.tar.gz: 82d048363b00f7f1d7df9888440baee0768e52d2cd64097ff3188a4b1ca6f54182097cb8dbf6df4fc83ef6ea64a1cd2dc8d339810c3d306874cbb8c70cefc23a
|
@@ -5,23 +5,14 @@ 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]
|
9
8
|
|
10
9
|
# Article Index
|
11
10
|
def index
|
12
|
-
@
|
11
|
+
@frontend_articles = Articles::Post.all
|
13
12
|
end
|
14
13
|
|
15
14
|
# Single Article Post
|
16
15
|
def show
|
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])
|
25
16
|
end
|
26
17
|
|
27
18
|
end
|
@@ -24,21 +24,21 @@
|
|
24
24
|
<!-- Blog List -->
|
25
25
|
<div class="col-md-9 col-sm-9">
|
26
26
|
|
27
|
-
<% @
|
27
|
+
<% @frontend_articles.each do |frontend_article| %>
|
28
28
|
<div class="blog-post-item">
|
29
|
-
<% if
|
29
|
+
<% if frontend_article.pstimage? %>
|
30
30
|
<figure class="margin-bottom-20">
|
31
|
-
<%= link_to phcpresspro.
|
32
|
-
<%= image_tag
|
31
|
+
<%= link_to phcpresspro.frontend_article do %>
|
32
|
+
<%= image_tag frontend_article.pstimage_url, class: "img-responsive" %>
|
33
33
|
<% end %>
|
34
34
|
</figure>
|
35
35
|
<% end %>
|
36
|
-
<h2><%= link_to
|
36
|
+
<h2><%= link_to frontend_article.psttitle, phcpresspro.frontend_article %></h2>
|
37
37
|
<ul class="blog-post-info list-inline">
|
38
38
|
<li>
|
39
39
|
<%= link_to "#" do %>
|
40
40
|
<i class="fa fa-clock-o"></i>
|
41
|
-
<span class="font-lato"><%=
|
41
|
+
<span class="font-lato"><%= frontend_article.created_at %></span>
|
42
42
|
<% end %>
|
43
43
|
</li>
|
44
44
|
<li>
|
@@ -59,11 +59,11 @@
|
|
59
59
|
<li>
|
60
60
|
<%= link_to "#" do %>
|
61
61
|
<i class="fa fa-user"></i>
|
62
|
-
<span class="font-lato"><%=
|
62
|
+
<span class="font-lato"><%= frontend_article.user_name %></span>
|
63
63
|
<% end %>
|
64
64
|
</li>
|
65
65
|
</ul>
|
66
|
-
<div><%= truncate(
|
66
|
+
<div><%= truncate(frontend_article.psttext, :length => 80) %></div>
|
67
67
|
</div>
|
68
68
|
<% end %>
|
69
69
|
|
data/lib/phcpresspro/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcpresspro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.7.
|
4
|
+
version: 5.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|