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.

47 lines
1.1 KiB

16 years ago
16 years ago
  1. {% extends "index.htm" %}
  2. {% block headtags %}
  3. <meta http-equiv="refresh" content="30" />
  4. {% endblock %}
  5. {% block Headline %}
  6. {{ ServerObject.rootName }}
  7. {% endblock %}
  8. {% block LeftColumn %}
  9. {% include "mumble/content.htm" %}
  10. {% endblock %}
  11. {% block Content %}
  12. {% if user.is_authenticated %}
  13. <div id="mumble_registration">
  14. <h2>Server registration</h2>
  15. <form action="" method="post">
  16. {% if Registered %}
  17. You are registered on this server.<br />
  18. {% else %}
  19. You do not have an account on this server.<br />
  20. {% endif %}
  21. <table>
  22. {{ RegForm }}
  23. </table>
  24. <input type="hidden" name="mode" value="reg" />
  25. <input type="submit" />
  26. </form>
  27. </div>
  28. {% else %}
  29. not admin...
  30. {% endif %}
  31. {% if CurrentUserIsAdmin %}
  32. <div id="mumble_admin">
  33. <h2>Server administration</h2>
  34. <form action="" method="post">
  35. <table>
  36. {{ AdminForm }}
  37. </table>
  38. <input type="hidden" name="mode" value="admin" />
  39. <input type="submit" />
  40. </form>
  41. </div>
  42. {% else %}
  43. not admin...
  44. {% endif %}
  45. {% endblock %}