{$admin = $admin|default:false} {if $admin}
{/if}
{* Title | buttons*}

{$poll->title|html}{if $admin && !$expired} {/if}

{if $admin && !$expired} {/if}
{__('PollInfo', 'Export to CSV')} {if $admin && !$expired} {/if}
{* Admin name + email | Description *}

{$poll->admin_name|html}{if $admin && !$expired} {/if}

{if $admin && !$expired} {/if}
{if $admin}

{$poll->admin_mail|html}{if !$expired} {/if}

{if !$expired} {/if}
{/if}
{if $admin || preg_match('/[^ \r\n]/', $poll->description)}
{$poll->description|html}
{if $admin && !$expired} {/if}
{/if}
{if $admin}

{$poll->end_date|date_format:$date_format['txt_date']|html}{if !$expired} {/if}

{if !$expired} {/if}
{/if}
{if $admin}
{if $poll->hidden} {$hidden_icon = "glyphicon-eye-close"} {$hidden_text = __('PollInfo', 'Results are hidden.')} {else} {$hidden_icon = "glyphicon-eye-open"} {$hidden_text = __('PollInfo', 'Results are visible.')} {/if}

{$hidden_text}

{if $poll->active} {if $poll->editable} {if $poll->editable == constant("Framadate\Editable::EDITABLE_BY_ALL")} {$rule_id = 2} {$rule_txt = __('PollInfo', 'Votes are editable')} {else} {$rule_id = 3} {$rule_txt = __('PollInfo', 'Votes are editable solely by their owner.')} {/if} {$rule_icon = ''} {else} {$rule_id = 1} {$rule_icon = ''} {$rule_txt = __('PollInfo', 'Votes and comments are open')} {/if} {else} {$rule_id = 0} {$rule_icon = ''} {$rule_txt = __('PollInfo', 'Votes and comments are locked')} {/if}

{$rule_icon} {$rule_txt|html}{if !$expired} {/if}

{if !$expired} {/if}
{/if}
{if $admin}
{/if}