2016-02-13 23:58:50 +01:00
|
|
|
{[ if (allow_otr) { ]}
|
2017-02-13 09:23:42 +01:00
|
|
|
<li class="toggle-otr {{{otr_status_class}}}" title="{{{otr_tooltip}}}">
|
|
|
|
<span class="chat-toolbar-text">{{{otr_translated_status}}}</span>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ if (otr_status == UNENCRYPTED) { ]}
|
|
|
|
<span class="icon-unlocked"></span>
|
|
|
|
{[ } ]}
|
|
|
|
{[ if (otr_status == UNVERIFIED) { ]}
|
|
|
|
<span class="icon-lock"></span>
|
|
|
|
{[ } ]}
|
|
|
|
{[ if (otr_status == VERIFIED) { ]}
|
|
|
|
<span class="icon-lock"></span>
|
|
|
|
{[ } ]}
|
|
|
|
{[ if (otr_status == FINISHED) { ]}
|
|
|
|
<span class="icon-unlocked"></span>
|
|
|
|
{[ } ]}
|
2017-06-17 23:48:46 +02:00
|
|
|
<ul class="toolbar-picker-panel">
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ if (otr_status == UNENCRYPTED) { ]}
|
2017-02-13 09:23:42 +01:00
|
|
|
<li><a class="start-otr" href="#">{{{label_start_encrypted_conversation}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
|
|
|
{[ if (otr_status != UNENCRYPTED) { ]}
|
2017-02-13 09:23:42 +01:00
|
|
|
<li><a class="start-otr" href="#">{{{label_refresh_encrypted_conversation}}}</a></li>
|
|
|
|
<li><a class="end-otr" href="#">{{{label_end_encrypted_conversation}}}</a></li>
|
|
|
|
<li><a class="auth-otr" data-scheme="smp" href="#">{{{label_verify_with_smp}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
|
|
|
{[ if (otr_status == UNVERIFIED) { ]}
|
2017-02-13 09:23:42 +01:00
|
|
|
<li><a class="auth-otr" data-scheme="fingerprint" href="#">{{{label_verify_with_fingerprints}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
2017-02-13 09:23:42 +01:00
|
|
|
<li><a href="http://www.cypherpunks.ca/otr/help/3.2.0/levels.php" target="_blank" rel="noopener">{{{label_whats_this}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{[ } ]}
|