From e05bd28f8b689260a24b3b35464cdc9d7e135e27 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Tue, 28 Oct 2008 10:29:47 +0000 Subject: [PATCH] * Remove excess slash in media urls. Note thta MEDIA_URL now needs to finish in a slash. --- models.py | 2 +- templates/helpdesk/base.html | 10 +++++----- templates/helpdesk/create_ticket.html | 2 +- templates/helpdesk/dashboard.html | 2 +- templates/helpdesk/public_base.html | 4 ++-- templates/helpdesk/public_homepage.html | 2 +- templates/helpdesk/public_view_ticket.html | 2 +- templates/helpdesk/rss_list.html | 10 +++++----- templates/helpdesk/ticket.html | 6 +++--- templates/helpdesk/ticket_list.html | 4 ++-- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/models.py b/models.py index d3baa233..e3b895e2 100644 --- a/models.py +++ b/models.py @@ -341,7 +341,7 @@ class Ticket(models.Model): def _get_priority_img(self): """ Image-based representation of the priority """ from django.conf import settings - return u"%s/helpdesk/priorities/priority%s.png" % (settings.MEDIA_URL, self.priority) + return u"%shelpdesk/priorities/priority%s.png" % (settings.MEDIA_URL, self.priority) get_priority_img = property(_get_priority_img) def _get_priority_span(self): diff --git a/templates/helpdesk/base.html b/templates/helpdesk/base.html index 5c7fd446..3c10ea4c 100644 --- a/templates/helpdesk/base.html +++ b/templates/helpdesk/base.html @@ -2,10 +2,10 @@ {% block helpdesk_title %}Helpdesk{% endblock %} :: {% trans "Powered by Jutda Helpdesk" %} - - - - + + + + @@ -28,7 +28,7 @@ {% block helpdesk_body %}{% endblock %} {% include "helpdesk/debug.html" %} diff --git a/templates/helpdesk/create_ticket.html b/templates/helpdesk/create_ticket.html index c02f3c5a..167492f9 100644 --- a/templates/helpdesk/create_ticket.html +++ b/templates/helpdesk/create_ticket.html @@ -3,7 +3,7 @@ {% block helpdesk_title %}{% trans "Create Ticket" %}{% endblock %} {% block helpdesk_head %} - + + {% endblock %} {% block helpdesk_body %} diff --git a/templates/helpdesk/public_base.html b/templates/helpdesk/public_base.html index b8102edd..2289c038 100644 --- a/templates/helpdesk/public_base.html +++ b/templates/helpdesk/public_base.html @@ -1,8 +1,8 @@ {% load i18n %} {% block helpdesk_title %}{% trans "Helpdesk" %}{% endblock %} - - + + {% block helpdesk_head %}{% endblock %} diff --git a/templates/helpdesk/public_homepage.html b/templates/helpdesk/public_homepage.html index c4a20b88..249a3380 100644 --- a/templates/helpdesk/public_homepage.html +++ b/templates/helpdesk/public_homepage.html @@ -1,7 +1,7 @@ {% extends "helpdesk/public_base.html" %}{% load i18n %} {% block helpdesk_head %} - + + + - + +