settings.py cleanup (#200) - remove HELPDESK_DASHBOARD_BASIC_TICKET_STATS, always shows now. This resolves #201 to my satisfaction for now.

This commit is contained in:
Ross Poulton 2014-01-29 22:13:42 +11:00
parent 99e9bd33d8
commit 66da47205e
3 changed files with 1 additions and 13 deletions

View File

@ -121,13 +121,6 @@ HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = getattr(settings, 'HELPDESK_CREATE_TIC
''' options for dashboard '''
# show basic ticket stats on dashboard?
HELPDESK_DASHBOARD_BASIC_TICKET_STATS = getattr(settings, 'HELPDESK_DASHBOARD_BASIC_TICKET_STATS', False)
''' options for footer '''
# show 'API' link at bottom of page
HELPDESK_FOOTER_SHOW_API_LINK = getattr(settings, 'HELPDESK_FOOTER_SHOW_API_LINK', True)

View File

@ -33,7 +33,6 @@
{% if helpdesk_settings.HELPDESK_DASHBOARD_BASIC_TICKET_STATS %}
<br style='clear: both;' />
<table class="table table-hover table-bordered">
@ -54,7 +53,6 @@
{% endfor %}
</tbody>
</table>
{% endif %}
{% if all_tickets_reported_by_current_user %}

View File

@ -82,10 +82,7 @@ def dashboard(request):
submitter_email=email_current_user,
).order_by('status')
# calculate basic ticket stats if requested
basic_ticket_stats = False
if helpdesk_settings.HELPDESK_DASHBOARD_BASIC_TICKET_STATS:
basic_ticket_stats = calc_basic_ticket_stats(Ticket)
basic_ticket_stats = calc_basic_ticket_stats(Ticket)
# The following query builds a grid of queues & ticket statuses,
# to be displayed to the user. EG: