19 lines
917 B
Plaintext
19 lines
917 B
Plaintext
<% throw_content :for_sidebar do -%>
|
|
<% if allowed_to?(:edit_tags) -%><a href="<%= url(:edit_tag, :id => @tag.name) -%>"><img src="/images/document-save.png" /> Edit tag</a><br /><% end -%>
|
|
<% if allowed_to?(:destroy_tags) -%><a href="<%= url(:delete_tag, :id => @tag.name) -%>" onclick="if(!confirm('Are you sure you want to delete this tag?')){return false;}" rel="nofollow"><img src="/images/edit-delete.png" /> Destroy tag</a><br /><% end -%>
|
|
<% end -%>
|
|
|
|
<h2>Pages</h2>
|
|
<% if @pages.empty? -%>
|
|
<p><em><strong>None!</strong></em></p>
|
|
<% else -%>
|
|
<ol><%= @pages.collect { |p| "<li><a href='#{url(:page, :id => p.name.gsub(/ /, '_'))}'>#{p.name}</a></li>" }.join -%></ol>
|
|
<% end %>
|
|
|
|
<h2>Albums</h2>
|
|
<% if @albums.empty? -%>
|
|
<p><em><strong>None!</strong></em></p>
|
|
<% else -%>
|
|
<ol><%= @albums.collect { |a| "<li><a href='#{url(:album, :id => a.name.gsub(/ /, '_'))}'>#{a.name}</a></li>" }.join -%></ol>
|
|
<% end -%>
|