site logo

This commit is contained in:
Espen Antonsen 2009-08-10 16:22:06 +02:00
parent 253e106302
commit 4ab7efbf2a
3 changed files with 10 additions and 5 deletions

View file

@ -25,7 +25,6 @@ class Album < ActiveRecord::Base
def ensure_path
puts self.title.parameterize
self.path = self.title.parameterize unless self.path
end

View file

@ -21,7 +21,10 @@
<%= link_to 'Login', login_path %>
<% end %>
</div>
<h1><%= APP_CONFIG[:site_name] %></h1>
<h1>
<%= APP_CONFIG[:site_name] %>
<%= (image_tag APP_CONFIG[:site_logo]) if APP_CONFIG[:site_logo] %>
</h1>
<form action="/albums" method="get" id="search">
<input type="text" name="q" class="textfie.d"/>
<input type="submit" value="Search" class="button" />

View file

@ -1,17 +1,20 @@
development:
site_name: Photos
site_name: 'Photos'
#site_logo: 'logo.png'
photos_path: <%= RAILS_ROOT + '/photos/' %>
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
photos_path_public: '/files/'
thumbs_path_public: '/thumbs/'
production:
site_name: Photos
site_name: 'Photos'
#site_logo: 'logo.png'
photos_path: <%= RAILS_ROOT + '/photos/' %>
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
photos_path_public: '/files/'
thumbs_path_public: '/thumbs/'
test:
site_name: Photos
site_name: 'Photos'
#site_logo: 'logo.png'
photos_path: <%= RAILS_ROOT + '/photos/' %>
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
photos_path_public: '/files/'