instiki/app/views/wiki/web_list.rhtml

26 lines
1,002 B
Text
Raw Normal View History

2007-01-22 14:43:50 +01:00
<% @title = "Wiki webs" %>
<ul>
2007-01-22 14:43:50 +01:00
<% @webs.each do |web| %>
<li>
2007-01-22 14:43:50 +01:00
<% if web.password %> <div class="web_protected">
<% else %> <div class="web_normal"> <% end %>
<%= 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 %> 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) %>
2007-03-05 05:56:52 +01:00
<%= web.last_page.revisions? ? "Revised" : "Created" %> by <%= author_link(web.last_page).delete("\x01-\x08\x0B\x0C\x0E-\x1F") %> (<%= web.last_page.current_revision.ip %>)
2007-01-22 14:43:50 +01:00
<% end %>
</div>
</div>
</li>
2007-01-22 14:43:50 +01:00
<% end %>
</ul>