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.

101 lines
4.8 KiB

6 years ago
6 years ago
6 years ago
6 years ago
  1. {% load static %}
  2. {% load analytics %}
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. {% google_analytics %}
  7. <meta charset="utf-8">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <title>doccano - Document Annotation Tool</title>
  11. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
  12. crossorigin="anonymous">
  13. <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet">
  14. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" crossorigin="anonymous">
  15. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-extensions@4.0.1/bulma-divider/dist/css/bulma-divider.min.css" crossorigin="anonymous">
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-extensions@4.0.1/bulma-checkradio/dist/css/bulma-checkradio.min.css" crossorigin="anonymous">
  17. <link rel="stylesheet" href="{% static 'assets/css/forum.css' %}">
  18. <!-- favicon settings -->
  19. <link rel="apple-touch-icon" sizes="57x57" href="{% static 'static/apple-icon-57x57.png' %}">
  20. <link rel="apple-touch-icon" sizes="60x60" href="{% static 'static/apple-icon-60x60.png' %}">
  21. <link rel="apple-touch-icon" sizes="72x72" href="{% static 'static/apple-icon-72x72.png' %}">
  22. <link rel="apple-touch-icon" sizes="76x76" href="{% static 'static/apple-icon-76x76.png' %}">
  23. <link rel="apple-touch-icon" sizes="114x114" href="{% static 'static/apple-icon-114x114.png' %}">
  24. <link rel="apple-touch-icon" sizes="120x120" href="{% static 'static/apple-icon-120x120.png' %}">
  25. <link rel="apple-touch-icon" sizes="144x144" href="{% static 'static/apple-icon-144x144.png' %}">
  26. <link rel="apple-touch-icon" sizes="152x152" href="{% static 'static/apple-icon-152x152.png' %}">
  27. <link rel="apple-touch-icon" sizes="180x180" href="{% static 'static/apple-icon-180x180.png' %}">
  28. <link rel="icon" type="image/png" sizes="192x192" href="{% static 'static/android-icon-192x192.png' %}">
  29. <link rel="icon" type="image/png" sizes="32x32" href="{% static 'static/favicon-32x32.png' %}">
  30. <link rel="icon" type="image/png" sizes="96x96" href="{% static 'static/favicon-96x96.png' %}">
  31. <link rel="icon" type="image/png" sizes="16x16" href="{% static 'static/favicon-16x16.png' %}">
  32. <link rel="manifest" href="{% static 'static/manifest.json' %}">
  33. <meta name="msapplication-TileColor" content="#ffffff">
  34. <meta name="msapplication-TileImage" content="{% static 'static/ms-icon-144x144.png' %}">
  35. <meta name="theme-color" content="#ffffff">
  36. {% block header %}{% endblock %}
  37. {% azure_appinsights %}
  38. </head>
  39. <body>
  40. <nav class="navbar has-shadow">
  41. <div class="container">
  42. <div class="navbar-brand">
  43. <a class="navbar-item" href="{% url 'index' %}">
  44. <img src="{% static 'assets/images/logo.png' %}" width="32" height="32">
  45. <b>doccano</b>
  46. </a>
  47. <a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="topNav">
  48. <span aria-hidden="true"></span>
  49. <span aria-hidden="true"></span>
  50. <span aria-hidden="true"></span>
  51. </a>
  52. {% block navigation %}{% endblock %}
  53. </div>
  54. <div id="topNav" class="navbar-menu">
  55. <div class="navbar-end">
  56. {% if not user.is_authenticated %}
  57. <div class="navbar-item has-dropdown is-hoverable">
  58. <a class="navbar-link">
  59. <span>Live Demo</span>
  60. </a>
  61. <div class="navbar-dropdown">
  62. <a href="{% url 'demo-text-classification' %}" class="navbar-item">
  63. Sentiment Analysis
  64. </a>
  65. <a href="{% url 'demo-named-entity-recognition' %}" class="navbar-item">
  66. Named Entity Recognition
  67. </a>
  68. <a href="{% url 'demo-translation' %}" class="navbar-item">
  69. Translation
  70. </a>
  71. </div>
  72. </div>
  73. <a class="navbar-item" href="https://github.com/chakki-works/doccano">
  74. <span>GitHub</span>
  75. </a>
  76. {% endif %}
  77. {% if user.is_authenticated %}
  78. <a class="navbar-item" href="{% url 'projects' %}">
  79. <span>Projects</span>
  80. </a>
  81. {% endif %}
  82. {% if not user.is_authenticated %}
  83. <a class="navbar-item" href="{% url 'login' %}">
  84. <span>Login</span>
  85. </a>
  86. {% else %}
  87. <a class="navbar-item" href="{% url 'logout' %}">
  88. <span>Logout</span>
  89. </a>
  90. {% endif %}
  91. </div>
  92. </div>
  93. </div>
  94. </nav>
  95. {% block content %}{% endblock %}
  96. {% block footer %}{% endblock %}
  97. </body>
  98. </html>