Sha256: 09b23152980f1431fdaa740a0369c8284bda0d2aa5cb9a934f471ee19370c5e6

Contents?: true

Size: 629 Bytes

Versions: 69

Compression:

Stored size: 629 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-mini' %>
    </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

69 entries across 69 versions & 1 rubygems

Version Path
contour-2.1.0.beta10 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta9 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta8 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta7 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta6 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta5 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta4 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta3 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta2 app/views/contour/layouts/_latest_news.html.erb
contour-2.1.0.beta1 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.rc6 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.rc5 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.rc4 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.rc3 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.rc2 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.rc app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.beta.9 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.beta.8 app/views/contour/layouts/_latest_news.html.erb
contour-2.0.0.beta.7 app/views/contour/layouts/_latest_news.html.erb