edit button if slot >7

This commit is contained in:
Erwan TERTRAIS 2017-12-11 11:32:45 +01:00 committed by Thomas Citharel
parent c95c13e069
commit 2b25d8c301
1 changed files with 5 additions and 4 deletions

View File

@ -152,12 +152,13 @@
{* Voted line *}
<th class="bg-info">{$vote->name|html}
{if $slots gt 7}
<span style="float:right;">
<a href="{if $admin}{poll_url id=$poll->admin_id vote_id=$vote->uniqId admin=true}{else}{poll_url id=$poll->id vote_id=$vote->uniqId}{/if}" class="btn btn-default btn-sm" title="{__f('Poll results', 'Edit the line: %s', $vote->name)|html}">
<i class="glyphicon glyphicon-pencil"></i><span class="sr-only">{__('Generic', 'Edit')}</span>
</a>
<a href="{if $admin}{poll_url id=$poll->admin_id vote_id=$vote->uniqId admin=true}{else}{poll_url id=$poll->id vote_id=$vote->uniqId}{/if}" class="btn btn-default btn-sm" title="{__f('Poll results', 'Edit the line: %s', $vote->name)|html}">
<i class="glyphicon glyphicon-pencil"></i><span class="sr-only">{__('Generic', 'Edit')}</span>
</a>
</span>
{/if}
</th>