Skip to content

Commit

Permalink
Improve styling of commemts
Browse files Browse the repository at this point in the history
  • Loading branch information
jajodiaraghav committed Jun 9, 2017
1 parent 6086f60 commit 40798fa
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions website/templates/issue.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
.fb-xfbml-parse-ignore {
margin-top: -12px;
}
.comment .comment-actions {
display: inline-flex;
}
.comment .comment-actions .btn {
margin-left: 10px;
}
{% endblock %}
{% block content %}
<div id="fb-root"></div>
Expand Down Expand Up @@ -185,16 +191,16 @@ <h3>Comments:</h3>

{% for comment in all_comment %}
<hr>
<div class="comment">
<div style="display: inline-flex;">
<div class="date">{{ comment.created_date }}</div>
<div class="well comment">
<div class="comment-actions">
<strong><a href="{{ comment.author_url }}">{{ comment.author }} </a></strong>
&nbsp;commented on&nbsp;<div class="date"> {{ comment.created_date }}</div>
{% if user.username == comment.author %}
<a class="btn btn-xs btn-primary" href="{% url 'comments.views.EditCommentPage' pk=comment.pk %}">Edit</a>
<a class="btn btn-xs btn-danger" href="{% url 'comments.views.DeleteComment' pk=comment.pk %}">Delete</a>
{% endif %}
</div>
<div>
<strong><a href="{{ comment.author_url }}">{{ comment.author }}</a></strong>
<div>
<p>{{ comment.text|linebreaks }}</p>
</div>
</div>
Expand All @@ -203,4 +209,3 @@ <h3>Comments:</h3>
{% endif %}

{% endblock %}

0 comments on commit 40798fa

Please sign in to comment.