2010-06-04 19:10:26 +02: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>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if @page and (@page.name == 'HomePage') and (%w( show published print ).include?(params['action'])) -%>
|
2008-12-15 23:31:39 +01:00
|
|
|
<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- elsif @web -%>
|
2009-04-05 18:04:44 +02:00
|
|
|
<%= @title %> in <%= h @web.name %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- else -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<%= @title %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
</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' %>
|
|
|
|
|
2010-01-23 07:21:14 +01:00
|
|
|
<%= stylesheet_link_tag 'instiki', :media => 'all' unless @inline_style %>
|
|
|
|
<%= stylesheet_link_tag 'syntax', :media => 'all' unless @inline_style %>
|
2007-01-22 14:43:50 +01:00
|
|
|
<style type="text/css">
|
2009-11-06 21:32:45 +01:00
|
|
|
h1#pageName, div.info, .newWikiWord a, a.existingWikiWord, .newWikiWord a:hover, [actiontype="toggle"]:hover, #TextileHelp h3 {
|
2007-01-22 14:43:50 +01:00
|
|
|
color: #<%= @web ? @web.color : "393" %>;
|
|
|
|
}
|
2010-01-23 07:21:14 +01:00
|
|
|
a:visited.existingWikiWord {
|
|
|
|
color: #<%= darken(@web ? @web.color : "393") %>;
|
|
|
|
}
|
2009-11-22 08:32:58 +01:00
|
|
|
<%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %>
|
2009-12-24 07:45:45 +01:00
|
|
|
<%= Rails.root.join('public', 'stylesheets', 'syntax.css').read if @inline_style %>
|
2007-01-22 14:43:50 +01:00
|
|
|
</style>
|
2009-04-05 18:04:44 +02:00
|
|
|
<%= "<style type='text/css'>#{@style_additions}</style>" if @style_additions %>
|
2008-12-22 19:19:18 +01:00
|
|
|
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
2010-07-22 19:44:14 +02:00
|
|
|
<%= @web && @web.additional_style ? @web.additional_style.html_safe : '' %>
|
2008-02-29 09:40:22 +01:00
|
|
|
/*]]>*/--></style>
|
2007-03-09 05:35:49 +01:00
|
|
|
<%= javascript_include_tag :defaults %>
|
2011-02-19 06:36:23 +01:00
|
|
|
<%= csrf_meta_tag %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if @web -%>
|
2010-10-18 05:30:56 +02:00
|
|
|
<%- if @web.markup == :markdownMML -%>
|
2011-06-12 06:39:42 +02:00
|
|
|
<script type="text/x-mathjax-config">
|
|
|
|
MathJax.Hub.Config({
|
|
|
|
MathML: { useMathMLspacing: true },
|
|
|
|
"HTML-CSS": { scale: 90 }
|
|
|
|
});
|
|
|
|
if (window._onload_fired_) MathJax.Hub.Startup.onload();
|
|
|
|
</script>
|
2010-10-18 05:30:56 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
if (!(Prototype.Browser.Gecko || navigator.userAgent.match(/MathPlayer/))) {
|
|
|
|
var s = document.createElement('script');
|
2011-06-12 06:39:42 +02:00
|
|
|
s.src = "<%= compute_public_path('MathJax.js', 'MathJax').split('?')[0] %>?config=MML_HTMLorMML";
|
|
|
|
document.querySelector('head').appendChild(s);
|
|
|
|
window.addEventListener("load", function(){window._onload_fired_ = true} , false);
|
2010-10-18 05:30:56 +02:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<%- end -%>
|
2009-04-05 18:04:44 +02:00
|
|
|
<%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_headlines'},
|
|
|
|
:title => 'Atom with headlines') %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_content'},
|
|
|
|
:title => 'Atom with full content') %>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="Container">
|
|
|
|
<div id="Content">
|
|
|
|
<h1 id="pageName">
|
2009-12-15 05:34:31 +01:00
|
|
|
<%= render(:file => 'svg_logo') if xhtml_enabled? %>
|
2009-02-08 10:17:20 +01:00
|
|
|
<%- if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>
|
2009-02-08 10:17:20 +01:00
|
|
|
<%- 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 %>
|
2009-02-08 10:17:20 +01:00
|
|
|
<%- else -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<%= @title %>
|
2009-02-08 10:17:20 +01:00
|
|
|
<%- end %>
|
2007-01-22 14:43:50 +01:00
|
|
|
</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
|
|
|
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if flash[:info] -%>
|
2011-09-03 18:33:51 +02:00
|
|
|
<div class="info"><%= escape_preserving_linefeeds flash[:info] %></div>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if @error or flash[:error] -%>
|
2011-09-03 18:33:51 +02:00
|
|
|
<div class="errorExplanation"><%= escape_preserving_linefeeds(@error || flash[:error]) %></div>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
<%= @content_for_layout %>
|
|
|
|
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- if @show_footer -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<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>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
</div> <!-- Content -->
|
|
|
|
|
|
|
|
</div> <!-- Container -->
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|