This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
tuxbliki/app/views/permissions/show.html.erb

15 lines
580 B
Plaintext
Raw Permalink Normal View History

2008-06-27 00:13:15 -04:00
<% throw_content :for_sidebar do -%>
<a href="<%= url(:author, :id => @author.name.gsub(/ /, '_')) -%>"><img src="/images/go-home.png" alt="Author's Home" /> <%= @author.name -%></a><br />
<% if allowed_to?(:change_permissions) -%><a href="<%= url(:edit_permission, :id => @author.id) -%>"><img src="/images/preferences-system.png" /> Change Permissions</a><br /><% end %>
<% end -%>
<% if @permissions.empty? -%>
<p><em><strong>User has no permissions.</strong></em></p>
<% else -%>
<ol>
<% @permissions.each do |p| -%>
<li><%= p.name -%></li>
<% end -%>
</ol>
<% end -%>