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 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. <link href="{% static "css/bootstrap-tagsinput.css" %}" rel="stylesheet">
  18. <script src="{% static "js/jquery.min.js" %}"></script>
  19. <script src="{% static "js/bootstrap.min.js" %}"></script>
  20. <script src="{% static "js/local.js" %}"></script>
  21. </head>
  22. <body>
  23. <!-- Static navbar -->
  24. <nav class="navbar navbar-default navbar-static-top">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="{% url 'index' %}">Darknet Mgmt</a>
  34. </div>
  35. <div id="navbar" class="navbar-collapse collapse">
  36. <ul class="nav navbar-nav">
  37. {% if user.is_authenticated %}
  38. <li{% if request.resolver_match.namespaces|length == 0 and request.resolver_match.url_name == 'dashboard' %} class="active"{%endif%}><a href="{% url "dashboard" %}">Dashboard</a></li>
  39. {% else %}
  40. <li{% if request.resolver_match.url_name == 'index' %} class="active"{%endif%}><a href="{% url "index" %}">Home</a></li>
  41. {% endif %}
  42. <li{% if request.resolver_match.url_name == 'search' %} class="active"{%endif%}><a href="{% url "whoisdb:search" %}">Search</a></li>
  43. <li class="dropdown{% if request.resolver_match.url_name == 'whoisdb' %} active{%endif%}">
  44. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Whois DB <span class="caret"></span></a>
  45. <ul class="dropdown-menu">
  46. <li><a href="{% url "whoisdb:dashboard" %}">Whois DB</a></li>
  47. <li><a href="{% url "rrequests:dashboard" %}">Resource Requests</a></li>
  48. <li><a href="{% url "domains:overview" %}">Domains</a></li>
  49. </ul>
  50. </li>
  51. <li{% if request.resolver_match.url_name == 'help' %} class="active"{%endif%}><a href="{% url "help" %}">Help</a></li>
  52. </ul>
  53. <ul class="nav navbar-nav navbar-right">
  54. {% if user.is_staff %}
  55. <li><a href="/admin/">Admin</a></li>
  56. {% endif %}
  57. {% if user.is_authenticated %}
  58. <li><a href="{% url 'user:logout' %}">Logout</a></li>
  59. {% else %}
  60. <li{% if request.resolver_match.url_name == 'register' %} class="active"{%endif%}><a href="{% url "user:register" %}">Register</a></li>
  61. <li{% if request.resolver_match.url_name == 'login' %} class="active"{%endif%}><a href="{% url "user:login" %}">Login</a></li>
  62. {% endif %}
  63. </ul>
  64. {% if user.is_authenticated %}
  65. <p class="navbar-text navbar-right"><a href="{% url "user:profile" %}"><kbd>{{ user.username }}</kbd></a></p>
  66. {% endif %}
  67. </div><!--/.nav-collapse -->
  68. </div>
  69. </nav>
  70. <div class="container">
  71. {% if messages %}
  72. <div class="row">
  73. <div class="col-sm-12">
  74. {% for message in messages %}
  75. <div role="alert" class="alert {% if message.tags %}alert-{{ message.tags }} {% endif %}alert-dismissible"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> {{ message }}<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>
  76. {% endfor %}
  77. </div>
  78. </div>
  79. {% endif %}
  80. {% block content %}{% endblock %}
  81. </div> <!-- /container -->
  82. <footer class="footer">
  83. <div class="container">
  84. <p class="text-muted">Darknet Management interface, noot noot</p>
  85. </div>
  86. </footer>
  87. <!-- Bootstrap core JavaScript
  88. ================================================== -->
  89. <!-- Placed at the end of the document so the pages load faster -->
  90. </body>
  91. </html>