Korektury se uz radi spravne pod sebe.
This commit is contained in:
parent
4aac66006a
commit
cdbe5ff5db
2 changed files with 6 additions and 2 deletions
|
@ -158,8 +158,8 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
{% for o in opravy %}
|
{% for s in opravy_strany %}
|
||||||
place_comments_one_div("img-{{o.strana}}", [["op{{o.id}}",{{o.x}},{{o.y}}]]);
|
place_comments_one_div("img-{{s.strana}}", [{% for o in s.op_id %}["op{{o.id}}",{{o.x}},{{o.y}}],{% endfor %}[]]);
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if scroll %}
|
{% if scroll %}
|
||||||
window.scrollTo(0,{{scroll}});
|
window.scrollTo(0,{{scroll}});
|
||||||
|
|
|
@ -136,6 +136,10 @@ class KorekturyView(generic.TemplateView):
|
||||||
else:
|
else:
|
||||||
zasluhy[k.autor]=1
|
zasluhy[k.autor]=1
|
||||||
|
|
||||||
|
strany = opravy.values('strana')
|
||||||
|
opravy_na_stranu = [{'strana':s['strana'],'op_id':opravy.filter(strana=s['strana'])} for s in strany]
|
||||||
|
context['opravy_strany'] = opravy_na_stranu
|
||||||
|
|
||||||
context['opravy'] = opravy
|
context['opravy'] = opravy
|
||||||
context['zasluhy'] = zasluhy
|
context['zasluhy'] = zasluhy
|
||||||
return context
|
return context
|
||||||
|
|
Loading…
Reference in a new issue