From d2268e85433d513737055ea87e774a2bd268cb1d Mon Sep 17 00:00:00 2001
From: m <m>
Date: Sun, 1 Apr 2018 17:40:45 +0200
Subject: [PATCH] =?UTF-8?q?Donner=20le=20lien=20d'=C3=A9dition=20d'un=20vo?=
 =?UTF-8?q?te=20lorsqu'on=20est=20administrateur=20https://framagit.org/fr?=
 =?UTF-8?q?amasoft/framadate/issues/209?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 locale/en.json                  | 3 ++-
 tpl/part/vote_table_classic.tpl | 5 +++++
 tpl/part/vote_table_date.tpl    | 5 +++++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/locale/en.json b/locale/en.json
index f6c41e4d..a0a35190 100644
--- a/locale/en.json
+++ b/locale/en.json
@@ -283,7 +283,8 @@
       "Vote yes for": "Vote \"yes\" for",
       "Votes of the poll": "Votes",
       "polled user": "polled user",
-      "polled users": "polled users"
+      "polled users": "polled users",
+      "Link to edit this particular line" : "Link to edit this particular line"
    },
    "PollInfo": {
       "Admin link of the poll": "Admin link for the poll",
diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl
index 9b18189a..1b57894f 100644
--- a/tpl/part/vote_table_classic.tpl
+++ b/tpl/part/vote_table_classic.tpl
@@ -151,6 +151,11 @@
                                    title="{__('Poll results', 'Remove the line:')} {$vote->name|html}">
                                     <i class="glyphicon glyphicon-remove text-danger"></i><span class="sr-only">{__('Generic', 'Remove')}</span>
                                 </a>
+                                
+                                <a href="{poll_url id=$poll->id vote_id=$vote->uniqId}" class="btn btn-default btn-sm">
+                                    {__('Poll results', 'Link to edit this particular line')} <span class="btn-link glyphicon glyphicon-link"></span>
+                                </a>
+                                
                             {/if}
                         </td>
                     {else}
diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl
index 0fa5804d..db8cdce9 100644
--- a/tpl/part/vote_table_date.tpl
+++ b/tpl/part/vote_table_date.tpl
@@ -209,6 +209,11 @@
                                    title="{__('Poll results', 'Remove the line:')} {$vote->name|html}">
                                     <i class="glyphicon glyphicon-remove text-danger"></i><span class="sr-only">{__('Generic', 'Remove')}</span>
                                 </a>
+                                
+                                <a href="{poll_url id=$poll->id vote_id=$vote->uniqId}" class="btn btn-default btn-sm">
+                                    {__('Poll results', 'Link to edit this particular line')} <span class="btn-link glyphicon glyphicon-link"></span>
+                                </a>
+                                
                             {/if}
                         </td>
                     {else}
-- 
GitLab