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: 49a176561f9d869241c8b035ed7de936c77dba88
4
- data.tar.gz: 68ee80bec2dc3e88a2c1a01e16c5940e5133f8ef
3
+ metadata.gz: 0d502de2878e2918dfa9d97bf9b80699db1ba58f
4
+ data.tar.gz: 3ad26bd2f97d1cbc19acb39fd6d89c7abaf5dede
5
5
  SHA512:
6
- metadata.gz: 2f317846d0b38692e6a62e6d3415a6a5b04cbd20c860d7fcd2dcda79f9866065b4ff073cd4b4770a86781cc0ee4b1f44f793ff3b8c97936cb5b0341b3999d7ba
7
- data.tar.gz: bd2dc60867a639a813e1006d0811355983bb11eff0df6435088dbdc7c7c18d34e340aef8036128f7fd2c9214761ffcb283d95615dac473eab593a266d2287238
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
- output << render(partial: 'ecm/news/items/item_for_render_news', collection: items, as: :item)
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>
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module News
3
- VERSION = '2.0.8'
3
+ VERSION = '2.0.9'
4
4
  end
5
5
  end
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.8
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: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails