2018-07-22 16:12:36 +02:00
|
|
|
<div class="modal fade" id="user-details-modal" tabindex="-1" role="dialog" aria-labelledby="user-details-modal-label" aria-hidden="true">
|
2018-05-10 13:43:03 +02:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2018-07-22 16:12:36 +02:00
|
|
|
<h5 class="modal-title" id="user-details-modal-label">{{{o.display_name}}}</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="{{{o.__('Close')}}}"><span aria-hidden="true">×</span></button>
|
2018-05-10 13:43:03 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
{[ if (o.image) { ]}
|
2018-07-22 16:12:36 +02:00
|
|
|
<img alt="{{{o.__('The User\'s Profile Image')}}}"
|
2018-05-10 22:14:37 +02:00
|
|
|
class="img-thumbnail avatar align-self-center mb-3"
|
|
|
|
height="100" width="100" src="data:{{{o.image_type}}};base64,{{{o.image}}}"/>
|
2018-05-10 13:43:03 +02:00
|
|
|
{[ } ]}
|
|
|
|
{[ if (o.fullname) { ]}
|
2018-11-02 03:09:01 +01:00
|
|
|
<p><label>{{{o.__('Full Name:')}}}</label> {{{o.fullname}}}</p>
|
2018-05-10 13:43:03 +02:00
|
|
|
{[ } ]}
|
2018-11-02 03:09:01 +01:00
|
|
|
<p><label>{{{o.__('XMPP Address:')}}}</label> {{{o.jid}}}</p>
|
2018-05-10 13:43:03 +02:00
|
|
|
{[ if (o.nickname) { ]}
|
2018-11-02 03:09:01 +01:00
|
|
|
<p><label>{{{o.__('Nickname:')}}}</label> {{{o.nickname}}}</p>
|
2018-05-10 13:43:03 +02:00
|
|
|
{[ } ]}
|
|
|
|
{[ if (o.url) { ]}
|
2018-11-02 03:09:01 +01:00
|
|
|
<p><label>{{{o.__('URL:')}}}</label> <a target="_blank" rel="noopener" href="{{{o.url}}}">{{{o.url}}}</a></p>
|
2018-05-10 13:43:03 +02:00
|
|
|
{[ } ]}
|
|
|
|
{[ if (o.email) { ]}
|
2018-11-02 03:09:01 +01:00
|
|
|
<p><label>{{{o.__('Email:')}}}</label> <a href="mailto:{{{o.email}}}">{{{o.email}}}</a></p>
|
2018-05-10 13:43:03 +02:00
|
|
|
{[ } ]}
|
|
|
|
{[ if (o.role) { ]}
|
2018-11-02 03:09:01 +01:00
|
|
|
<p><label>{{{o.__('Role:')}}}</label> {{{o.role}}}</p>
|
2018-07-22 16:12:36 +02:00
|
|
|
{[ } ]}
|
|
|
|
|
2018-08-21 17:52:36 +02:00
|
|
|
{[ if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ]}
|
2018-07-22 16:12:36 +02:00
|
|
|
<hr>
|
|
|
|
<ul class="list-group fingerprints">
|
|
|
|
<li class="list-group-item active">{{{o.__('OMEMO Fingerprints')}}}</li>
|
|
|
|
{[ if (!o.view.devicelist.devices) { ]}
|
|
|
|
<li class="list-group-item"><span class="spinner fa fa-spinner centered"/></li>
|
|
|
|
{[ } ]}
|
|
|
|
{[ if (o.view.devicelist.devices) { ]}
|
|
|
|
{[ o.view.devicelist.devices.each(function (device) { ]}
|
|
|
|
{[ if (device.get('bundle') && device.get('bundle').fingerprint) { ]}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<form class="fingerprint-trust">
|
|
|
|
<div class="btn-group btn-group-toggle">
|
|
|
|
<label class="btn btn--small {[ if (device.get('trusted') !== -1) { ]} btn-primary active {[ } else { ]} btn-secondary {[ } ]}">
|
|
|
|
<input type="radio" name="{{{device.get('id')}}}" value="1"
|
|
|
|
{[ if (device.get('trusted') !== -1) { ]} checked="checked" {[ } ]}>{{{o.__('Trusted')}}}
|
|
|
|
</label>
|
|
|
|
<label class="btn btn--small {[ if (device.get('trusted') === -1) { ]} btn-primary active {[ } else { ]} btn-secondary {[ } ]}">
|
|
|
|
<input type="radio" name="{{{device.get('id')}}}" value="-1"
|
|
|
|
{[ if (device.get('trusted') === -1) { ]} checked="checked" {[ } ]}>{{{o.__('Untrusted')}}}
|
|
|
|
</label>
|
|
|
|
</div>
|
2018-08-27 21:00:00 +02:00
|
|
|
<span class="fingerprint">{{{o.utils.formatFingerprint(device.get('bundle').fingerprint)}}}</span>
|
2018-07-22 16:12:36 +02:00
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
{[ } ]}
|
|
|
|
{[ }); ]}
|
|
|
|
{[ } ]}
|
|
|
|
</ul>
|
2018-05-10 13:43:03 +02:00
|
|
|
{[ } ]}
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2018-05-10 14:44:46 +02:00
|
|
|
{[ if (o.allow_contact_removal && o.is_roster_contact) { ]}
|
2018-09-04 11:39:27 +02:00
|
|
|
<button type="button" class="btn btn-danger remove-contact"><i class="far fa-trash-alt"> </i>{{{o.__('Remove as contact')}}}</button>
|
2018-05-10 14:44:46 +02:00
|
|
|
{[ } ]}
|
2018-07-22 16:12:36 +02:00
|
|
|
<button type="button" class="btn btn-info refresh-contact"><i class="fa fa-refresh"> </i>{{{o.__('Refresh')}}}</button>
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{{o.__('Close')}}}</button>
|
2018-05-10 13:43:03 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|