instiki/app/views/wiki/web_list.rhtml

22 lines
582 B
Text
Raw Normal View History

<% @title = "Wiki webs" %>
<% @webs.each do |web| %>
<% if web.password %> <div style="padding: 4px; background-image: url(/images/bg_protected.gif)">
<% else %> <div style="padding: 4px;"> <% end %>
<span>
<%= link_to_page 'HomePage', web, web.name, :mode => 'show' %>
<% if web.published? %>
(<%= link_to_page 'HomePage', web, 'published version', :mode => 'publish' %>)
<% end %>
<div class="byline" style="margin-bottom: 0px">
<%= web.pages.length %> pages by <%= web.authors.length %> authors
</div>
</span>
</div><br>
<% end %>
</ul>