diff --git a/app/views/tag/show.html.erb b/app/views/tag/show.html.erb index f3f05a23a4..4d7b841c97 100644 --- a/app/views/tag/show.html.erb +++ b/app/views/tag/show.html.erb @@ -12,13 +12,13 @@

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

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

(.+)<\/p>/).to_a.try(:first).to_s.html_safe %> - <%= link_to("Read more", "/wiki/#{params[:id]}") if @wiki.latest.render_body.split('

').length > 2 %> + <%= link_to("Learn more on the wiki page", "/wiki/#{params[:id]}") if @wiki.latest.render_body.split('

').length > 2 %>
<% else %>

<%= @wiki.latest.title %>

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

(.+)<\/p>/).to_a.try(:first).to_s.html_safe %>

-

<%= link_to("Read more", "/wiki/#{params[:id]}") if @wiki.latest.render_body.html_safe.match(/

(.+)<\/p>/).length > 1 %>

+

<%= link_to("Learn more on the wiki page", "/wiki/#{params[:id]}") if @wiki.latest.render_body.html_safe.match(/

(.+)<\/p>/).length > 1 %>

<% end %> <% elsif @wildcard %>