Ham radio contest management website for the CQTU by DK0TU https://dk0tu.de
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 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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>CQTUFM2019 - CQ TU FM Contest 2019</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" %}">CQ TU FM 2019</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. {% if user.ref %}
  38. <li{% if "log" in request.resolver_match.url_name %} class="active"{%endif%}><a href="{% url "contest:log" %}">Log</a></li>
  39. <li{% if request.resolver_match.url_name == "uploadCBR" %} class="active"{%endif%}><a href="{% url "contest:uploadCBR" %}">Upload CBR</a></li>
  40. {% endif %}
  41. {% else %}
  42. <li{% if request.resolver_match.url_name == 'index' %} class="active"{%endif%}><a href="{% url "index" %}">Home</a></li>
  43. <li{% if request.resolver_match.url_name == 'register' %} class="active"{%endif%}><a href="{% url "register" %}">Register</a></li>
  44. {# <li{% if request.resolver_match.url_name == 'overview' %} class="active"{%endif%}><a href="{% url "contest:overview" %}">Contest Overview</a></li> #}
  45. {% endif %}
  46. </ul>
  47. <ul class="nav navbar-nav navbar-right">
  48. {% if user.is_staff %}
  49. <li{% if "Ref" in request.resolver_match.url_name %} class="active"{%endif%}><a href="{% url "contest:registerRefs" %}">Register Users</a></li>
  50. <li><a href="/admin/">Admin</a></li>
  51. {% endif %}
  52. {% if user.is_authenticated %}
  53. <li><a href="/logout/">Logout</a></li>
  54. {% else %}
  55. <li{% if request.resolver_match.url_name == 'login' %} class="active"{%endif%}><a href="/login/">Login</a></li>
  56. {% endif %}
  57. </ul>
  58. {% if user.is_authenticated %}
  59. <p class="navbar-text navbar-right"><a href="{% url "profile" %}"><kbd>{{ user.username }} @ {% if user.ref %}{{ user.ref }}{% else %}???{% endif %}</kbd></a></p>
  60. {% endif %}
  61. </div><!--/.nav-collapse -->
  62. </div>
  63. </nav>
  64. <div class="container">
  65. {% if messages %}
  66. <div class="row">
  67. <div class="col-sm-12">
  68. {% for message in messages %}
  69. <div role="alert" class="alert {% if message.tags %}alert-{{ message.tags }} {% endif %}alert-dismissible">{{ message }}</div>
  70. {% endfor %}
  71. </div>
  72. </div>
  73. {% endif %}
  74. {% block content %}{% endblock %}
  75. </div> <!-- /container -->
  76. <footer class="footer">
  77. <div class="container">
  78. <p class="text-muted">CQ TU FM 2019, a <a href="http://dk0tu.de/">DK0TU</a> product</p>
  79. </div>
  80. </footer>
  81. <!-- Bootstrap core JavaScript
  82. ================================================== -->
  83. <!-- Placed at the end of the document so the pages load faster -->
  84. </body>
  85. </html>