Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. {% extends "index.html" %}
  2. {% load i18n %}
  3. {% block Headline %}{% trans "Profile" %}{% endblock %}
  4. {% block Content %}
  5. <h2 class="profile">{% blocktrans with user|capfirst as username %}Profile of {{username}}{% endblocktrans %}</h2>
  6. <div class="profile">
  7. <h4>Statistics</h4>
  8. <ul>
  9. {% if mumbleaccs %}
  10. <li>{% trans "Mumble Accounts" %}:
  11. <ul>
  12. {% for mm in mumbleaccs %}
  13. <li>
  14. {{ mm.name }} on Server <a href="{% url 'mumble.views.show' mm.server.id %}">{{ mm.server.name }}</a>
  15. </li>
  16. {% endfor %}
  17. </ul>
  18. </li>
  19. {% endif %}
  20. </ul>
  21. </div>
  22. <div class="profile">
  23. <h4>{% trans "Account" %}</h4>
  24. <ul>
  25. <li>{% trans "Full Name" %}: {{ user.first_name }} {{ user.last_name }}</li>
  26. <li>{% trans "e-mail address" %}: {{ user.email }}</li>
  27. <li>{% trans "staff status" %}: {{ user.is_staff|yesno }}</li>
  28. <li>{% trans "date joined" %}: {{ user.date_joined|date }} {{ user.date_joined|time }}</li>
  29. <li>{% trans "last login" %}: {{ user.last_login|date }} {{ user.last_login|time }}</li>
  30. <li><a href="{% url 'django.contrib.auth.views.password_change' %}">{% trans "Change password" %}</a></li>
  31. <li><a href="{% url 'django.contrib.auth.views.logout' %}">{% trans "Log out" %}</a></li>
  32. </ul>
  33. </div>
  34. {% endblock %}