Sha256: 29bc356d962ea6c4c6f34a52ae6ff6e1830354e9e33f6e06fa161e900ec58da7

Contents?: true

Size: 627 Bytes

Versions: 39

Compression:

Stored size: 627 Bytes

Contents

<% unless @news_feed.blank? %>
  <div class="page-header">
    <h1>
      Latest News
      <%#= link_to @news_feed.channel.title, @news_feed.channel.link, target: '_blank', class: 'btn btn-xs' %>
    </h1>
  </div>

  <% @news_feed.items.each_with_index do |item, i| %>
    <% if i < Contour.news_feed_items.to_i %>
      <div class="well">
        <label><%= link_to item.title, item.link, target: '_blank' %></label><br />
        <ul style="list-style: none"><li><%= item.description.gsub("[...]", link_to('[read more]', item.link, target: '_blank')).html_safe %></li></ul>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
contour-2.3.0 app/views/contour/layouts/_latest_news.html.erb
contour-2.3.0.beta1 app/views/contour/layouts/_latest_news.html.erb
contour-2.2.1 app/views/contour/layouts/_latest_news.html.erb
contour-2.2.1.rc app/views/contour/layouts/_latest_news.html.erb
contour-2.2.0 app/views/contour/layouts/_latest_news.html.erb
contour-2.2.0.rc2 app/views/contour/layouts/_latest_news.html.erb
contour-2.2.0.rc app/views/contour/layouts/_latest_news.html.erb
contour-2.2.0.beta2 app/views/contour/layouts/_latest_news.html.erb
contour-2.2.0.beta1 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.rc2 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.rc app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta17 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta16 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta15 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta14 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta13 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta12 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta11 app/views/contour/layouts/_latest_news.html.erb