2005-04-19 06:17:17 +02:00
|
|
|
<!DOCTYPE html
|
|
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2005-01-24 19:52:04 +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)) %>
|
2006-03-11 23:10:32 +01:00
|
|
|
<%= h @web.name %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% elsif @web %>
|
2006-03-11 23:10:32 +01:00
|
|
|
<%= @title %> in <%= h @web.name %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% else %>
|
|
|
|
<%= @title %>
|
|
|
|
<% end %>
|
2006-03-11 23:10:32 +01:00
|
|
|
<%= @show_diff ? ' (changes)' : '' %>
|
2005-01-24 19:52:04 +01:00
|
|
|
</title>
|
|
|
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2005-11-01 08:31:44 +01:00
|
|
|
<meta name="robots" content="<%= @robots_metatag_value %>" />
|
|
|
|
|
2005-01-24 19:52:04 +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>
|
|
|
|
|
2005-07-20 00:27:45 +02:00
|
|
|
<%= stylesheet_link_tag 'instiki' unless @inline_style %>
|
2005-01-24 19:52:04 +01:00
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
<%= @style_additions %>
|
|
|
|
<%= @web ? @web.additional_style : '' %>
|
|
|
|
</style>
|
2007-02-27 22:56:13 +01:00
|
|
|
<%= javascript_include_tag :defaults %>
|
2005-03-26 06:26:12 +01:00
|
|
|
<% if @web %>
|
2005-07-20 00:27:45 +02:00
|
|
|
<%= auto_discovery_link_tag(:rss, :controller => 'wiki', :web => @web.address, :action => 'rss_with_headlines') %>
|
|
|
|
<%= auto_discovery_link_tag(:rss, :controller => 'wiki', :web => @web.address, :action => 'rss_with_content') %>
|
2005-03-26 06:26:12 +01:00
|
|
|
<% end %>
|
2005-01-24 19:52:04 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2005-05-09 05:41:00 +02:00
|
|
|
|
2005-01-24 19:52:04 +01:00
|
|
|
<div id="Container">
|
|
|
|
<div id="Content">
|
|
|
|
<h1 id="pageName">
|
|
|
|
<% if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) %>
|
2006-03-11 23:10:32 +01:00
|
|
|
<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<% elsif @web %>
|
|
|
|
<small><%= @web.name %></small><br />
|
|
|
|
<%= @title %>
|
|
|
|
<% else %>
|
|
|
|
<%= @title %>
|
|
|
|
<% end %>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<%= render 'navigation' unless @web.nil? || @hide_navigation %>
|
2005-11-14 09:38:37 +01:00
|
|
|
|
2007-05-08 00:46:00 +02:00
|
|
|
<% if flash[:info] %>
|
|
|
|
<div class="info"><%= escape_preserving_linefeeds flash[:info] %></div>
|
2005-11-14 15:02:36 +01:00
|
|
|
<% end %>
|
|
|
|
|
2007-05-08 00:46:00 +02:00
|
|
|
<% if @error or flash[:error] %>
|
|
|
|
<div class="errorExplanation"><%= escape_preserving_linefeeds(@error || flash[:error]) %></div>
|
2005-11-14 09:38:37 +01:00
|
|
|
<% end %>
|
|
|
|
|
2005-01-24 19:52:04 +01:00
|
|
|
<%= @content_for_layout %>
|
|
|
|
|
2005-04-03 08:19:33 +02:00
|
|
|
<% if @show_footer %>
|
|
|
|
<div id="footer">
|
2005-11-14 15:02:36 +01:00
|
|
|
<div>This site is running on <a href="http://instiki.org/">Instiki</a></div>
|
|
|
|
<div>Powered by <a href="http://rubyonrails.com/">Ruby on Rails</a></div>
|
2005-04-03 08:19:33 +02:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2005-01-24 19:52:04 +01:00
|
|
|
</div> <!-- Content -->
|
2005-04-03 08:15:53 +02:00
|
|
|
|
2005-01-24 19:52:04 +01:00
|
|
|
</div> <!-- Container -->
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|