| |
@@ -138,12 +138,13 @@
|
| |
{% endif %}
|
| |
<div class="issue_action icon pull-xs-right p-b-1">
|
| |
<div class="btn-group" role="group" aria-label="Basic example">
|
| |
- <a class="reply btn btn-secondary btn-sm" data-toggle="tooltip" title="Reply to this comment - loose formating">
|
| |
- <span class="oi" data-glyph="share-boxed"></span>
|
| |
- </a>
|
| |
+ {% if id != 0 and g.fas_user and comment.parent.status in [True, 'Open'] %}
|
| |
+ <a class="reply btn btn-secondary btn-sm" data-toggle="tooltip" title="Reply to this comment - loose formating">
|
| |
+ <span class="oi" data-glyph="share-boxed"></span>
|
| |
+ </a>
|
| |
+ {% endif %}
|
| |
{% if id != 0 and g.fas_user and (
|
| |
- (comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username)
|
| |
- or repo_admin) %}
|
| |
+ comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) %}
|
| |
<a class="btn btn-secondary btn-sm edit_btn" href="{{
|
| |
'%s/comment/%s/edit' % (request.base_url, comment.id) }}"
|
| |
data-comment="{{ comment.id }}" data-objid="{{ issueid }}">
|
| |
@@ -151,8 +152,7 @@
|
| |
</a>
|
| |
{% endif %}
|
| |
{% if id != 0 and g.fas_user and (
|
| |
- (comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username)
|
| |
- or repo_admin) %}
|
| |
+ comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) %}
|
| |
<button class="btn btn-secondary btn-sm" type="submit" name="drop_comment" value="{{ comment.id }}"
|
| |
onclick="return confirm('Do you really want to remove this comment?');"
|
| |
title="Remove comment">
|
| |
@@ -176,10 +176,12 @@
|
| |
</section>
|
| |
<div class="issue_action icon pull-xs-right">
|
| |
<div class="btn-group" role="group">
|
| |
- <a class="btn btn-secondary btn-sm reply"
|
| |
- title="Reply to the initial comment - loose formatting">
|
| |
- <span class="oi" data-glyph="share-boxed"></span>
|
| |
- </a>
|
| |
+ {% if g.fas_user %}
|
| |
+ <a class="btn btn-secondary btn-sm reply"
|
| |
+ title="Reply to the initial comment - loose formatting">
|
| |
+ <span class="oi" data-glyph="share-boxed"></span>
|
| |
+ </a>
|
| |
+ {% endif %}
|
| |
{% if repo_admin or (
|
| |
g.fas_user and g.fas_user.username == comment.user.username) %}
|
| |
<a class="btn btn-primary btn-sm" href="{{
|
| |