Browse Source

Add link for project list page to annotation page

pull/10/head
Hironsan 6 years ago
parent
commit
6bc93d900a
2 changed files with 2 additions and 2 deletions
  1. 2
      doccano/app/server/templates/project_list.html
  2. 2
      doccano/app/server/urls.py

2
doccano/app/server/templates/project_list.html

@ -8,7 +8,7 @@
<div class="box content">
{% for project in object_list %}
<article class="post">
<h4>{{ project.name }}</h4>
<h4><a href="{% url 'annotation' project.id %}">{{ project.name }}</a></h4>
<div class="media">
<div class="media-left">
<p class="image is-32x32">

2
doccano/app/server/urls.py

@ -6,7 +6,7 @@ from .views import ProjectListView, ProjectAdminView, RawDataAPI, LabelAPI
urlpatterns = [
path('', ProjectListView.as_view(), name='project-list'),
path('<int:pk>/admin', ProjectAdminView.as_view()),
path('<int:project_id>/', AnnotationView.as_view()),
path('<int:project_id>/', AnnotationView.as_view(), name='annotation'),
path('<int:project_id>/apis/data', AnnotationAPIView.as_view()),
path('<int:pk>/apis/raw_data', RawDataAPI.as_view(), name='data_api'),
path('<int:pk>/apis/labels', LabelAPI.as_view(), name='label_api'),

Loading…
Cancel
Save