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.

96 lines
4.6 KiB

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 'css/forum.css' %}">
  18. <!-- favicon settings -->
  19. <link rel="apple-touch-icon" sizes="57x57" href="{% static 'images/favicons/apple-icon-57x57.png' %}">
  20. <link rel="apple-touch-icon" sizes="60x60" href="{% static 'images/favicons/apple-icon-60x60.png' %}">
  21. <link rel="apple-touch-icon" sizes="72x72" href="{% static 'images/favicons/apple-icon-72x72.png' %}">
  22. <link rel="apple-touch-icon" sizes="76x76" href="{% static 'images/favicons/apple-icon-76x76.png' %}">
  23. <link rel="apple-touch-icon" sizes="114x114" href="{% static 'images/favicons/apple-icon-114x114.png' %}">
  24. <link rel="apple-touch-icon" sizes="120x120" href="{% static 'images/favicons/apple-icon-120x120.png' %}">
  25. <link rel="apple-touch-icon" sizes="144x144" href="{% static 'images/favicons/apple-icon-144x144.png' %}">
  26. <link rel="apple-touch-icon" sizes="152x152" href="{% static 'images/favicons/apple-icon-152x152.png' %}">
  27. <link rel="apple-touch-icon" sizes="180x180" href="{% static 'images/favicons/apple-icon-180x180.png' %}">
  28. <link rel="icon" type="image/png" sizes="192x192" href="{% static 'images/favicons/android-icon-192x192.png' %}">
  29. <link rel="icon" type="image/png" sizes="32x32" href="{% static 'images/favicons/favicon-32x32.png' %}">
  30. <link rel="icon" type="image/png" sizes="96x96" href="{% static 'images/favicons/favicon-96x96.png' %}">
  31. <link rel="icon" type="image/png" sizes="16x16" href="{% static 'images/favicons/favicon-16x16.png' %}">
  32. <link rel="manifest" href="{% static 'images/favicons/manifest.json' %}">
  33. <meta name="msapplication-TileColor" content="#ffffff">
  34. <meta name="msapplication-TileImage" content="{% static 'images/favicons/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 'images/logo.png' %}" width="32" height="32">
  45. <b>doccano</b>
  46. </a>
  47. {% block navigation %}{% endblock %}
  48. </div>
  49. <div id="topNav" class="navbar-menu">
  50. <div class="navbar-end">
  51. {% if not user.is_authenticated %}
  52. <div class="navbar-item has-dropdown is-hoverable">
  53. <a class="navbar-link">
  54. <span>Live Demo</span>
  55. </a>
  56. <div class="navbar-dropdown">
  57. <a href="{% url 'demo-text-classification' %}" class="navbar-item">
  58. Sentiment Analysis
  59. </a>
  60. <a href="{% url 'demo-named-entity-recognition' %}" class="navbar-item">
  61. Named Entity Recognition
  62. </a>
  63. <a href="{% url 'demo-translation' %}" class="navbar-item">
  64. Translation
  65. </a>
  66. </div>
  67. </div>
  68. <a class="navbar-item" href="https://github.com/chakki-works/doccano">
  69. <span>GitHub</span>
  70. </a>
  71. {% endif %}
  72. {% if user.is_authenticated %}
  73. <a class="navbar-item" href="{% url 'projects' %}">
  74. <span>Projects</span>
  75. </a>
  76. {% endif %}
  77. {% if not user.is_authenticated %}
  78. <a class="navbar-item" href="{% url 'login' %}">
  79. <span>Login</span>
  80. </a>
  81. {% else %}
  82. <a class="navbar-item" href="{% url 'logout' %}">
  83. <span>Logout</span>
  84. </a>
  85. {% endif %}
  86. </div>
  87. </div>
  88. </div>
  89. </nav>
  90. {% block content %}{% endblock %}
  91. {% block footer %}{% endblock %}
  92. </body>
  93. </html>