From 73d07fd4c60d4b76ce9f896617026ee335f51539 Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Fri, 26 Jan 2018 14:27:34 -0500 Subject: [PATCH] Update show.html.erb (#2135) --- app/views/tag/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/tag/show.html.erb b/app/views/tag/show.html.erb index 4d7b841c97..65931a6cf4 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 %>