Donner le lien d'édition d'un vote lorsqu'on est administrateur

https://framagit.org/framasoft/framadate/issues/209
This commit is contained in:
m 2018-04-01 17:40:45 +02:00
parent 48c3551e61
commit d2268e8543
3 changed files with 12 additions and 1 deletions

View File

@ -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",

View File

@ -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}

View File

@ -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}