Changesets can be listed by changeset number.
The Git repository is here.
Changeset 335
Gullery equivalent of Changeset #315 in Beast.
- Comitted by: rool
- Date: Saturday March 19 17:35:37 2011 (over 13 years ago)
Affected files:
- rool/rails/gullery/trunk/app/views/projects/_asset.mab (diff)
- rool/rails/gullery/trunk/config/environment.rb (diff)
- rool/rails/gullery/trunk/config/routes.rb (diff)
rool/rails/gullery/trunk/app/views/projects/_asset.mab:
prev. | current | |
span.delete { link_to_remote " delete ×", :url => capture { assets_url(:action => 'destroy', :id => asset.id) }, :confirm => "Do you want to delete this photo?" } | ||
end | ||
end | ||
14 | | |
14 | link_to image_tag(asset.web_path(:thumb), :width => Asset.thumbnail_width, :height => Asset.thumbnail_height), image_path(asset.web_path), :rel => 'lightbox', :title => capture { textilight(asset.caption) } | |
render :partial => 'asset_caption', :locals => {:asset => asset} | ||
if @logged_in | ||
in_place_editor "asset_caption_#{asset.id}", :url => capture { assets_url(:action => 'update_caption', :id => asset.id) } |
rool/rails/gullery/trunk/config/environment.rb:
prev. | current | |
# you don't control web/app server and can't set it the proper way | ||
#ENV['RAILS_ENV'] ||= 'production' | ||
7 | # Rails Gem Version | |
8 | RAILS_GEM_VERSION = '1.2.6' unless defined? RAILS_GEM_VERSION | |
9 | ||
# Bootstrap the Rails environment, frameworks, and default configuration | ||
require File.join(File.dirname(__FILE__), 'boot') | ||
10 | ||
11 | ||
Rails::Initializer.run do |config| | ||
13 | | |
14 | | |
15 | | |
16 | | |
17 | ||
# Settings in config/environments/* take precedence those specified here | ||
# Skip frameworks you're not going to use |
rool/rails/gullery/trunk/config/routes.rb:
prev. | current | |
1 | ||
2 | ||
ActionController::Routing::Routes.draw do |map| | ||
5 | | |
3 | map.root '/', :controller => "projects" | |
7 | | |
8 | | |
9 | | |
5 | map.signup '/signup', :controller => "account", :action => 'signup' | |
6 | map.login '/login', :controller => "account", :action => 'login' | |
7 | map.logout '/logout', :controller => "account", :action => 'logout' | |
11 | | |
12 | | |
13 | | |
9 | map.projects '/projects/:action/:id', :controller => 'projects' | |
10 | map.assets '/assets/:action/:id', :controller => 'assets', :action => 'show' | |
11 | map.account '/account/:action', :controller => 'account' | |
# Allow downloading Web Service WSDL as a file with an extension | ||
# instead of a file named 'wsdl' | ||
17 | | |
15 | map.connect '/:controller/service.wsdl', :action => 'wsdl' | |
# Install the default route as the lowest priority. | ||
20 | | |
18 | map.connect '/:controller/:action/:id' | |
end |