From 2b25d8c301974843d1677e58f34476987e82187e Mon Sep 17 00:00:00 2001 From: Erwan TERTRAIS <erwan@tertrais.xyz> Date: Mon, 11 Dec 2017 11:32:45 +0100 Subject: [PATCH] edit button if slot >7 --- tpl/part/vote_table_date.tpl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl index 957d794b..9688163a 100644 --- a/tpl/part/vote_table_date.tpl +++ b/tpl/part/vote_table_date.tpl @@ -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> -- GitLab