render edit button even if wiki_page has no html content
This commit is contained in:
parent
3b83d9854c
commit
943a01091f
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue