<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><%= browser_title %></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="keywords" content="<%= wiki_words "TeensyWeb" %>" />
<link rel="rss feed" href="/forum/rss" type="application/rss+xml" title="<%= "#{TWCONFIG['site_name']} forums feed" %>">
<link rel="rss feed" href="/wiki/rss" type="application/rss+xml" title="<%= "#{TWCONFIG['site_name']} wiki feed" %>">
<link rel="icon" href="/favicon.ico" />
<link rel="shortcut icon" href="/favicon.ico" />
<%= stylesheet_link_tag(TWCONFIG['style_sheet'] || 'default') %>
<% if msie? %>
<style type="text/css">
table { table-layout: fixed; }
</style>
<% else %>
<style type="text/css">
table { width: 100%; }
</style>
<% end %>
</head>
<body>
<div class="header">
<%= link_to(image_tag("rails.png", {:id => 'logo'}),
{:controller => 'wiki', :action => 'show', :id => ''}) %>
<span id="title"><%= TWCONFIG['title'] %></span><br /><br />
<span id="pagetitle"><%= page_title %></span>
<hr />
</div>
<% if !@hidenav %>
<div class="navigation">
<% if params[:controller] == 'forum' %>
<%= start_form_tag({:controller => 'forum', :action => 'search'}, {:method => 'get', :id => 'searchForm'}) %>
<% elsif params[:controller] == 'wiki' %>
<%= start_form_tag({:controller => 'wiki', :action => 'search'}, {:method => 'get', :id => 'searchForm'}) %>
<% end %>
<div class="form">
<%= link_to('Wiki', {:controller => 'wiki', :action => 'show', :id => 'HomePage'},
{:title => 'Back to the home page', :accesskey => 'W'}) %> |
<%= link_to('Forums', {:controller => 'forum', :action => 'list'},
{:title => 'Go to the forums', :accesskey => 'F'}) %> |
<%= link_to('Repository', {:controller => 'repository', :action => 'index', :id => ''},
{:title => 'Browse the repository', :accesskey => 'R'}) %> |
<% if !user? %>
<%= link_to('Sign Up', {:controller => 'account', :action => 'signup'},
{:title => 'Sign up for an account'}) %> |
<%= link_to('Login', {:controller => 'account', :action => 'login'},
{:title => 'Login to your account'}) %>
<% else %>
<%= link_to('Logout', {:controller => 'account', :action => 'logout'},
{:title => 'Logout of your account'}) %> |
<%= link_to('Preferences', {:controller => 'account', :action => 'edit', :id => session['user'].login},
{:title => 'Edit user preferences'}) %> |
<%= link_to('Members', {:controller => 'account', :action => 'list'},
{:title => 'List of users'}) %>
<% end %>
<% if params[:controller] == 'repository' %>
| <%= link_to('Changelog', {:controller => 'repository', :action => 'changelog'},
{:title => 'Last 10 changelog entries'}) %>
<% end %>
<% if params[:controller] == 'wiki' %>
| <%= link_to('All Pages', {:controller => 'wiki', :action => 'all'},
{:title => 'Alphabetically sorted list of pages', :accesskey => 'A'}) %>
| <%= link_to('Recently Revised', {:controller => 'wiki', :action => 'recent'},
{:title => 'Pages sorted by when they were last changed', :accesskey => 'C'}) %>
<% end %>
<% if params[:controller] == 'forum' && @forum %>
| <%= link_to 'New Topic', {:action => 'postnew', :id => @forum.id} %>
<% end %>
<% if params[:controller] == 'forum' %>
| <%= link_to 'Recent Posts', {:action => 'postrecent'} %>
<% end %>
<% if params[:controller] == 'forum' %>
| <%= link_to 'Forums RSS', {:action => 'rss'} %>
<%= text_field_tag('query', 'Search', {:id => 'searchField',
:onclick => "this.value == 'Search' ? this.value = '' : true"}) %>
<% elsif params[:controller] == 'wiki' %>
| <%= link_to 'Wiki RSS', {:action => 'rss'} %>
<%= text_field_tag('query', 'Search', {:id => 'searchField',
:onclick => "this.value == 'Search' ? this.value = '' : true"}) %>
<% end %>
</div>
<%= end_form_tag %>
</div>
<% end %>
<div class="notice"><%= @flash['notice'] %></div>
<%= @content_for_layout %>
<div class="footer">
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict" id="xhtmllogo" /></a>
<a href="http://jigsaw.w3.org/css-validator/">
<img src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" id="csslogo" />
</a>
</div>
</body>
</html>