From 8cd8a3d5736807a10b36ea21527216a2f3763886 Mon Sep 17 00:00:00 2001 From: Manish Agarwal Date: Wed, 30 Nov 2016 00:55:09 +0530 Subject: [PATCH] Update tag show.html.erb to add make wiki page button if none present (#1029) * Update tag show.html.erb to add make wiki page button if none present * Use fontawesome icons --- app/views/tag/show.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/tag/show.html.erb b/app/views/tag/show.html.erb index a620173840..1399538efb 100644 --- a/app/views/tag/show.html.erb +++ b/app/views/tag/show.html.erb @@ -19,7 +19,10 @@

<%= @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 %>

<% end %> - + + <% else %> +

This topic has no lead wiki page.

+ Add one now <% end %> <% if @tags.first %>