diff --git a/_git_hooks/pre-commit b/_git_hooks/pre-commit index 664a06ce..f78840d4 100755 --- a/_git_hooks/pre-commit +++ b/_git_hooks/pre-commit @@ -10,6 +10,11 @@ status=0 # select only changed python files which are not migrations changed=`git diff --cached --name-only | grep 'py$' | grep -v 'migrations/[0-9]'` +if [ -z $changed ] ; then + # Nothing to check. Note the exit is necessary -- we would not pass any + # paths to git diff below and it would output the diff unfiltered. + exit 0 +fi git diff --unified=1 --cached HEAD -- $changed > $TMPDIFF diff --git a/korektury/static/korektury/imgs/comment-gr.png b/korektury/static/korektury/imgs/comment-gr.png new file mode 100644 index 00000000..3a35385e Binary files /dev/null and b/korektury/static/korektury/imgs/comment-gr.png differ diff --git a/korektury/static/korektury/opraf-list.css b/korektury/static/korektury/opraf-list.css new file mode 100644 index 00000000..737b3c2c --- /dev/null +++ b/korektury/static/korektury/opraf-list.css @@ -0,0 +1,13 @@ +.adding-text{ + color: black; +} +.comitting-text +{ + color: yellow; +} +.deprecated-text { + color: red; + text-decoration: line-through; +} + + diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index a6d6244c..75591fe7 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -126,11 +126,14 @@ function img_click(element, ev) { function toggle_visibility(button){ var divbox = button.parentNode.parentNode.parentNode; var id = divbox.id; + var buttondiv = document.getElementById(id+'-buttons') var text = document.getElementById(id+'-body'); if (text.style.display == 'none'){ text.style.display = 'block'; + buttondiv.style.display = 'inline-block'; }else { text.style.display = 'none'; + buttondiv.style.display = 'none'; } for (var i=0;i

Děkujeme opravovatelům: - {% for autor,pocet in zasluhy.items %} - {{autor}} ({{pocet}}){% if not forloop.last %},{% endif %} + {% for z in zasluhy %} + {{z.autor}} ({{z.pocet}}){% if not forloop.last %},{% endif %} {% endfor %}


@@ -99,8 +99,9 @@ onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}"done"{% elif o.status = 'neni_chyba' %}"wontfix"{%else%}""{% endif %})'>
-
{{o.autor}}
-
+ {{o.autor}} + +
{% csrf_token %} @@ -144,14 +145,22 @@ {% endif %} + {% if o.status = 'opraveno' or o.status = 'neni_chyba' %} + + {% else %} + {% endif %} + + -
+
{{o.text}}
@@ -159,17 +168,17 @@ {% for k in o.komentare %}
-
+
{{k.autor}}
-
- + + {% csrf_token %} @@ -178,7 +187,7 @@
-
+
{{k.text}}
{% endfor %} diff --git a/korektury/templates/korektury/seznam.html b/korektury/templates/korektury/seznam.html index c1d62175..991ca2c5 100644 --- a/korektury/templates/korektury/seznam.html +++ b/korektury/templates/korektury/seznam.html @@ -1,4 +1,9 @@ {% extends "korektury/base.html" %} +{% load staticfiles %} + +{% block script%} + +{% endblock %} {% block content %} @@ -12,7 +17,7 @@