From c1cfdfcd73c322b2bed89a4ceaab86a4f969a0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aitor=20Garc=C3=ADa?= Date: Sun, 18 Apr 2010 21:45:02 +0200 Subject: [PATCH] Reused timeline --- app/views/municipios/evolution.html.erb | 29 ++++++++----------------- app/views/municipios/show.html.erb | 12 +--------- app/views/shared/_timeline.html.erb | 11 ++++++++++ 3 files changed, 21 insertions(+), 31 deletions(-) create mode 100644 app/views/shared/_timeline.html.erb diff --git a/app/views/municipios/evolution.html.erb b/app/views/municipios/evolution.html.erb index 6ea8ac1..a3ffcbc 100644 --- a/app/views/municipios/evolution.html.erb +++ b/app/views/municipios/evolution.html.erb @@ -2,17 +2,9 @@ <%= link_to @muni.nombre, city_card_path(@muni) %> <% end %> -

<%= @muni.province_name %>

+

<%= @muni.nombre %>

-
-<% (1985..2009).each do |year| %> - <%= link_to year, city_card_by_year_path(@muni, year) %> -<% end %> -
-<%= @muni.codigo_ine %> -<%= @muni.nombre %> - -
+<%= render :partial => 'shared/timeline', :locals => { :muni => @muni } %>