comparison mod_debug_omemo/view.tpl.html @ 4687:41ddb782320c

mod_debug_omemo: Improve no keys/devices cases
author Matthew Wild <mwild1@gmail.com>
date Mon, 13 Sep 2021 21:10:50 +0100
parents 76af816739f3
children
comparison
equal deleted inserted replaced
4686:76af816739f3 4687:41ddb782320c
184 <h3>Message status</h3> 184 <h3>Message status</h3>
185 185
186 <p>This was an {message.encryption} {message.direction} {message.type} message. The sending device id was <tt>{omemo.sender_id}</tt>.</p> 186 <p>This was an {message.encryption} {message.direction} {message.type} message. The sending device id was <tt>{omemo.sender_id}</tt>.</p>
187 187
188 <h4>Recipient devices</h4> 188 <h4>Recipient devices</h4>
189
190 {message.has_any_keys&
189 <table class="table"> 191 <table class="table">
190 <tr> 192 <tr>
191 <th>Device ID</th> 193 <th>Device ID</th>
192 <th>Status</th> 194 <th>Status</th>
193 <th>Comment</th> 195 <th>Comment</th>
195 {rids%<tr> 197 {rids%<tr>
196 <td>{idx}</td> 198 <td>{idx}</td>
197 <td>{item.status?Unknown device} {item.prekey&<span class="badge badge-warning">Used pre-key</span>}</td> 199 <td>{item.status?Unknown device} {item.prekey&<span class="badge badge-warning">Used pre-key</span>}</td>
198 <td>{item.comment?}</td> 200 <td>{item.comment?}</td>
199 </tr>} 201 </tr>}
200 </table> 202 </table>}
203
204 {message.has_no_keys&<p><strong>This message did not contain any OMEMO keys.</strong></p>}
201 205
202 <h3>Account status</h3> 206 <h3>Account status</h3>
203 <p>{user}'s account has {omemo.status} with OMEMO.</p> 207 <p>{user}'s account has {omemo.status} with OMEMO.</p>
204 208
205 <h4>Registered OMEMO devices</h4> 209 <h4>Registered OMEMO devices</h4>