diff --git a/helpdesk/settings.py b/helpdesk/settings.py index 9170803b..91f60afe 100644 --- a/helpdesk/settings.py +++ b/helpdesk/settings.py @@ -366,7 +366,6 @@ HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = getattr( settings, "HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO", False ) - ################# # email options # ################# diff --git a/helpdesk/templates/helpdesk/ticket_desc_table.html b/helpdesk/templates/helpdesk/ticket_desc_table.html index 1a7771b5..6fec0767 100644 --- a/helpdesk/templates/helpdesk/ticket_desc_table.html +++ b/helpdesk/templates/helpdesk/ticket_desc_table.html @@ -73,14 +73,50 @@ {{ ticket.created|date:"DATETIME_FORMAT" }} ({{ ticket.created|naturaltime }}) + {% trans "Assigned To" %} - {{ ticket.get_assigned_to }} - {% if _('Unassigned') == ticket.get_assigned_to %} - - - - {% endif %} + +
+ {% csrf_token %} + + + + + + + + +
+
+ + +
+ +
+
+ + | + + + + + +
+
{% trans "Submitter E-Mail" %} @@ -164,7 +200,7 @@ - + {% for dep in dependencies %} @@ -174,11 +210,11 @@ - + {{ dep.depends_on.get_status_display }} {{ dep.depends_on.ticket }} {{ dep.depends_on.title }} - + {% if forloop.last %}{% endif %} {% empty %} diff --git a/helpdesk/views/public.py b/helpdesk/views/public.py index 0f142c05..13867086 100644 --- a/helpdesk/views/public.py +++ b/helpdesk/views/public.py @@ -1,7 +1,7 @@ """ django-helpdesk - A Django powered ticket tracker for small enterprise. -(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details. +(c) Copyright 2008-2025 Jutda. All Rights Reserved. See LICENSE for details. views/public.py - All public facing views, eg non-staff (no authentication required) views. diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 5c013f62..b6ee8da0 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -1,7 +1,7 @@ """ django-helpdesk - A Django powered ticket tracker for small enterprise. -(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details. +(c) Copyright 2008-2025 Jutda. All Rights Reserved. See LICENSE for details. views/staff.py - The bulk of the application - provides most business logic and renders all staff-facing views. @@ -99,6 +99,7 @@ from django.utils.timezone import now if helpdesk_settings.HELPDESK_KB_ENABLED: from helpdesk.models import KBItem + DATE_RE: re.Pattern = re.compile( r"(?P\d{1,2})/(?P\d{1,2})/(?P\d{4})$" ) @@ -483,6 +484,9 @@ def view_ticket(request, ticket_id): "SHOW_SUBSCRIBE": show_subscribe, "checklist_form": checklist_form, "customfields_form": customfields_form, + "assignable_users": get_assignable_users( + bool(getattr(settings, "HELPDESK_STAFF_ONLY_TICKET_OWNERS", False)) + ), **extra_context_kwargs, }, ) diff --git a/setup.py b/setup.py index 9687b890..42f237b5 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from setuptools import find_packages, setup import sys -version = "1.7.0" +version = "1.8.0" # Provided as an attribute, so you can append to these instead