site logo else show title

rails2
Espen Antonsen 2009-08-10 16:30:49 +02:00
parent 4ab7efbf2a
commit 59beb8034b
1 changed files with 1 additions and 2 deletions

View File

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