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: caf6881809f1b886ba82af251794e55f0f8ecaab
4
- data.tar.gz: 1cfdcd6dfa67806243fa6d338ec5cd7f714431a0
3
+ metadata.gz: 37b8b59f2521a3311444f16aaab143d0f8be5534
4
+ data.tar.gz: 170c38900d093fc58c26f72a79efbdd32d08555a
5
5
  SHA512:
6
- metadata.gz: 6cc11a670b45c6e46dce180ec4bfad852a71db13da14024d27705b3231e002de659fb1b4824c0d14d79bea7db30b6b41ac9310295a3271382d5b09df17b7bc7f
7
- data.tar.gz: 44ad7a90a42d3c0b477efa6e64b8fa8ee64555b9d9d23e0f21bbf33ea4a5041bc52b1dc47d2a4d540d233c4c268587c3bc6fafc511e6c1da9affa3031bbb0323
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
- @article_indicies = Articles::Post.all
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
- <% @article_indicies.each do |article_index| %>
27
+ <% @frontend_articles.each do |frontend_article| %>
28
28
  <div class="blog-post-item">
29
- <% if article_index.pstimage? %>
29
+ <% if frontend_article.pstimage? %>
30
30
  <figure class="margin-bottom-20">
31
- <%= link_to phcpresspro.frontend_articles do %>
32
- <%= image_tag article_index.pstimage_url, class: "img-responsive" %>
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 article_index.psttitle, phcpresspro.frontend_articles %></h2>
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"><%= article_index.created_at %></span>
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"><%= article_index.user_name %></span>
62
+ <span class="font-lato"><%= frontend_article.user_name %></span>
63
63
  <% end %>
64
64
  </li>
65
65
  </ul>
66
- <div><%= truncate(article_index.psttext, :length => 80) %></div>
66
+ <div><%= truncate(frontend_article.psttext, :length => 80) %></div>
67
67
  </div>
68
68
  <% end %>
69
69
 
@@ -1,3 +1,3 @@
1
1
  module Phcpresspro
2
- VERSION = "5.7.6"
2
+ VERSION = "5.7.7"
3
3
  end
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.6
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-23 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails