Sha256: 17f8a562796d65ab464974933bcf9e7b26e7868505eb1db1e04c57e19de44f26

Contents?: true

Size: 1.08 KB

Versions: 15

Compression:

Stored size: 1.08 KB

Contents

<% if entry.feed.service.video? -%>
  <% link = Nokogiri::HTML(entry.content).css('a').detect{ |link| !link.css('img').blank? } -%>
  <% link.to_s.gsub('<a', 'class="feed-video" rel="video_' + content_id) if link -%>
  <%= link %>
<% elsif entry.feed.service.photo? -%>
  <% link = Nokogiri::HTML(entry.content).css('a').detect{ |link| !link.css('img').blank? } -%>
  <% link.to_s.gsub('<a', 'class="feed-photo" rel="photo_' + content_id) if link -%>
  <%= link %>
<% elsif entry.feed.service.bookmark? -%>
  <div class="hentry <%= cycle("even", "odd") -%>"><h4 class="title"><a class="bookmark-link" href="<%= entry.permalink %>" target="_blank"><%= entry.title %></a></h4></div>
<% else -%>
  <div class="hentry <%= cycle("even", "odd") -%>">
    <h4 class="title"><a class="entry-link" href="#" target="blank"><%= entry.title %></a><span class="entry-close"><a class="entry-link-close" href="#"><%= t('muck.raker.close') %></a></span></h4>
    <div class="entry">
      <%= entry.content %>
      <p><a href="<%= entry.permalink %>"><%= t('muck.raker.read_more') %></a></p>
    </div>
  </div>
<% end -%>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
muck-raker-0.2.11 app/views/topics/_entry.html.erb
muck-raker-0.2.10 app/views/topics/_entry.html.erb
muck-raker-0.2.9 app/views/topics/_entry.html.erb
muck-raker-0.2.8 app/views/topics/_entry.html.erb
muck-raker-0.2.7 app/views/topics/_entry.html.erb
muck-raker-0.2.6 app/views/topics/_entry.html.erb
muck-raker-0.2.5 app/views/topics/_entry.html.erb
muck-raker-0.2.4 app/views/topics/_entry.html.erb
muck-raker-0.2.3 app/views/topics/_entry.html.erb
muck-raker-0.2.2 app/views/topics/_entry.html.erb
muck-raker-0.2.0 app/views/topics/_entry.html.erb
muck-raker-0.1.49 app/views/topics/_entry.html.erb
muck-raker-0.1.48 app/views/topics/_entry.html.erb
muck-raker-0.1.47 app/views/topics/_entry.html.erb
muck-raker-0.1.46 app/views/topics/_entry.html.erb