aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Etienne2013-07-02 22:48:49 +0200
committerMichel Etienne2013-07-02 22:48:49 +0200
commit23cc5299ac04f85a5da88a430b8df6464607f48b (patch)
treef7ba04eeb9e0b68d001deff8eaaceb63bdba3c32
parent564b20e406a116c8a5ce7d43a82847678816ce5f (diff)
downloadchouette-core-23cc5299ac04f85a5da88a430b8df6464607f48b.tar.bz2
show projection label on views
-rw-r--r--app/views/access_points/show.html.erb2
-rw-r--r--app/views/referentials/show.html.erb4
-rw-r--r--app/views/stop_areas/show.html.erb2
3 files changed, 5 insertions, 3 deletions
diff --git a/app/views/access_points/show.html.erb b/app/views/access_points/show.html.erb
index b7c8ba391..d674ef88b 100644
--- a/app/views/access_points/show.html.erb
+++ b/app/views/access_points/show.html.erb
@@ -59,7 +59,7 @@
<% if !@access_point.projection.nil? %>
<p>
<span class='geo_data'><%= @access_point.human_attribute_name("projection") %>: </span>
- <%= @access_point.projection %>
+ <%= @referential.projection_type_label %>
</p>
<p>
<span class='geo_data'><%= @access_point.human_attribute_name("projection_x") %>: </span>
diff --git a/app/views/referentials/show.html.erb b/app/views/referentials/show.html.erb
index d8e5dd8df..b2df5b2db 100644
--- a/app/views/referentials/show.html.erb
+++ b/app/views/referentials/show.html.erb
@@ -11,7 +11,9 @@
</p>
<p>
<label><%= Referential.human_attribute_name("projection_type") %>: </label>
- <%= @referential.projection_type %>
+ <% if ! @referential.projection_type_label.empty? %>
+ <%= @referential.projection_type_label %> (epsg:<%= @referential.projection_type %>)
+ <% end %>
</p>
<p>
<label><%= Referential.human_attribute_name("time_zone").capitalize %>: </label>
diff --git a/app/views/stop_areas/show.html.erb b/app/views/stop_areas/show.html.erb
index 632036959..12a269455 100644
--- a/app/views/stop_areas/show.html.erb
+++ b/app/views/stop_areas/show.html.erb
@@ -45,7 +45,7 @@
<% if !@stop_area.projection.nil? %>
<p>
<span class='geo_data'><%= @stop_area.human_attribute_name("projection") %>: </span>
- <%= @stop_area.projection %>
+ <%= @referential.projection_type_label %>
</p>
<p>
<span class='geo_data'><%= @stop_area.human_attribute_name("projection_x") %>: </span>