From f2b0ea8a803dcf724d4e69e6f2abd6ba5a73af62 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 8 Jun 2018 11:44:53 +0900 Subject: [PATCH] Update project list template --- .../app/server/templates/project_list.html | 87 +++++++------------ doccano/app/server/urls.py | 2 +- 2 files changed, 31 insertions(+), 58 deletions(-) diff --git a/doccano/app/server/templates/project_list.html b/doccano/app/server/templates/project_list.html index b18d63e7..1a0da916 100644 --- a/doccano/app/server/templates/project_list.html +++ b/doccano/app/server/templates/project_list.html @@ -1,74 +1,47 @@ -{% extends "base.html" %} -{% load static %} -{% block content %} +{% extends "base.html" %} {% load static %} {% block content %}
-
+
- {% for project in object_list %}
-

{{ project.name }}

+

My Projects

-
-

- -

-
-

{{ project.description|truncatechars:200 }}

-

- @jsmith created at {{ project.created_at|date }}   - Question -

+ + + + + + + + + + + + {% for project in object_list %} + + + + + + + + {% endfor %} + +
IdProject namePriorityProgressAction
{{ forloop.counter }} + {{ project.name }} +

{{ project.description|truncatechars:50 }}

+
High30% + Admin +
-
- - 1 -
- {% empty %} - No projects yet. - {% endfor %}
- - -
- New Project - -
-
{% endblock %} \ No newline at end of file diff --git a/doccano/app/server/urls.py b/doccano/app/server/urls.py index 0e158ced..2b504ae9 100644 --- a/doccano/app/server/urls.py +++ b/doccano/app/server/urls.py @@ -5,7 +5,7 @@ from .views import ProjectListView, ProjectAdminView, RawDataAPI, LabelAPI urlpatterns = [ path('', ProjectListView.as_view(), name='project-list'), - path('/admin', ProjectAdminView.as_view()), + path('/admin', ProjectAdminView.as_view(), name='project-admin'), path('/', AnnotationView.as_view(), name='annotation'), path('/apis/data', AnnotationAPIView.as_view()), path('/apis/raw_data', RawDataAPI.as_view(), name='data_api'),