% @title = "All Pages" %>
<%= categories_menu unless @categories.empty? %>
<% unless @pages_that_are_orphaned.empty? && @page_names_that_are_wanted.empty? %>
All Pages
All pages in <%= @set_name %> listed alphabetically
<% end %>
<% @pages_by_name.each do |page| %>
-
<%= link_to_existing_page page, truncate(page.plain_name, 35) %>
<% end %>
<% if @web.count_pages %>
<% total_chars = @pages_in_category.characters %>
All content: <%= total_chars %> chars / <%= sprintf("%-.1f", (total_chars / 2275 )) %> pages
<% end %>
<% unless @page_names_that_are_wanted.empty? %>
Wanted Pages
Unexisting pages that other pages in <%= @set_name %> reference
<% @page_names_that_are_wanted.each do |wanted_page_name| %>
-
<%= link_to_page(wanted_page_name, @web, truncate(WikiWords.separate(wanted_page_name), 35)) %>
wanted by
<%= @web.select.pages_that_reference(wanted_page_name).collect { |referring_page|
link_to_existing_page referring_page
}.join(", ")
%>
<% end %>
<% end %>
<% unless @pages_that_are_orphaned.empty? %>
Orphaned Pages
Pages in <%= @set_name %> that no other page reference
<% @pages_that_are_orphaned.each do |orphan_page| %>
-
<%= link_to_existing_page orphan_page, truncate(orphan_page.plain_name, 35) %>
<% end %>
<% end %>