From d87fb78b3adad9d076e3abcba08e6f870f2e8961 Mon Sep 17 00:00:00 2001
From: Hironsan
Date: Mon, 21 May 2018 10:45:06 +0900
Subject: [PATCH] Update template
show shortcut key
---
doccano/app/db.sqlite3 | Bin 163840 -> 163840 bytes
doccano/app/server/models.py | 4 +-
doccano/app/server/templates/annotation.html | 47 +++++++++++--------
3 files changed, 30 insertions(+), 21 deletions(-)
diff --git a/doccano/app/db.sqlite3 b/doccano/app/db.sqlite3
index 0070c20c8b539a0bd0280091d97c0c7bc884a1c0..551b54951ea40b8a3da3668e4a445855785b9a90 100644
GIT binary patch
delta 1280
zcma)+PiWg#9LM#uSXhT05K5#E$0Ep*VdDgDC^LnMl$&Mr<2
ziq^5Qu4!Q8xDAJCx0S8*&`a9|YBmamKrds5_RyxMk{k-Vr1a3sV62nm%_QvL3Eqbv
zPx^kJ-k0BdD=YmgEB#+5
z&U-aT2K}-{LS^Tx8l>903s7V^H|JJ6RfFFZwitcm@YjK09!GEp6Bx$`2BUAXWnPd=a|o|&y3Ger*s>huth95{2e$E!&CS^9>b%kp^POgYz(J=i{>~s
z3`GwG4|xy%+?ZEoJ!CwLw$DC*pJHs09dYSE|H~)vM5v(jf$dP=o%^ejTGNV
z>tQ6Tf+i6~l=XbqsNx$ri%%ijQ!WdVB9|3W&voVHj{H|wPI{~^X+lNTD3$cFj@)_m
z9Nu!oElBoCKoSKii)BLfY+^sdUI(Z65yDFc*eArn@h`a;Ft`~SRWZn_0RnG#?8sVQFe;;a+bB^(X=B?ES8ZI9OSW~EZCoApw)lFwJmMcFd6
zWgynR7J^~xTq{BHNWaw~tOo~1(1F@j$HWKm1iC^~Y04d;X{E@9+bqDhDDyLF>|h&4
z*eZn}8>bLZyroR1urlh=L~JTiHn(UwUn(Z1x#BmpZouIZYf)HKy%Ee(6k_a)!esPc
zQ#9*lU$Pl83^-nAtpWu7-bCMv+bP0~Bp;GF;P`N=pBC62rv4PZ-NQjp{kQB*}v20>QA%i={^O#cCuoN+h+
diff --git a/doccano/app/server/models.py b/doccano/app/server/models.py
index 0a7600ac..3ba9899d 100644
--- a/doccano/app/server/models.py
+++ b/doccano/app/server/models.py
@@ -3,10 +3,12 @@ from django.db import models
class Label(models.Model):
text = models.CharField(max_length=100)
+ shortcut = models.CharField(max_length=10)
def as_dict(self):
return {'id': self.id,
- 'text': self.text}
+ 'text': self.text,
+ 'shortcut': self.shortcut}
class RawData(models.Model):
diff --git a/doccano/app/server/templates/annotation.html b/doccano/app/server/templates/annotation.html
index a9748f2f..a60e18ac 100644
--- a/doccano/app/server/templates/annotation.html
+++ b/doccano/app/server/templates/annotation.html
@@ -6,7 +6,7 @@
- Forum - Free Bulma template
+ doccano - Document Annotation Tool
@@ -91,23 +91,23 @@
@@ -143,7 +143,9 @@
Active Learning
- Do It!
+
+ Do It!
+
@@ -162,8 +164,13 @@
-