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/authors/index.html.erb

14 lines
622 B
Plaintext
Raw Normal View History

2008-06-27 00:13:15 -04:00
<% throw_content :for_sidebar do -%>
<% if allowed_to?(:send_invitations) -%><a href="<%= url(:new_invitation) -%>"><img src="/images/mail-message-new.png" alt="Send Invitation" /> Send Invitation</a><br /><% end -%>
<% unless logged_in? -%><a href="<%= url(:new_author) -%>"><img src="/images/contact-new.png" /> Sign up!</a><br /><% end -%>
<% end -%>
<% if @authors.empty? -%>
<p><em><strong>There were no authors found!</strong></em></p>
<% else -%>
<ol>
<% @authors.each do |author| -%>
<li><a href="<%= url(:author, :id => author.name) -%>"><%= author.name -%></a></li>
<% end -%>
</ol>
<% end -%>