Skip to content

Commit

Permalink
Update show.html.erb (publiclab#2135)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Jan 26, 2018
1 parent c10dee8 commit ae7402a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/tag/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="col-md-6">
<h1 style="color:#333;"><%= link_to @wiki.latest.title, "/wiki/#{params[:id]}" %></h1>
<%= @wiki.latest.render_body.match(/<p>(.+)<\/p>/).to_a.try(:first).to_s.html_safe %>
<%= link_to("Learn more on the wiki page", "/wiki/#{params[:id]}") if @wiki.latest.render_body.split('</p>').length > 2 %>
<% if @wiki.latest.render_body.split('</p>').length > 2 %><a class="btn btn-lg btn-default" href="/wiki/#{params[:id]}">Learn more on the wiki page</a><% end %>
</div>
</div>
<% else %>
Expand Down

0 comments on commit ae7402a

Please sign in to comment.