Only Display the Logo in XHTML-capable Text-Filters

Textile and RDoc users can't see the SVG anyway, so don't
bother rendering it.
This commit is contained in:
Jacques Distler 2009-02-08 03:45:38 -06:00
parent 6b49228aad
commit 8a60e741d7

View file

@ -39,7 +39,7 @@
<div id="Container"> <div id="Container">
<div id="Content"> <div id="Content">
<h1 id="pageName"> <h1 id="pageName">
<%= render(:file => 'svg_logo') %> <%= render(:file => 'svg_logo') if @controller.xhtml_enabled? %>
<%- if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) -%> <%- if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) -%>
<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %> <%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>
<%- elsif @web -%> <%- elsif @web -%>