render edit button even if wiki_page has no html content

This commit is contained in:
EricTYL 2019-11-28 16:30:45 +08:00
parent 3b83d9854c
commit 943a01091f
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@
</div>
<h3 class="page-module-title"><%= data["title"] %></h3>
<%= data["html"].html_safe %>
<%= data["html"].html_safe unless data["html"].nil? %>
<% if !data["url_to_edit"].blank? %>
<p class='admin-edit text-right'><a class='btn btn-primary' href='<%= data["url_to_edit"] %>'><i class='icon-edit'></i> <%= t(:edit) %></a></p>
<% end %>
<% end %>