Tweaks to Default Layout

This commit is contained in:
Jacques Distler 2009-04-05 11:04:44 -05:00
parent 888ebe4b58
commit 28a0043957

View file

@ -5,7 +5,7 @@
<%- if @page and (@page.name == 'HomePage') and (%w( show published print ).include?(params['action'])) -%> <%- if @page and (@page.name == 'HomePage') and (%w( show published print ).include?(params['action'])) -%>
<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %> <%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>
<%- elsif @web -%> <%- elsif @web -%>
<%= @title %> in <%= h @web.name -%> <%= @title %> in <%= h @web.name %>
<%- else -%> <%- else -%>
<%= @title %> <%= @title %>
<%- end -%> <%- end -%>
@ -23,14 +23,16 @@
<%= File.read(RAILS_ROOT + '/public/stylesheets/instiki.css') if @inline_style %> <%= File.read(RAILS_ROOT + '/public/stylesheets/instiki.css') if @inline_style %>
</style> </style>
<%= stylesheet_link_tag 'instiki' unless @inline_style %> <%= stylesheet_link_tag 'instiki' unless @inline_style %>
<style type="text/css"><%= @style_additions %></style> <%= "<style type='text/css'>#{@style_additions}</style>" if @style_additions %>
<style type="text/css"><!--/*--><![CDATA[/*><!--*/ <style type="text/css"><!--/*--><![CDATA[/*><!--*/
<%= @web ? @web.additional_style : '' %> <%= @web ? @web.additional_style : '' %>
/*]]>*/--></style> /*]]>*/--></style>
<%= javascript_include_tag :defaults %> <%= javascript_include_tag :defaults %>
<%- if @web -%> <%- if @web -%>
<%= 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_headlines'},
<%= auto_discovery_link_tag(:atom, :controller => 'wiki', :web => @web.address, :action => 'atom_with_content') %> :title => 'Atom with headlines') %>
<%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_content'},
:title => 'Atom with full content') %>
<%- end -%> <%- end -%>
</head> </head>