From 8c70a863c2c3e8313fe766ff9b5188e1ff394523 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 27 Jun 2013 00:12:25 +0200 Subject: [PATCH] Add clone map button --- umap/templates/leaflet_storage/map_form.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umap/templates/leaflet_storage/map_form.html b/umap/templates/leaflet_storage/map_form.html index 0dd78731..131a590f 100644 --- a/umap/templates/leaflet_storage/map_form.html +++ b/umap/templates/leaflet_storage/map_form.html @@ -16,6 +16,9 @@ {% if not map and not user.is_authenticated %} {% trans 'You are creating a map without being authenticated. A cookie will be set on this browser to make possible for you to edit the map in the future. If you want to edit the map from another computer, use the "edit url" displayed in the "permissions" window. If you log in and load the map, it will be attached to your account.' %} {% endif %} + {% if clone_url and map %} + {% trans "Clone this map" %} + {% endif %} {% if delete_url and map and user == map.owner %} {% trans "Delete" %} {% endif %}