Browse Source

Merge branch 'matej-fix-korektury-komentare' into stable

remotes/origin/dev
Matěj Kocián 8 years ago
parent
commit
73d8ed51bf
  1. 17
      korektury/templates/korektury/opraf.html

17
korektury/templates/korektury/opraf.html

@ -168,7 +168,7 @@
{% for k in o.komentare %}
<hr>
<div class='comment' id='k{{k.id}}'>
<span class='corr-header'>
<div class='corr-header'>
<div class='author'>{{k.autor}}</div>
<span class="float-right">
<!-- Komentar !-->
@ -177,17 +177,30 @@
<input type='hidden' name='pdf' value='{{pdf.id}}'>
<input type='hidden' name='id' value='{{k.id}}'>
<input type='hidden' name='scroll'>
{% if forloop.last %}
<button type='submit' name='action' value='del-comment' title='Smaž komentář'
onclick='return confirm("Opravdu smazat komentář?")'>
<img src="{% static "korektury/imgs/delete.png" %}"/>
</button>
{% else %}
<button name='action' value='del-comment' type='button'
title="Komentář nelze smazat &ndash; existuje novější">
<img src="{% static "korektury/imgs/delete-gr.png"%}"/>
</button>
{% endif %}
</form>
<!-- /Komentar !-->
{% if forloop.last %}
<button type='button' onclick='update_comment(this);' title='Uprav komentář'>
<img src="{% static "korektury/imgs/edit.png"%}"/>
</button>
{% else %}
<button type='button' title="Komentář nelze upravit &ndash; existuje novější">
<img src="{% static "korektury/imgs/edit-gr.png" %}"/>
</button>
{% endif %}
</div>
</div>
</span>
<div id='kt{{k.id}}'>{{k.text}}</div>
</div>
{% endfor %}

Loading…
Cancel
Save