2005-01-24 19:52:04 +01:00
|
|
|
<% @title = "Wiki webs" %>
|
2007-01-18 14:33:52 +01:00
|
|
|
<br/>
|
2007-01-16 08:23:53 +01:00
|
|
|
|
2005-02-19 00:19:42 +01:00
|
|
|
<% @webs.each do |web| %>
|
2007-01-16 08:23:53 +01:00
|
|
|
|
2007-01-18 14:33:52 +01:00
|
|
|
<% if web.password %> <div class="web_protected">
|
|
|
|
<% else %> <div class="web_normal"> <% end %>
|
2007-01-16 08:23:53 +01:00
|
|
|
<span>
|
|
|
|
<%= link_to_page 'HomePage', web, web.name, :mode => 'show' %>
|
|
|
|
<% if web.published? %>
|
|
|
|
(<%= link_to_page 'HomePage', web, 'published version', :mode => 'publish' %>)
|
2005-01-24 19:52:04 +01:00
|
|
|
<% end %>
|
2007-01-16 08:23:53 +01:00
|
|
|
|
2005-01-24 19:52:04 +01:00
|
|
|
<div class="byline" style="margin-bottom: 0px">
|
2007-01-18 18:57:16 +01:00
|
|
|
<%= web.pages.length %> page<% if web.pages.length != 1 %>s<% end %> by <%= web.authors.length %> author<% if web.authors.length != 1 %>s<% end %>
|
|
|
|
- Last Update: <%= web.last_page.nil? ? format_date(web.created_at) : format_date(web.last_page.revised_at) %><br/>
|
|
|
|
<% if ! web.last_page.nil? %>
|
|
|
|
Last Document: <%= link_to_page(web.last_page.name,web) %>
|
|
|
|
<%= web.last_page.revisions? ? "Revised" : "Created" %> by <%= author_link(web.last_page) %> (<%= web.last_page.current_revision.ip %>)
|
|
|
|
<% end %>
|
2005-01-24 19:52:04 +01:00
|
|
|
</div>
|
2007-01-16 08:23:53 +01:00
|
|
|
</span>
|
|
|
|
</div><br>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% end %>
|
|
|
|
</ul>
|