From cd1172b35a4d1655797b9e9be7064583eaec0104 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Wed, 29 Jan 2014 22:23:42 +1100 Subject: [PATCH] settings.py cleanup (#200): Remove HELPDESK_SHOW_DELETE_BUTTON_TICKET_TOP and HELPDESK_SHOW_EDIT_BUTTON_TICKET_TOP; both links now always show. --- helpdesk/settings.py | 9 --------- helpdesk/templates/helpdesk/ticket_desc_table.html | 7 +------ 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/helpdesk/settings.py b/helpdesk/settings.py index 44d6a297..675c740a 100644 --- a/helpdesk/settings.py +++ b/helpdesk/settings.py @@ -92,15 +92,6 @@ HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP = getattr(settings, 'HELPDESK_SHOW_EDIT_BUTT # show delete buttons in ticket follow ups if user is 'superuser' HELPDESK_SHOW_DELETE_BUTTON_SUPERUSER_FOLLOW_UP = getattr(settings, 'HELPDESK_SHOW_DELETE_BUTTON_SUPERUSER_FOLLOW_UP', False) -# show ticket edit button on top of ticket description. -HELPDESK_SHOW_EDIT_BUTTON_TICKET_TOP = getattr(settings, 'HELPDESK_SHOW_EDIT_BUTTON_TICKET_TOP', True) - -# show ticket delete button on top of ticket description. -HELPDESK_SHOW_DELETE_BUTTON_TICKET_TOP = getattr(settings, 'HELPDESK_SHOW_DELETE_BUTTON_TICKET_TOP', True) - -# show hold / unhold button on top of ticket description. -HELPDESK_SHOW_HOLD_BUTTON_TICKET_TOP = getattr(settings, 'HELPDESK_SHOW_HOLD_BUTTON_TICKET_TOP', True) - # make all updates public by default? this will hide the 'is this update public' checkbox HELPDESK_UPDATE_PUBLIC_DEFAULT = getattr(settings, 'HELPDESK_UPDATE_PUBLIC_DEFAULT', False) diff --git a/helpdesk/templates/helpdesk/ticket_desc_table.html b/helpdesk/templates/helpdesk/ticket_desc_table.html index b735e5dd..685f9a30 100644 --- a/helpdesk/templates/helpdesk/ticket_desc_table.html +++ b/helpdesk/templates/helpdesk/ticket_desc_table.html @@ -2,15 +2,10 @@ +

{{ ticket.id }}. {{ ticket.title }} [{{ ticket.get_status }}]

- {% if helpdesk_settings.HELPDESK_SHOW_EDIT_BUTTON_TICKET_TOP %} Edit - {% endif %} - {% if helpdesk_settings.HELPDESK_SHOW_DELETE_BUTTON_TICKET_TOP %} | Delete - {% endif %} - {% if helpdesk_settings.HELPDESK_SHOW_HOLD_BUTTON_TICKET_TOP %} {% if ticket.on_hold %} | {% trans "Unhold" %}{% else %} | {% trans "Hold" %}{% endif %} - {% endif %}
{% blocktrans with ticket.queue as queue %}Queue: {{ queue }}{% endblocktrans %}