No Description
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.

base.html 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <link rel="icon" href="/favicon.ico">
  11. {% load staticfiles %}
  12. <title>Darknet Resource Management</title>
  13. <!-- Bootstrap core CSS -->
  14. <link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">
  15. <!-- Custom styles for this template -->
  16. <link href="{% static "style.css" %}" rel="stylesheet">
  17. <script src="{% static "js/jquery.min.js" %}"></script>
  18. <script src="{% static "js/bootstrap.min.js" %}"></script>
  19. </head>
  20. <body>
  21. <!-- Static navbar -->
  22. <nav class="navbar navbar-default navbar-static-top">
  23. <div class="container">
  24. <div class="navbar-header">
  25. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  26. <span class="sr-only">Toggle navigation</span>
  27. <span class="icon-bar"></span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. </button>
  31. <a class="navbar-brand" href="{% url "index" %}">Darknet Mgmt</a>
  32. </div>
  33. <div id="navbar" class="navbar-collapse collapse">
  34. <ul class="nav navbar-nav">
  35. {% if user.is_authenticated %}
  36. <li{% if request.resolver_match.url_name == 'index' %} class="active"{%endif%}><a href="{% url "contest:index" %}">Contest Overview</a></li>
  37. {% else %}
  38. <li{% if request.resolver_match.url_name == 'index' %} class="active"{%endif%}><a href="{% url "index" %}">Home</a></li>
  39. {% endif %}
  40. </ul>
  41. <ul class="nav navbar-nav navbar-right">
  42. {% if user.is_staff %}
  43. <li{% if "Ref" in request.resolver_match.url_name %} class="active"{%endif%}><a href="{% url "contest:registerRefs" %}">Register Users</a></li>
  44. <li><a href="/admin/">Admin</a></li>
  45. {% endif %}
  46. {% if user.is_authenticated %}
  47. <li><a href="/logout/">Logout</a></li>
  48. {% else %}
  49. <li{% if request.resolver_match.url_name == 'login' %} class="active"{%endif%}><a href="/login/">Login</a></li>
  50. {% endif %}
  51. </ul>
  52. {% if user.is_authenticated %}
  53. <p class="navbar-text navbar-right"><a href="{% url "profile" %}"><kbd>{{ user.username }}</kbd></a></p>
  54. {% endif %}
  55. </div><!--/.nav-collapse -->
  56. </div>
  57. </nav>
  58. <div class="container">
  59. {% if messages %}
  60. <div class="row">
  61. <div class="col-sm-12">
  62. {% for message in messages %}
  63. <div role="alert" class="alert {% if message.tags %}alert-{{ message.tags }} {% endif %}alert-dismissible">{{ message }}</div>
  64. {% endfor %}
  65. </div>
  66. </div>
  67. {% endif %}
  68. {% block content %}{% endblock %}
  69. </div> <!-- /container -->
  70. <footer class="footer">
  71. <div class="container">
  72. <p class="text-muted">Darknet Management interface, noot noot</p>
  73. </div>
  74. </footer>
  75. <!-- Bootstrap core JavaScript
  76. ================================================== -->
  77. <!-- Placed at the end of the document so the pages load faster -->
  78. </body>
  79. </html>