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

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

{if $admin && !$expired} {/if}
{if $admin} {__('PollInfo', 'Export to CSV')} {else} {if !$hidden} {__('PollInfo', 'Export to CSV')} {/if} {/if} {if $admin} {if !$expired} {else} {/if} {/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|markdown:false:false}
{if $admin && !$expired} {/if}
{/if}
{if $admin}

{$poll->end_date|date_format:$date_format['txt_date']|html}

{/if}
{if $admin}
{if !empty($poll->password_hash) && !$poll->results_publicly_visible} {$password_text = __('PollInfo', 'Password protected')} {elseif !empty($poll->password_hash) && $poll->results_publicly_visible} {$password_text = __('PollInfo', 'Votes protected by password')} {else} {$password_text = __('PollInfo', 'No password')} {/if}

{$password_text}

{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 = __('Step 1', 'All voters can modify any vote')} {else} {$rule_id = 3} {$rule_txt = __('Step 1', 'Voters can modify their vote themselves')} {/if} {$rule_icon = ''} {else} {$rule_id = 1} {$rule_icon = ''} {$rule_txt = __('Step 1', 'Votes cannot be modified')} {/if} {else} {$rule_id = 0} {$rule_icon = ''} {$rule_txt = __('PollInfo', 'Votes and comments are locked')} {/if}

{$rule_icon} {$rule_txt|html}

{if $poll->collect_users_mail}

{__('PollInfo', 'Collecting the polled users emails')}

{/if}
{/if}
{if $admin}
{/if}