2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.allow_otr) { ]}
|
2018-03-09 17:30:42 +01:00
|
|
|
<li class="toggle-toolbar-menu dropup right" title="{{{o.otr_tooltip}}}">
|
|
|
|
<a class="toggle-otr {{{o.otr_status_class}}}" title="{{{o.label_insert_smiley}}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
|
2018-03-02 12:10:25 +01:00
|
|
|
<span class="chat-toolbar-text">{{{o.otr_translated_status}}}</span>
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status == o.UNENCRYPTED) { ]}
|
2018-03-07 14:36:19 +01:00
|
|
|
<span class="fa fa-unlock"></span>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status == o.UNVERIFIED) { ]}
|
2018-03-07 14:36:19 +01:00
|
|
|
<span class="fa fa-lock"></span>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status == o.VERIFIED) { ]}
|
2018-03-07 14:36:19 +01:00
|
|
|
<span class="fa fa-lock"></span>
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ } ]} {[ if (o.otr_status == o.FINISHED) { ]}
|
2018-03-07 14:36:19 +01:00
|
|
|
<span class="fa fa-unlock"></span>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
2018-03-09 17:30:42 +01:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul class="otr-menu toolbar-menu dropdown-menu">
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status == o.UNENCRYPTED) { ]}
|
2018-03-09 17:30:42 +01:00
|
|
|
<li class="dropdown-item"><a class="start-otr" href="#">{{{o.label_start_encrypted_conversation}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status != o.UNENCRYPTED) { ]}
|
2018-03-09 17:30:42 +01:00
|
|
|
<li class="dropdown-item"><a class="start-otr" href="#">{{{o.label_refresh_encrypted_conversation}}}</a></li>
|
|
|
|
<li class="dropdown-item"><a class="end-otr" href="#">{{{o.label_end_encrypted_conversation}}}</a></li>
|
|
|
|
<li class="dropdown-item"><a class="auth-otr" data-scheme="smp" href="#">{{{o.label_verify_with_smp}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status == o.UNVERIFIED) { ]}
|
2018-03-09 17:30:42 +01:00
|
|
|
<li class="dropdown-item"><a class="auth-otr" data-scheme="fingerprint" href="#">{{{o.label_verify_with_fingerprints}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
2018-03-09 17:30:42 +01:00
|
|
|
<li class="dropdown-item"><a href="http://www.cypherpunks.ca/otr/help/3.2.0/levels.php" target="_blank" rel="noopener">{{{o.label_whats_this}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{[ } ]}
|