File: home.html

package info (click to toggle)
python-django-otp 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: python: 3,221; makefile: 145; sh: 6
file content (32 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "root.html" %}


{% block main %}
<h1 class="display-2 mb-4">Status</h1>

<table class="table">
  <tbody>
    <tr>
      <th scope="row">Username</th>
      <td>
        {% if user.is_authenticated %}
        <span id="username">{{ user.get_username }}</span>
        {% else %}
        <i>anonymous</i>
        {% endif %}
      </td>
    </tr>
    <tr>
      <th scope="row">Verified by</th>
      <td>
        {% if user.otp_device %}
        {{ user.otp_device }}<br>
        <span id="otp_device">{{ user.otp_device.persistent_id }}</span>
        {% else %}
        <i>none</i>
        {% endif %}
      </td>
    </tr>
  </tbody>
</table>
{% endblock %}