Browse Source

Add link to navigation bar

pull/10/head
Hironsan 6 years ago
parent
commit
5dbd4125ad
3 changed files with 4 additions and 1 deletions
  1. BIN
      app/db.sqlite3
  2. 3
      app/server/templates/base.html
  3. 2
      app/server/urls.py

BIN
app/db.sqlite3

3
app/server/templates/base.html

@ -31,6 +31,9 @@
<div id="topNav" class="navbar-menu"> <div id="topNav" class="navbar-menu">
<div class="navbar-end"> <div class="navbar-end">
<a class="navbar-item" href="{% url 'index' %}">Home</a> <a class="navbar-item" href="{% url 'index' %}">Home</a>
{% if user.is_authenticated %}
<a class="navbar-item" href="{% url 'projects' %}">Projects</a>
{% endif %}
<a class="navbar-item" href="hoge.html">Live Demo</a> <a class="navbar-item" href="hoge.html">Live Demo</a>
<a class="navbar-item" href="https://github.com/chakki-works/doccano"> <a class="navbar-item" href="https://github.com/chakki-works/doccano">
<span class="icon is-small"> <span class="icon is-small">

2
app/server/urls.py

@ -19,7 +19,7 @@ urlpatterns = [
path('api/projects/<int:project_id>/docs/', ProjectDocsAPI.as_view(), name='docs'), path('api/projects/<int:project_id>/docs/', ProjectDocsAPI.as_view(), name='docs'),
path('api/projects/<int:project_id>/docs/<int:doc_id>/annotations/', AnnotationsAPI.as_view()), path('api/projects/<int:project_id>/docs/<int:doc_id>/annotations/', AnnotationsAPI.as_view()),
path('api/projects/<int:project_id>/docs/<int:doc_id>/annotations/<int:annotation_id>', AnnotationAPI.as_view()), path('api/projects/<int:project_id>/docs/<int:doc_id>/annotations/<int:annotation_id>', AnnotationAPI.as_view()),
path('projects/', ProjectsView.as_view(), name='project-list'),
path('projects/', ProjectsView.as_view(), name='projects'),
path('projects/<int:pk>/admin', ProjectAdminView.as_view(), name='project-admin'), path('projects/<int:pk>/admin', ProjectAdminView.as_view(), name='project-admin'),
path('projects/<int:project_id>/download', DataDownloadAPI.as_view(), name='download'), path('projects/<int:project_id>/download', DataDownloadAPI.as_view(), name='download'),
path('projects/<int:project_id>/', ProjectView.as_view(), name='annotation'), path('projects/<int:project_id>/', ProjectView.as_view(), name='annotation'),

Loading…
Cancel
Save