trombi: change comments format in export

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia 2017-09-25 11:08:20 +02:00
parent c7f5203122
commit 3a16c7aab4

View File

@ -70,15 +70,20 @@
<button onclick="copyToClipboard(document.getElementById('user_{{ trombi_user.id }}_clubs'))">{% trans %}Copy clubs{% endtrans %}</button> <button onclick="copyToClipboard(document.getElementById('user_{{ trombi_user.id }}_clubs'))">{% trans %}Copy clubs{% endtrans %}</button>
{% endif %} {% endif %}
<h4>{% trans %}Comments{% endtrans %}</h4> <h4>{% trans %}Comments{% endtrans %}</h4>
<div id="user_{{ trombi_user.id }}_coms" style="text-align: left; word-wrap: break-word;"> <table id="user_{{ trombi_user.id }}_coms" style="text-align: left; word-wrap: break-word;">
{% for c in trombi_user.received_comments.filter(is_moderated=True) %} <tbody>
<strong>{{ c.author.user.get_display_name() }}</strong><br> {% for c in trombi_user.received_comments.filter(is_moderated=True) %}
{% for line in c.content.splitlines() %} <tr>
{{ line }}<br> <td>{{ c.author.user.get_display_name() }}</td>
<td>
{% for line in c.content.splitlines() %}
{{ line }}<br>
{% endfor %}
</td>
</tr>
{% endfor %} {% endfor %}
<br> </tbody>
{% endfor %} </table>
</div>
<button onclick="copyToClipboard(document.getElementById('user_{{ trombi_user.id }}_coms'))">{% trans %}Copy comments{% endtrans %}</button> <button onclick="copyToClipboard(document.getElementById('user_{{ trombi_user.id }}_coms'))">{% trans %}Copy comments{% endtrans %}</button>
</div> </div>
{% endfor %} {% endfor %}