diff options
| author | Michel Etienne | 2012-07-03 16:55:34 +0200 |
|---|---|---|
| committer | Michel Etienne | 2012-07-03 16:55:34 +0200 |
| commit | 2ebd042fc74919dc21e40c9faffb6e785a255b56 (patch) | |
| tree | 39a1885cd20b8d5682d67f94841cfff510249ae4 | |
| parent | dcdc2b459213abe20ac6d154610eba0e72301200 (diff) | |
| download | chouette-core-2ebd042fc74919dc21e40c9faffb6e785a255b56.tar.bz2 | |
add route link on stop_area view
| -rw-r--r-- | Gemfile.github | 20 | ||||
| -rw-r--r-- | Gemfile.lock | 2 | ||||
| -rw-r--r-- | app/views/stop_areas/show.html.erb | 15 | ||||
| -rw-r--r-- | config/routes.rb | 2 |
4 files changed, 28 insertions, 11 deletions
diff --git a/Gemfile.github b/Gemfile.github index 5f9acce31..b2c77f9aa 100644 --- a/Gemfile.github +++ b/Gemfile.github @@ -1,17 +1,17 @@ source 'http://rubygems.org' gem 'rails', '3.1.3' -gem 'jquery-rails' gem 'devise' gem "ffi-proj4", :git => 'git://github.com/dryade/ffi-proj4.git' -gem "jruby-rack-worker" platforms :jruby do gem 'activerecord-jdbcpostgresql-adapter', :git => 'git://github.com/dryade/activerecord-jdbc-adapter.git' gem 'activerecord-jdbcsqlite3-adapter' gem 'jruby-openssl' + gem "jruby-rack-worker" gem 'warbler' + gem "jruby-rack-worker" end platforms :ruby do @@ -25,21 +25,22 @@ gem "georuby-ext", :git => 'git://github.com/dryade/georuby-ext.git' gem 'user_interface', :git => 'git://github.com/dryade/user-interface.git' gem 'json' gem 'cocoon' -gem 'formtastic', '2.0.2' +gem 'formtastic' gem 'inherited_resources' gem 'will_paginate', '~> 3.0' -# gem 'will-paginate-i18n','~> 0.1.5' gem 'ransack' gem 'squeel' gem 'RedCloth' +gem 'jquery-rails' +gem "modernizr-rails", "~> 2.0.6" gem "acts_as_tree", :git => "git://github.com/dryade/acts_as_tree.git" -gem 'apartment', :git => 'git://github.com/dryade/apartment.git' -gem 'ninoxe', :git => 'git://github.com/dryade/ninoxe.git' +gem 'ninoxe', :git => 'git://github.com/ninoxe.git' gem 'acts_as_list', '0.1.6' -gem 'composite_primary_keys', '4.1.2' +gem 'composite_primary_keys', '4.1.2' gem 'delayed_job_active_record' +gem 'apartment',:git => 'git://github.com/dryade/apartment.git' # Gems used only for assets and not required # in production environments by default. @@ -48,7 +49,8 @@ group :assets do gem 'coffee-rails', '~> 3.1.1' gem 'coffee-script-source' gem 'uglifier', '>= 1.0.3' - gem 'therubyrhino' + gem 'therubyrhino', :platform => :jruby + gem 'therubyracer', :platform => :ruby end group :development do @@ -69,7 +71,7 @@ end group :test do gem 'capybara' gem 'launchy' - gem 'database_cleaner' + gem 'database_cleaner', :git => 'git://github.com/dnagir/database_cleaner.git', :branch => 'postgre_jruby_issue' gem 'factory_girl_rails', '1.7' end diff --git a/Gemfile.lock b/Gemfile.lock index 89f237f1c..562e905ec 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: git://chouette.dryade.priv/ninoxe - revision: 8ea2541b6c007f8b4eba1c21cd1a55be95a86396 + revision: a8067d3063e01019d6599489781eb6ec4415890c specs: ninoxe (0.0.8) GeoRuby diff --git a/app/views/stop_areas/show.html.erb b/app/views/stop_areas/show.html.erb index 17c074f60..5f4bdb0d1 100644 --- a/app/views/stop_areas/show.html.erb +++ b/app/views/stop_areas/show.html.erb @@ -138,6 +138,21 @@ </div> <% end %> </div> + <% elsif @stop_area.routes.present? %> + <div class="link"><%= image_tag "icons/link.png"%></div> + <div class="children"> + <% @stop_area.routes.each do |route| %> + <div class="child"> + <%= link_to([@referential, route.line ]) do %> + <span><%= route.line.number %></span> + <% end %> + + <%= link_to([@referential, route.line , route]) do %> + <span><%= route.name %></span> + <% end %> + </div> + <% end %> + </div> <% end %> </div> diff --git a/config/routes.rb b/config/routes.rb index 90e29a039..ee583f1b6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -59,7 +59,7 @@ ChouetteIhm::Application.routes.draw do end end - resources :companies, :stop_areas + resources :companies resources :time_tables do collection do |
