site logo
This commit is contained in:
parent
253e106302
commit
4ab7efbf2a
|
@ -25,7 +25,6 @@ class Album < ActiveRecord::Base
|
|||
|
||||
|
||||
def ensure_path
|
||||
puts self.title.parameterize
|
||||
self.path = self.title.parameterize unless self.path
|
||||
end
|
||||
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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/'
|
||||
|
|
Loading…
Reference in a new issue