2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.allow_otr) { ]}
|
|
|
|
<li class="toggle-toolbar-menu toggle-otr {{{o.otr_status_class}}}" title="{{{o.otr_tooltip}}}">
|
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) { ]}
|
2016-02-13 23:58:50 +01:00
|
|
|
<span class="icon-unlocked"></span>
|
|
|
|
{[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status == o.UNVERIFIED) { ]}
|
2016-02-13 23:58:50 +01:00
|
|
|
<span class="icon-lock"></span>
|
|
|
|
{[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status == o.VERIFIED) { ]}
|
2016-02-13 23:58:50 +01:00
|
|
|
<span class="icon-lock"></span>
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ } ]} {[ if (o.otr_status == o.FINISHED) { ]}
|
2016-02-13 23:58:50 +01:00
|
|
|
<span class="icon-unlocked"></span>
|
|
|
|
{[ } ]}
|
2017-07-15 11:03:22 +02:00
|
|
|
<ul class="toolbar-menu collapsed">
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.otr_status == o.UNENCRYPTED) { ]}
|
|
|
|
<li><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) { ]}
|
|
|
|
<li><a class="start-otr" href="#">{{{o.label_refresh_encrypted_conversation}}}</a></li>
|
|
|
|
<li><a class="end-otr" href="#">{{{o.label_end_encrypted_conversation}}}</a></li>
|
|
|
|
<li><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) { ]}
|
|
|
|
<li><a class="auth-otr" data-scheme="fingerprint" href="#">{{{o.label_verify_with_fingerprints}}}</a></li>
|
2016-02-13 23:58:50 +01:00
|
|
|
{[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
<li><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>
|
|
|
|
{[ } ]}
|