Skip to content

Commit

Permalink
Update show.html.erb (publiclab#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Nov 23, 2016
1 parent 2d8d9d6 commit f872f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/tag/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</div>
<% else %>
<h2><%= @wiki.latest.title %></h2>
<p><%= @wiki.latest.render_body.html_safe.match(/<p>(.+)<\/p>/).to_a.try(:first).to_s.html_safe %></p>
<p><%= link_to("Read More &raquo;", "/wiki/#{params[:id]}") if @wiki.latest.render_body.split('\n').length > 1 %></p>
<p><%= @wiki.latest.render_body.html_safe.match(/<p>(.+)<\/p>/).to_a.try(:first).to_s.html_safe %></p>
<p><%= link_to("Read More &raquo;", "/wiki/#{params[:id]}") if @wiki.latest.render_body.html_safe.match(/<p>(.+)<\/p>/).length > 1 %></p>
<% end %>
</div>
<% end %>
Expand Down

0 comments on commit f872f87

Please sign in to comment.