hide 'edit info' button for non-staff
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
<% title @info.title %>
|
<% title @info.title %>
|
||||||
|
|
||||||
<%= link_to "Info", info_index_path %> → <%= @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>
|
<div class="clear"></div>
|
||||||
<h1 class="info-title"><%= @info.title %></h1>
|
<h1 class="info-title"><%= @info.title %></h1>
|
||||||
<div class="post"><%= render_trusted_md(@info.content).html_safe %></div>
|
<div class="post"><%= render_trusted_md(@info.content).html_safe %></div>
|
||||||
Reference in New Issue
Block a user