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.

79 lines
3.1 KiB

6 years ago
6 years ago
6 years ago
6 years ago
  1. {% load static %}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <title>doccano - Document Annotation Tool</title>
  9. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
  10. crossorigin="anonymous">
  11. <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet">
  12. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" crossorigin="anonymous" />
  13. <link rel="stylesheet" type="text/css" href="{% static 'css/forum.css' %}">
  14. <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
  15. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  16. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.3.3/css/swiper.min.css">
  17. {% block header %}{% endblock %}
  18. </head>
  19. <body>
  20. <nav class="navbar has-shadow">
  21. <div class="container">
  22. <div class="navbar-brand">
  23. <a class="navbar-item" href="{% url 'index' %}">
  24. <img src="{% static 'images/logo.png' %}" width="32" height="32">
  25. <b>doccano</b>
  26. </a>
  27. {% block navigation %}{% endblock %}
  28. </div>
  29. <div id="topNav" class="navbar-menu">
  30. <div class="navbar-end">
  31. <a class="navbar-item" href="{% url 'index' %}">
  32. <span>Home</span>
  33. </a>
  34. {% if user.is_authenticated %}
  35. <a class="navbar-item" href="{% url 'projects' %}">
  36. <span>Projects</span>
  37. </a>
  38. {% endif %}
  39. <!--<a class="navbar-item" href="hoge.html">Live Demo</a>-->
  40. <a class="navbar-item" href="https://github.com/chakki-works/doccano">
  41. <span>GitHub</span>
  42. </a>
  43. {% if not user.is_authenticated %}
  44. <a class="navbar-item" href="{% url 'login' %}">
  45. <span>Login</span>
  46. </a>
  47. {% else %}
  48. <a class="navbar-item" href="{% url 'logout' %}">
  49. <span>Logout</span>
  50. </a>
  51. {% endif %}
  52. </div>
  53. </div>
  54. </div>
  55. </nav>
  56. {% block content %} {% endblock %}
  57. {% block footer %}{% endblock %}
  58. <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.3.3/js/swiper.min.js"></script>
  59. <script>
  60. var mySwiper = new Swiper ('.swiper-container', {
  61. // Optional parameters
  62. loop: true,
  63. autoplay: {
  64. delay: 5000,
  65. },
  66. // Navigation arrows
  67. navigation: {
  68. nextEl: '.swiper-button-next',
  69. prevEl: '.swiper-button-prev',
  70. },
  71. })
  72. </script>
  73. </body>
  74. </html>