diff --git a/app/views/tag/show.html.erb b/app/views/tag/show.html.erb index 4d7b841c973..65931a6cf4b 100644 --- a/app/views/tag/show.html.erb +++ b/app/views/tag/show.html.erb @@ -12,7 +12,7 @@

<%= link_to @wiki.latest.title, "/wiki/#{params[:id]}" %>

<%= @wiki.latest.render_body.match(/

(.+)<\/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('

').length > 2 %> + <% if @wiki.latest.render_body.split('

').length > 2 %>Learn more on the wiki page<% end %>
<% else %>