Sha256: 698878c63c51e176a6e287b5d7b372794d4c89bdaaeca370c17f6b1828a0995d

Contents?: true

Size: 1.09 KB

Versions: 55

Compression:

Stored size: 1.09 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.services.close') %></a></span></h4>
    <div class="entry">
      <%= entry.content %>
      <p><a href="<%= entry.permalink %>"><%= t('muck.services.read_more') %></a></p>
    </div>
  </div>
<% end -%>

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
muck-services-3.3.3 app/views/topics/_entry.html.erb
muck-services-3.3.2 app/views/topics/_entry.html.erb
muck-services-3.3.1 app/views/topics/_entry.html.erb
muck-services-3.3.0 app/views/topics/_entry.html.erb
muck-services-3.2.2 app/views/topics/_entry.html.erb
muck-services-3.2.1 app/views/topics/_entry.html.erb
muck-services-3.2.0 app/views/topics/_entry.html.erb
muck-services-3.1.1 app/views/topics/_entry.html.erb
muck-services-3.1.0 app/views/topics/_entry.html.erb
muck-services-0.1.47 app/views/topics/_entry.html.erb
muck-services-3.0.0 app/views/topics/_entry.html.erb
muck-services-0.1.46 app/views/topics/_entry.html.erb
muck-services-0.1.45 app/views/topics/_entry.html.erb
muck-services-0.1.44 app/views/topics/_entry.html.erb
muck-services-0.1.43 app/views/topics/_entry.html.erb
muck-services-0.1.42 app/views/topics/_entry.html.erb
muck-services-0.1.41 app/views/topics/_entry.html.erb
muck-services-0.1.40 app/views/topics/_entry.html.erb
muck-services-0.1.39 app/views/topics/_entry.html.erb
muck-services-0.1.38 app/views/topics/_entry.html.erb