ecm_news2 2.0.8 → 2.0.9
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: 0d502de2878e2918dfa9d97bf9b80699db1ba58f
|
4
|
+
data.tar.gz: 3ad26bd2f97d1cbc19acb39fd6d89c7abaf5dede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9883561dc7defd1a216caffc45c8e5a728686117790c423ddfcab1a369a6701745bcba1978f3e47aa95bcb4ae0a94aab2fb062f77fe25edef29c6d19bbc30ce3
|
7
|
+
data.tar.gz: 024fff8ff9ae3f29f7d6b26fc1e143f9708418f1c15c48df7463e8f070fa417eee2272cd602b727099c614997ad045eaaf65cee9b2f15a86afe587ac9b41b118
|
@@ -5,7 +5,9 @@ module Ecm::NewsHelper
|
|
5
5
|
return I18n.t('ecm.news.item.messages.empty') if items.empty?
|
6
6
|
|
7
7
|
output = Ecm::News::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
|
8
|
-
|
8
|
+
items.each_with_index do |item, index|
|
9
|
+
output << render(partial: 'ecm/news/items/item_for_render_news', locals: { item: item, index: (index + 1) })
|
10
|
+
end
|
9
11
|
output << render(partial: 'ecm/news/render_news_footer')
|
10
12
|
output << '</notextile>' if Ecm::News::Configuration.prevent_textile_rendering_in_html
|
11
13
|
output.html_safe
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="news-item small-preview">
|
1
|
+
<div class="news-item small-preview news-item-<%= index %>">
|
2
2
|
<h3 class="item-title"><%= item.title %></h3>
|
3
3
|
<% if Ecm::News::Configuration.show_publish_time %>
|
4
4
|
<small class="item-published_at"><%= I18n.l(item.published_at) %></small>
|
data/lib/ecm/news/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_news2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|