2005-01-24 19:52:04 +01:00
|
|
|
<% @title = "All Pages" %>
|
|
|
|
|
2005-04-07 05:24:02 +02:00
|
|
|
<%= categories_menu unless @categories.empty? %>
|
2005-01-24 19:52:04 +01:00
|
|
|
|
|
|
|
<div id="allPages" style="float: left; width: 280px; margin-right: 30px">
|
|
|
|
<% unless @pages_that_are_orphaned.empty? && @page_names_that_are_wanted.empty? %>
|
|
|
|
<h2>
|
|
|
|
All Pages
|
|
|
|
<br/><small style="font-size: 12px"><i>All pages in <%= @set_name %> listed alphabetically</i></small>
|
|
|
|
</h2>
|
|
|
|
<% end %>
|
|
|
|
|
2005-02-19 00:19:42 +01:00
|
|
|
<ul>
|
2005-11-14 12:00:46 +01:00
|
|
|
<% @pages_in_category.each do |page| %>
|
2005-02-19 00:19:42 +01:00
|
|
|
<li>
|
|
|
|
<%= link_to_existing_page page, truncate(page.plain_name, 35) %>
|
|
|
|
</li>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% end %></ul>
|
|
|
|
|
2005-08-09 04:20:28 +02:00
|
|
|
<% if @web.count_pages? %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% total_chars = @pages_in_category.characters %>
|
2005-11-14 12:00:46 +01:00
|
|
|
<p><small>All content: <%= total_chars %> chars / approx. <%= sprintf("%-.1f", (total_chars / 2275 )) %> printed pages</small></p>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="float: left; width: 280px">
|
|
|
|
<% unless @page_names_that_are_wanted.empty? %>
|
|
|
|
<h2>
|
|
|
|
Wanted Pages
|
2005-02-19 00:19:42 +01:00
|
|
|
<br/>
|
|
|
|
<small style="font-size: 12px">
|
|
|
|
<i>Unexisting pages that other pages in <%= @set_name %> reference</i>
|
|
|
|
</small>
|
2005-01-24 19:52:04 +01:00
|
|
|
</h2>
|
|
|
|
|
|
|
|
<ul style="margin-bottom: 10px">
|
2005-02-19 00:19:42 +01:00
|
|
|
<% @page_names_that_are_wanted.each do |wanted_page_name| %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<li>
|
2005-03-29 08:25:42 +02:00
|
|
|
<%= link_to_page(wanted_page_name, @web, truncate(WikiWords.separate(wanted_page_name), 35)) %>
|
2005-01-24 19:52:04 +01:00
|
|
|
wanted by
|
2005-03-29 08:25:42 +02:00
|
|
|
<%= @web.select.pages_that_reference(wanted_page_name).collect { |referring_page|
|
2005-02-19 00:19:42 +01:00
|
|
|
link_to_existing_page referring_page
|
|
|
|
}.join(", ")
|
|
|
|
%>
|
2005-01-24 19:52:04 +01:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless @pages_that_are_orphaned.empty? %>
|
|
|
|
<h2>
|
|
|
|
Orphaned Pages
|
|
|
|
<br/><small style="font-size: 12px"><i>Pages in <%= @set_name %> that no other page reference</i></small>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<ul style="margin-bottom: 35px">
|
2005-02-19 00:19:42 +01:00
|
|
|
<% @pages_that_are_orphaned.each do |orphan_page| %>
|
|
|
|
<li>
|
2005-05-29 01:13:01 +02:00
|
|
|
<%= link_to_existing_page orphan_page, truncate(orphan_page.plain_name, 35) %>
|
2005-02-19 00:19:42 +01:00
|
|
|
</li>
|
|
|
|
<% end %>
|
2005-01-24 19:52:04 +01:00
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
</div>
|