From 943a01091f6505a8a2adf2713d70a0f698b0bfd7 Mon Sep 17 00:00:00 2001 From: Eric Tsai Date: Thu, 28 Nov 2019 16:30:45 +0800 Subject: [PATCH] render edit button even if wiki_page has no html content --- app/views/page_contents/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/page_contents/index.html.erb b/app/views/page_contents/index.html.erb index 3ccc552..5b5369c 100644 --- a/app/views/page_contents/index.html.erb +++ b/app/views/page_contents/index.html.erb @@ -6,8 +6,8 @@

<%= data["title"] %>

-<%= data["html"].html_safe %> +<%= data["html"].html_safe unless data["html"].nil? %> <% if !data["url_to_edit"].blank? %>

<%= t(:edit) %>

-<% end %> \ No newline at end of file +<% end %>