diff options
| author | Michel Etienne | 2012-08-30 11:49:06 +0200 |
|---|---|---|
| committer | Michel Etienne | 2012-08-30 11:49:06 +0200 |
| commit | c0acd57464131d0583588df500f29aeaed48c1fb (patch) | |
| tree | 3c3e61c1a272bb7fde79d4dae800bdeb2f923f1d | |
| parent | 70d1921703fafa93346826245bc1a6ee35c44f53 (diff) | |
| download | chouette-core-c0acd57464131d0583588df500f29aeaed48c1fb.tar.bz2 | |
change +/- char with icons
| -rw-r--r-- | Gemfile.lock | 2 | ||||
| -rw-r--r-- | app/assets/images/icons/minus.png | bin | 0 -> 770 bytes | |||
| -rw-r--r-- | app/assets/images/icons/plus.png | bin | 0 -> 983 bytes | |||
| -rw-r--r-- | app/views/routes/show.html.erb | 18 | ||||
| -rw-r--r-- | app/views/vehicle_journeys/show.html.erb | 16 |
5 files changed, 18 insertions, 18 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index a134b3357..a3c77beb6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: git://chouette.dryade.priv/ninoxe - revision: 68d4cf3101348b37084139e43166672fd3d2324c + revision: 4267b4e2183fc954683e673215baa024ebd7aa99 specs: ninoxe (0.0.8) GeoRuby diff --git a/app/assets/images/icons/minus.png b/app/assets/images/icons/minus.png Binary files differnew file mode 100644 index 000000000..71ff8c112 --- /dev/null +++ b/app/assets/images/icons/minus.png diff --git a/app/assets/images/icons/plus.png b/app/assets/images/icons/plus.png Binary files differnew file mode 100644 index 000000000..80dda4c3f --- /dev/null +++ b/app/assets/images/icons/plus.png diff --git a/app/views/routes/show.html.erb b/app/views/routes/show.html.erb index 9fa1aa184..5c271cc0b 100644 --- a/app/views/routes/show.html.erb +++ b/app/views/routes/show.html.erb @@ -65,21 +65,21 @@ </div> <p class="after_map" /> - <h3 class="route_stop_points"><%= t('.stop_points') %> - <a class="stop_points"> - <span class="switcher">+</span> - <span class="switcher" style="display: none;">-</span> + <h3 class="route_stop_points"> + <a class="stop_points"><%= t('.stop_points') %> + <%= image_tag ("icons/plus.png" , :class => "switcher") %> + <%= image_tag ("icons/minus.png" , :class => "switcher" , :style => "display: none;") %> </a> </h3> <div class="stop_points_detail" style="display: none;"> <%= render :partial => "stop_points_detail" %> </div> -<h3 class="route_journey_patterns"><%= t('.journey_patterns') %> - <a class="journey_patterns"> - <span class="switcher">+</span> - <span class="switcher" style="display: none;">-</span> - </a> +<h3 class="route_journey_patterns"> + <a class="journey_patterns"><%= t('.journey_patterns') %> + <%= image_tag ("icons/plus.png" , :class => "switcher") %> + <%= image_tag ("icons/minus.png" , :class => "switcher" , :style => "display: none;") %> + </a> </h3> <div class="journey_patterns content" style="display: none;"> <%= render :partial => "journey_patterns/journey_pattern", :collection => @route.journey_patterns %> diff --git a/app/views/vehicle_journeys/show.html.erb b/app/views/vehicle_journeys/show.html.erb index 5a00430f6..842afcfac 100644 --- a/app/views/vehicle_journeys/show.html.erb +++ b/app/views/vehicle_journeys/show.html.erb @@ -52,10 +52,10 @@ </p> </div> </div> -<h3><%= @vehicle_journey.human_attribute_name(:vehicle_journey_at_stop_ids) %> -<a class="vehicle_journey_at_stops"> - <span class="switcher">+</span> - <span class="switcher" style="display: none;">-</span> +<h3> +<a class="vehicle_journey_at_stops"><%= @vehicle_journey.human_attribute_name(:vehicle_journey_at_stop_ids) %> + <%= image_tag ("icons/plus.png" , :class => "switcher") %> + <%= image_tag ("icons/minus.png" , :class => "switcher" , :style => "display: none;") %> </a> </h3> <div class="vehicle_journey_at_stops content" style="display: none;"> @@ -79,10 +79,10 @@ </table> </div> -<h3><%= t('.time_tables') %> -<a class="vehicle_journey_time_tables"> - <span class="switcher">+</span> - <span class="switcher" style="display: none;">-</span> +<h3> +<a class="vehicle_journey_time_tables"><%= t('.time_tables') %> + <%= image_tag ("icons/plus.png" , :class => "switcher") %> + <%= image_tag ("icons/minus.png" , :class => "switcher" , :style => "display: none;") %> </a> </h3> <div class="vehicle_journey_time_tables content" style="display: none;"> |
