Skip to content

Commit

Permalink
fix(core): correct project task reply link for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Sep 12, 2024
1 parent 2ab2b65 commit 2e98eda
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/core/templates/core/ticket/comment/comment.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@
</div>
<div id="icons">
{%if not comment.parent_id %}
{% if ticket_type == 'project_task'%}
<a title="Reply with Comment" href="{% url comment_reply_url ticket.project.id ticket_type ticket.id comment.id %}?comment_type=comment">
{% include 'icons/ticket/reply.svg' %}
</a>
<a title="Reply with Task" href="{% url comment_reply_url ticket.project.id ticket_type ticket.id comment.id %}?comment_type=task">
{% include 'icons/ticket/task.svg' %}
</a>
<a title="Reply with Notification" href="{% url comment_reply_url ticket.project.id ticket_type ticket.id comment.id %}?comment_type=notification">
{% include 'icons/ticket/notification.svg' %}
</a>
{% else %}
<a title="Reply with Comment" href="{% url comment_reply_url ticket_type ticket.id comment.id %}?comment_type=comment">
{% include 'icons/ticket/reply.svg' %}
</a>
Expand All @@ -35,6 +46,7 @@
<a title="Reply with Notification" href="{% url comment_reply_url ticket_type ticket.id comment.id %}?comment_type=notification">
{% include 'icons/ticket/notification.svg' %}
</a>
{% endif %}
{% endif %}
<a title="Edit Comment" href="{% url 'Assistance:_ticket_comment_request_change' ticket_type ticket.id comment.id %}">
{% include 'icons/ticket/edit.svg' %}
Expand Down

0 comments on commit 2e98eda

Please sign in to comment.