2007-03-16 07:10:52 +01:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
|
2007-01-22 14:43:50 +01:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<title>
|
|
|
|
<% if @page and (@page.name == 'HomePage') and (%w( show published print ).include?(@action_name)) %>
|
|
|
|
<%= h @web.name %>
|
|
|
|
<% elsif @web %>
|
|
|
|
<%= @title %> in <%= h @web.name %>
|
|
|
|
<% else %>
|
|
|
|
<%= @title %>
|
|
|
|
<% end %>
|
|
|
|
<%= @show_diff ? ' (changes)' : '' %>
|
|
|
|
</title>
|
|
|
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<meta name="robots" content="<%= @robots_metatag_value %>" />
|
|
|
|
|
2007-02-13 10:25:05 +01:00
|
|
|
<%= javascript_include_tag 'page_helper' %>
|
|
|
|
|
2007-01-22 14:43:50 +01:00
|
|
|
<style type="text/css">
|
|
|
|
h1#pageName, .newWikiWord a, a.existingWikiWord, .newWikiWord a:hover, #TextileHelp h3 {
|
|
|
|
color: #<%= @web ? @web.color : "393" %>;
|
|
|
|
}
|
|
|
|
<%= File.read(RAILS_ROOT + '/public/stylesheets/instiki.css') if @inline_style %>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<%= stylesheet_link_tag 'instiki' unless @inline_style %>
|
|
|
|
|
2008-02-29 09:40:22 +01:00
|
|
|
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
2007-01-22 14:43:50 +01:00
|
|
|
<%= @style_additions %>
|
|
|
|
<%= @web ? @web.additional_style : '' %>
|
2008-02-29 09:40:22 +01:00
|
|
|
/*]]>*/--></style>
|
2007-03-09 05:35:49 +01:00
|
|
|
<%= javascript_include_tag :defaults %>
|
2007-01-22 14:43:50 +01:00
|
|
|
<% if @web %>
|
2007-04-14 00:04:03 +02:00
|
|
|
<%= auto_discovery_link_tag(:atom, :controller => 'wiki', :web => @web.address, :action => 'atom_with_headlines') %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, :controller => 'wiki', :web => @web.address, :action => 'atom_with_content') %>
|
2007-01-22 14:43:50 +01:00
|
|
|
<% end %>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="Container">
|
|
|
|
<div id="Content">
|
|
|
|
<h1 id="pageName">
|
|
|
|
<% if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) %>
|
|
|
|
<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>
|
|
|
|
<% elsif @web %>
|
2007-02-18 09:43:26 +01:00
|
|
|
<span class="webName"><%= @web.name %></span><br />
|
2007-01-22 14:43:50 +01:00
|
|
|
<%= @title %>
|
|
|
|
<% else %>
|
|
|
|
<%= @title %>
|
|
|
|
<% end %>
|
|
|
|
</h1>
|
|
|
|
|
2008-11-24 22:53:39 +01:00
|
|
|
<%= render(:file => 'navigation') unless @web.nil? || @hide_navigation %>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2007-05-11 18:47:38 +02:00
|
|
|
<% if flash[:info] %>
|
|
|
|
<div class="info"><%= escape_preserving_linefeeds flash[:info] %></div>
|
2007-01-22 14:43:50 +01:00
|
|
|
<% end %>
|
|
|
|
|
2007-05-11 18:47:38 +02:00
|
|
|
<% if @error or flash[:error] %>
|
|
|
|
<div class="errorExplanation"><%= escape_preserving_linefeeds(@error || flash[:error]) %></div>
|
2007-01-22 14:43:50 +01:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= @content_for_layout %>
|
|
|
|
|
|
|
|
<% if @show_footer %>
|
|
|
|
<div id="footer">
|
2008-10-17 23:26:17 +02:00
|
|
|
<div>This site is running on <a href="http://golem.ph.utexas.edu/instiki/show/HomePage">Instiki <%= "#{Instiki::VERSION::STRING}" %></a></div>
|
2007-02-19 17:01:16 +01:00
|
|
|
<div>Powered by <a href="http://rubyonrails.com/">Ruby on Rails</a> <%= "#{Rails::VERSION::STRING}" %></div>
|
2007-01-22 14:43:50 +01:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div> <!-- Content -->
|
|
|
|
|
|
|
|
</div> <!-- Container -->
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|