aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/lines
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/lines')
-rw-r--r--app/views/lines/index.html.erb1
-rw-r--r--app/views/lines/show.html.erb2
2 files changed, 3 insertions, 0 deletions
diff --git a/app/views/lines/index.html.erb b/app/views/lines/index.html.erb
index ff14e8749..59c341e79 100644
--- a/app/views/lines/index.html.erb
+++ b/app/views/lines/index.html.erb
@@ -47,6 +47,7 @@
<ul class="actions">
<li><%= link_to t('lines.actions.import'), new_referential_import_path(@referential), :class => "import" %></li>
+ <li><%= link_to t('lines.actions.export_kml_all'), api_kml_referential_lines_path(@referential, :format => :kml), :class => "kml" %></li>
</ul>
<h3><%= t(".selection") %></h3>
diff --git a/app/views/lines/show.html.erb b/app/views/lines/show.html.erb
index 1b30aff49..d5c89cc3b 100644
--- a/app/views/lines/show.html.erb
+++ b/app/views/lines/show.html.erb
@@ -72,6 +72,8 @@
<li><%= link_to t('lines.actions.destroy'), referential_line_path(@referential, @line), :method => :delete, :data => {:confirm => t('lines.actions.destroy_confirm')}, :class => "remove" %></li>
<li><%= link_to t('routes.actions.new'), new_referential_line_route_path(@referential, @line), :class => "add" %></li>
<br>
+ <li><%= link_to t('lines.actions.export_kml'), api_kml_referential_line_path(@referential, @line, :format => :kml), :class => "kml" %></li>
+ <li><%= link_to t('routes.actions.export_kml_all'), api_kml_referential_line_routes_path(@referential, @line, :format => :kml), :class => "kml" %></li>
</ul>
<%= creation_tag(@line) %>
<% end %>