Free and open source ticket system written in python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ› FIX: Fix bug where internal comments notified the user

+32 -3
+1 -1
paw/__init__.py
··· 1 1 from django import get_version 2 2 3 - VERSION = (0, 5, 2, "final", 0) 3 + VERSION = (0, 5, 3, "final", 0) 4 4 5 5 __version__ = get_version(VERSION)
+24
paw/static/css/paw.css
··· 1009 1009 line-height: 1.25rem; 1010 1010 } 1011 1011 1012 + .chat-footer { 1013 + grid-row-start: 3; 1014 + font-size: 0.875rem; 1015 + line-height: 1.25rem; 1016 + } 1017 + 1012 1018 .chat-bubble { 1013 1019 position: relative; 1014 1020 display: block; ··· 1773 1779 background-color: var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity))); 1774 1780 --tw-text-opacity: 1; 1775 1781 color: var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity))); 1782 + } 1783 + 1784 + .badge-ghost { 1785 + --tw-border-opacity: 1; 1786 + border-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity))); 1787 + --tw-bg-opacity: 1; 1788 + background-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity))); 1789 + --tw-text-opacity: 1; 1790 + color: var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity))); 1776 1791 } 1777 1792 1778 1793 .badge-outline.badge-neutral { ··· 3308 3323 background-color: var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity))); 3309 3324 } 3310 3325 3326 + .bg-base-content { 3327 + --tw-bg-opacity: 1; 3328 + background-color: var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity))); 3329 + } 3330 + 3311 3331 .stroke-current { 3312 3332 stroke: currentColor; 3313 3333 } ··· 3451 3471 3452 3472 .opacity-70 { 3453 3473 opacity: 0.7; 3474 + } 3475 + 3476 + .opacity-60 { 3477 + opacity: 0.6; 3454 3478 } 3455 3479 3456 3480 @media (min-width: 1024px) {
+6 -1
paw/templates/ticketing/ticket_detail.html
··· 55 55 {{ comment.user.username }} 56 56 <time class="text-xs opacity-50">{{ comment.created_at|date:"d.m.y" }}</time> 57 57 </div> 58 - <div class="chat-bubble whitespace-pre-line">{{ comment.text }}</div> 58 + <div class="chat-bubble {% if comment.is_only_for_staff %}bg-base-300 text-base-content{% endif %} whitespace-pre-line">{{ comment.text }}</div> 59 + {% if comment.is_only_for_staff %} 60 + <div class="chat-footer opacity-60 text-sm"> 61 + {% trans 'Internal' %} 62 + </div> 63 + {% endif %} 59 64 </div> 60 65 {% endif %} 61 66 {% endfor %}
+1 -1
ticketing/models.py
··· 216 216 217 217 @receiver(post_save, sender=Comment, dispatch_uid="mail_comment_notification") 218 218 def send_mail_comment_notification(sender, instance, created, **kwargs): 219 - if created and instance.ticket.user.receive_email_notifications and instance.user != instance.ticket.user: 219 + if created and instance.ticket.user.receive_email_notifications and instance.user != instance.ticket.user and not instance.is_only_for_staff: 220 220 mail_template = MailTemplate.get_template('new_comment', instance.user.language) 221 221 if not mail_template: 222 222 return None