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.

103 lines
4.9 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="https://cdn.jsdelivr.net/npm/bulma-extensions@4.0.1/bulma-tooltip/dist/css/bulma-tooltip.min.css" crossorigin="anonymous">
  18. <link rel="stylesheet" href="{% static 'assets/css/forum.css' %}">
  19. <!-- favicon settings -->
  20. <link rel="apple-touch-icon" sizes="57x57" href="{% static 'static/apple-icon-57x57.png' %}">
  21. <link rel="apple-touch-icon" sizes="60x60" href="{% static 'static/apple-icon-60x60.png' %}">
  22. <link rel="apple-touch-icon" sizes="72x72" href="{% static 'static/apple-icon-72x72.png' %}">
  23. <link rel="apple-touch-icon" sizes="76x76" href="{% static 'static/apple-icon-76x76.png' %}">
  24. <link rel="apple-touch-icon" sizes="114x114" href="{% static 'static/apple-icon-114x114.png' %}">
  25. <link rel="apple-touch-icon" sizes="120x120" href="{% static 'static/apple-icon-120x120.png' %}">
  26. <link rel="apple-touch-icon" sizes="144x144" href="{% static 'static/apple-icon-144x144.png' %}">
  27. <link rel="apple-touch-icon" sizes="152x152" href="{% static 'static/apple-icon-152x152.png' %}">
  28. <link rel="apple-touch-icon" sizes="180x180" href="{% static 'static/apple-icon-180x180.png' %}">
  29. <link rel="icon" type="image/png" sizes="192x192" href="{% static 'static/android-icon-192x192.png' %}">
  30. <link rel="icon" type="image/png" sizes="32x32" href="{% static 'static/favicon-32x32.png' %}">
  31. <link rel="icon" type="image/png" sizes="96x96" href="{% static 'static/favicon-96x96.png' %}">
  32. <link rel="icon" type="image/png" sizes="16x16" href="{% static 'static/favicon-16x16.png' %}">
  33. <link rel="manifest" href="{% static 'static/manifest.json' %}">
  34. <meta name="msapplication-TileColor" content="#ffffff">
  35. <meta name="msapplication-TileImage" content="{% static 'static/ms-icon-144x144.png' %}">
  36. <meta name="theme-color" content="#ffffff">
  37. {% block header %}{% endblock %}
  38. {% azure_appinsights %}
  39. </head>
  40. <body>
  41. <nav class="navbar has-shadow">
  42. <div class="container">
  43. <div class="navbar-brand">
  44. <a class="navbar-item" href="{% url 'index' %}">
  45. <img src="{% static 'assets/images/logo.png' %}" width="32" height="32">
  46. <b>doccano</b>
  47. </a>
  48. <a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="topNav">
  49. <span aria-hidden="true"></span>
  50. <span aria-hidden="true"></span>
  51. <span aria-hidden="true"></span>
  52. </a>
  53. {% block navigation %}{% endblock %}
  54. </div>
  55. <div id="topNav" class="navbar-menu">
  56. <div class="navbar-end">
  57. {% if not user.is_authenticated %}
  58. <div class="navbar-item has-dropdown is-hoverable">
  59. <a class="navbar-link">
  60. <span>Live Demo</span>
  61. </a>
  62. <div class="navbar-dropdown">
  63. <a href="{% url 'demo-text-classification' %}" class="navbar-item">
  64. Sentiment Analysis
  65. </a>
  66. <a href="{% url 'demo-named-entity-recognition' %}" class="navbar-item">
  67. Named Entity Recognition
  68. </a>
  69. <a href="{% url 'demo-translation' %}" class="navbar-item">
  70. Translation
  71. </a>
  72. </div>
  73. </div>
  74. <a class="navbar-item" href="https://github.com/chakki-works/doccano">
  75. <span>GitHub</span>
  76. </a>
  77. {% endif %}
  78. {% if user.is_authenticated %}
  79. <a class="navbar-item" href="{% url 'projects' %}">
  80. <span>Projects</span>
  81. </a>
  82. {% endif %}
  83. {% if not user.is_authenticated %}
  84. <a class="navbar-item" href="{% url 'login' %}">
  85. <span>Login</span>
  86. </a>
  87. {% else %}
  88. <a class="navbar-item" href="{% url 'logout' %}">
  89. <span>Logout</span>
  90. </a>
  91. {% endif %}
  92. </div>
  93. </div>
  94. </div>
  95. </nav>
  96. {% block content %}{% endblock %}
  97. {% block footer %}{% endblock %}
  98. </body>
  99. </html>