Skip to content

Commit

Permalink
Reorder html elements in reviewcase comment section.Fixes #1013
Browse files Browse the repository at this point in the history
  • Loading branch information
RMadjev authored and atodorov committed Aug 5, 2019
1 parent 755f4b6 commit 6fdc61d
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions tcms/templates/case/get_details.html
Expand Up @@ -62,29 +62,29 @@ <h4>{% trans "Notes" %}:</h4>
<tr>
<td colspan="3" style="border:none; background:none">
<h4>{% trans "Comments" %}:</h4>
<ul class="comment ul-no-format">
{% for comment in case_comments %}
<li>
<span class="strong">#{{ forloop.counter }}</span>
<span class="strong">
<a href="{% url "tcms-profile" comment.user.username %}">
{{ comment.user.username }}
</a>
</span>
<span class="grey">{{ comment.submit_date }}</span>
<br/>
{{ comment.comment|urlize|linebreaksbr }}

{% if review_mode and comment.user.pk == user.pk %}
<form action="{% url "comments-delete" %}" method="post" class="form_comment">
<input type="hidden" name="comment_id" value="{{ comment.pk }}" />
<input type="hidden" name="object_pk" value="{{ test_case.pk }}" />
<input class='commentdelete sprites' value='Delete Comment' type='submit' />
</form>
{% endif %}
</li>
<div>
<div>
<span class="strong">#{{ forloop.counter }}</span>
<span class="strong">
<a href="{% url "tcms-profile" comment.user.username %}">
{{ comment.user.username }}
</a>
</span>
<span class="grey">{{ comment.submit_date }}</span>
</div>
<div>
{% if review_mode and comment.user.pk == user.pk %}
<form action="{% url "comments-delete" %}" method="post" class="form_comment">
<input type="hidden" name="comment_id" value="{{ comment.pk }}" />
<input type="hidden" name="object_pk" value="{{ test_case.pk }}" />
<input class='commentdelete sprites' value='Delete Comment' type='submit' />
</form>
{% endif %}
</div>
</div>
{{ comment.comment|urlize|linebreaksbr }}
{% endfor %}
<ul>
</td>
</tr>
{% if review_mode %}
Expand Down

0 comments on commit 6fdc61d

Please sign in to comment.