From ae7402a3e889c0ba5d983f67c22e2cc03d428d70 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 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 %>