From 10e956ca097a69ee72dc98fc47a0081c701bb5c0 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 14 Aug 2018 14:33:17 +0900 Subject: [PATCH] Refactor base templates --- app/server/templates/base.html | 127 +++++----- app/server/templates/index.html | 375 +++++++++++++++-------------- app/server/templates/login.html | 94 ++++---- app/server/templates/projects.html | 198 ++++++++------- 4 files changed, 396 insertions(+), 398 deletions(-) diff --git a/app/server/templates/base.html b/app/server/templates/base.html index 8bbfd834..dfb7b7d7 100644 --- a/app/server/templates/base.html +++ b/app/server/templates/base.html @@ -1,80 +1,77 @@ {% load static %} - - - - - doccano - Document Annotation Tool + + + + doccano - Document Annotation Tool - - - - - - - - {% block header %}{% endblock %} + + + + + + {% block header %}{% endblock %} - - {% block footer %}{% endblock %} - - + + - \ No newline at end of file diff --git a/app/server/templates/index.html b/app/server/templates/index.html index b2d3765b..960652f3 100644 --- a/app/server/templates/index.html +++ b/app/server/templates/index.html @@ -1,210 +1,211 @@ -{% extends "base.html" %} {% load static %} {% block content %} +{% extends "base.html" %} +{% load static %} +{% block content %}
-
-
-
-

Text annotation for Human

-

Just create project, upload data and start annotation. You can build dataset in hours.

-

- - Try Demo - -

-
-
-
- -
-
-
+
+
+
+

Text annotation for Human

+

Just create project, upload data and start annotation. You can build dataset in hours.

+

+ + Try Demo + +

+
+
+
+ +
+
+
-
-
-
-
-
-
- Description -
-
-
-

- Document Classification -

-

- Document annotation for any document classification tasks. -

-
-

- - Try Demo - -

-
-
-
-
-
-
-
- Description -
-
-
-

- Sequence Labeling -

-

- A super easy interface to tag for named entity recognition, part-of-speech tagging, semantic role labeling. -

-
-

- - Try Demo - -

-
-
-
-
-
-
-
- Description -
-
-
-

- Sequence to Sequence -

-

- A super easy interface to label for any sequence to sequence tasks. -

-
-

- - Try Demo - -

-
-
-
+
+
+
+
+
+
+ Description +
+
+
+

+ Document Classification +

+

+ Document annotation for any document classification tasks. +

+
+

+ + Try Demo + +

+
- -
-
+
+
+
+
+
+ Description +
+
+
+

+ Sequence Labeling +

+

+ A super easy interface to tag for named entity recognition, part-of-speech tagging, semantic role labeling. +

+
+

+ + Try Demo + +

+
+
+
+
+
+
+
+ Description +
+
+
+

+ Sequence to Sequence +

+

+ A super easy interface to label for any sequence to sequence tasks. +

+
+

+ + Try Demo + +

+
+
+
+ +
+
+
-
+
-
-
-
-
-
- Placeholder image -
-
-
-
-

Team Collaboration

-

Invite other users to help you annotate text and create an annotated corpus. You only have to - create a guideline and upload text data. Team collaboration can accelate annotation process. -

-
-
-
+
+
+
+
+
+ Placeholder image +
+
+
+
+

Team Collaboration

+

Invite other users to help you annotate text and create an annotated corpus. You only have to create a guideline + and upload text data. Team collaboration can accelate annotation process. +

-
-
-
-
- Placeholder image -
-
-
-
-

Language independent

-

doccano is not dependent on any languages. You can annotate any languages such as English, Spanish, - Chinese and so on. Regardless of your language, you can quickly start annotating text.

-
-
-
+
+
+
+
+
+
+
+ Placeholder image +
+
+
+
+

Language independent

+

doccano is not dependent on any languages. You can annotate any languages such as English, Spanish, Chinese + and so on. Regardless of your language, you can quickly start annotating text.

- +
+
+
+
{% endblock %} \ No newline at end of file diff --git a/app/server/templates/login.html b/app/server/templates/login.html index 18becd04..bee0c3b6 100644 --- a/app/server/templates/login.html +++ b/app/server/templates/login.html @@ -1,54 +1,56 @@ -{% extends "base.html" %} {% load widget_tweaks %} {% block content %} +{% extends "base.html" %} +{% load widget_tweaks %} +{% block content %}
-
-
-
- {% if form.errors %} -

Your username and password didn't match. Please try again.

- {% endif %} {% if next %} {% if user.is_authenticated %} -

Your account doesn't have access to this page. To proceed, please login with an account that has access.

- {% else %} -

Please login to see this page.

- {% endif %} {% endif %} +
+
+
+ {% if form.errors %} +

Your username and password didn't match. Please try again.

+ {% endif %} {% if next %} {% if user.is_authenticated %} +

Your account doesn't have access to this page. To proceed, please login with an account that has access.

+ {% else %} +

Please login to see this page.

+ {% endif %} {% endif %} -
- {% csrf_token %} -
- -
- {{ form.username|add_class:"input" }} - - - - - - -
-
+ + {% csrf_token %} +
+ +
+ {{ form.username|add_class:"input" }} + + + + + + +
+
-
- -
- {{ form.password|add_class:"input"}} - - - - - - -
-
-
- -
- - -
+
+ +
+ {{ form.password|add_class:"input"}} + + + + + +
-
+
+
+ +
+ + + +
+
{% endblock %} \ No newline at end of file diff --git a/app/server/templates/projects.html b/app/server/templates/projects.html index 40de3938..15ee188c 100644 --- a/app/server/templates/projects.html +++ b/app/server/templates/projects.html @@ -1,113 +1,111 @@ -{% extends "base.html" %} {% load static %} +{% extends "base.html" %} +{% load static %} {% load widget_tweaks %} {% block content %}
-
-
-
-
-

- Hello, {{ user.get_username | title }}. -

-

- I hope you are having a great day! -

- {% if user.is_superuser %} -

- - Create Project - -

- {% endif %} -
-
+
+
+
+
+

+ Hello, {{ user.get_username | title }}. +

+

+ I hope you are having a great day! +

+ {% if user.is_superuser %} +

+ + Create Project + +

+ {% endif %}
-
+
+
+ -
-
-
- -
-
- -