site logo else show title

rails2
Espen Antonsen 2009-08-10 16:32:39 +02:00
parent 59beb8034b
commit a976754781
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@
<% end %>
</div>
<h1>
<%= if APP_CONFIG[:site_logo] (image_tag APP_CONFIG[:site_logo]) else APP_CONFIG[:site_name] %>
<% if APP_CONFIG[:site_logo] %>
<%= image_tag APP_CONFIG[:site_logo] %>
<% else %>
<%= APP_CONFIG[:site_name] %>
<% end %>
</h1>
<form action="/albums" method="get" id="search">
<input type="text" name="q" class="textfie.d"/>