instiki/app/views/wiki/web_list.rhtml
Matthias Tarasiewicz 1005d92bd1 web list does not show a link to a published version if it has none [Jesse Newland]
visual display if webs are pass-protected (div background)
2007-01-16 07:23:53 +00:00

21 lines
582 B
Text

<% @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>