hide 'edit info' button for non-staff

This commit is contained in:
jomo
2014-06-29 05:45:46 +02:00
parent 4b032058fa
commit 607b764b50

View File

@@ -1,7 +1,9 @@
<% title @info.title %>
<%= link_to "Info", info_index_path %> → <%= @info.title %>
<%= link_to "Edit Info", edit_info_path(@info), class: "btn blue right" %>
<% if mod? %>
<%= link_to "Edit Info", edit_info_path(@info), class: "btn blue right" %>
<% end %>
<div class="clear"></div>
<h1 class="info-title"><%= @info.title %></h1>
<div class="post"><%= render_trusted_md(@info.content).html_safe %></div>