site logo
This commit is contained in:
parent
253e106302
commit
4ab7efbf2a
|
@ -25,7 +25,6 @@ class Album < ActiveRecord::Base
|
||||||
|
|
||||||
|
|
||||||
def ensure_path
|
def ensure_path
|
||||||
puts self.title.parameterize
|
|
||||||
self.path = self.title.parameterize unless self.path
|
self.path = self.title.parameterize unless self.path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,10 @@
|
||||||
<%= link_to 'Login', login_path %>
|
<%= link_to 'Login', login_path %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</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">
|
<form action="/albums" method="get" id="search">
|
||||||
<input type="text" name="q" class="textfie.d"/>
|
<input type="text" name="q" class="textfie.d"/>
|
||||||
<input type="submit" value="Search" class="button" />
|
<input type="submit" value="Search" class="button" />
|
||||||
|
|
|
@ -1,17 +1,20 @@
|
||||||
development:
|
development:
|
||||||
site_name: Photos
|
site_name: 'Photos'
|
||||||
|
#site_logo: 'logo.png'
|
||||||
photos_path: <%= RAILS_ROOT + '/photos/' %>
|
photos_path: <%= RAILS_ROOT + '/photos/' %>
|
||||||
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
|
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
|
||||||
photos_path_public: '/files/'
|
photos_path_public: '/files/'
|
||||||
thumbs_path_public: '/thumbs/'
|
thumbs_path_public: '/thumbs/'
|
||||||
production:
|
production:
|
||||||
site_name: Photos
|
site_name: 'Photos'
|
||||||
|
#site_logo: 'logo.png'
|
||||||
photos_path: <%= RAILS_ROOT + '/photos/' %>
|
photos_path: <%= RAILS_ROOT + '/photos/' %>
|
||||||
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
|
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
|
||||||
photos_path_public: '/files/'
|
photos_path_public: '/files/'
|
||||||
thumbs_path_public: '/thumbs/'
|
thumbs_path_public: '/thumbs/'
|
||||||
test:
|
test:
|
||||||
site_name: Photos
|
site_name: 'Photos'
|
||||||
|
#site_logo: 'logo.png'
|
||||||
photos_path: <%= RAILS_ROOT + '/photos/' %>
|
photos_path: <%= RAILS_ROOT + '/photos/' %>
|
||||||
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
|
thumbs_path: <%= RAILS_ROOT + '/public/thumbs/' %>
|
||||||
photos_path_public: '/files/'
|
photos_path_public: '/files/'
|
||||||
|
|
Loading…
Reference in a new issue