1005d92bd1
visual display if webs are pass-protected (div background)
22 lines
582 B
Plaintext
22 lines
582 B
Plaintext
<% @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>
|