instiki/app/views/wiki/web_list.rhtml

19 lines
539 B
Plaintext
Raw Normal View History

<% @title = "Wiki webs" %>
<ul>
<% @webs.each do |web| %>
<li>
<% if web.published %>
<%= link_to_page 'HomePage', web, web.name, :mode => 'publish' %>
(read-only) /
<%= link_to_page 'HomePage', web, 'editable version', :mode => 'show' %> (requires login)
<% else %>
<%= link_to_page 'HomePage', web, web.name, :mode => 'show' %>
<% end %>
<div class="byline" style="margin-bottom: 0px">
<%= web.pages.length %> pages by <%= web.authors.length %> authors
</div>
</li>
<% end %>
</ul>