lib/site/views/_article.erb in serious-0.2.3 vs lib/site/views/_article.erb in serious-0.2.4
- old
+ new
@@ -4,10 +4,12 @@
<% end %>
<h2><a href="<%= article.url %>"><%= article.title %></a></h2>
<div class="body">
<% if summary_only %>
<%= article.summary.formatted %>
- <span class="right date"><a href="<%= article.url %>">read on...</a></span>
+ <% if article.summary.length != article.body.length %>
+ <span class="right date"><a href="<%= article.url %>">read on...</a></span>
+ <% end %>
<% else %>
<%= article.body.formatted %>
<% if article.instance_of?(Serious::Article) %>
<span class="author right">Written by <%= article.author %></span>