Commit 57ff4a70 authored by Cynddl's avatar Cynddl
Browse files

[mod] "Attachments" section on the right

parent 7f0eb969
......@@ -413,6 +413,12 @@ div.comment {
font-weight: normal;
}
#description .description-node .attachs {
float: right;
padding: 0.5em;
text-align: right;
}
/* General inputs */
......
......@@ -103,11 +103,9 @@ $(document).ready(function() {
<h3>{%trans "Description" %}</h3>
{%for c in v.comment_set.all%}
<div class="description-node">
<div class="description">{{c.comment|safe}}</div>
<span class="submitter">{%if c.submitter_name%}{{c.submitter_name}}{%else%}{{c.submitter_email}}{%endif%}</span> - <span class="comment_date">{{c.timestamp|date:"SHORT_DATE_FORMAT" }}</span>
{%if c.attachment_set.all%}
<div class="attachs">
{% trans "Attachments" %}
{%if c.attachment_set.all%}
<div class="attachs">
<h4>{% trans "Attachments" %}</h4>
<ul>
{%for a in c.attachment_set.all%}
<li><a href="{%media_url%}/{{a.storage.url}}">{{a.name}}</a></li>
......@@ -115,6 +113,8 @@ $(document).ready(function() {
</ul>
</div>
{%endif%}
<div class="description">{{c.comment|safe}}</div>
<span class="submitter">{%if c.submitter_name%}{{c.submitter_name}}{%else%}{{c.submitter_email}}{%endif%}</span> - <span class="comment_date">{{c.timestamp|date:"SHORT_DATE_FORMAT" }}</span>
</div>
{%endfor%}
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment