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.

42 lines
993 B

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. <table>
  17. {{ RegForm }}
  18. </table>
  19. <input type="hidden" name="mode" value="reg" />
  20. <input type="submit" />
  21. </form>
  22. </div>
  23. {% else %}
  24. not admin...
  25. {% endif %}
  26. {% if CurrentUserIsAdmin %}
  27. <div id="mumble_admin">
  28. <h2>Server administration</h2>
  29. <form action="" method="post">
  30. <table>
  31. {{ AdminForm }}
  32. </table>
  33. <input type="hidden" name="mode" value="admin" />
  34. <input type="submit" />
  35. </form>
  36. </div>
  37. {% else %}
  38. not admin...
  39. {% endif %}
  40. {% endblock %}