From f0fd7857944542da8288203099c74b9e2bc3ba6e Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Mon, 13 May 2013 22:08:37 +0200 Subject: [PATCH] fix url tags for Django 1.5, remove MUMBLE_MEDIA_PREFIX in favor of django.contrib.staticfiles --- pyweb/mumble/templates/mumble/channel.html | 9 ++++--- pyweb/mumble/templates/mumble/embed.html | 11 ++++---- pyweb/mumble/templates/mumble/list.html | 7 +++--- .../mumble/templates/mumble/mobile_list.html | 2 +- pyweb/mumble/templates/mumble/mumble.html | 25 ++++++++++--------- pyweb/mumble/templates/mumble/player.html | 23 +++++++++-------- pyweb/mumble/templates/mumble/server.html | 3 ++- pyweb/mumble/templatetags/mumble_extras.py | 6 ----- pyweb/processors.py | 3 +-- pyweb/settings.py | 21 ++++++++-------- pyweb/templates/index.html | 21 ++++++++-------- pyweb/templates/mobile_index.html | 13 +++++----- 12 files changed, 73 insertions(+), 71 deletions(-) diff --git a/pyweb/mumble/templates/mumble/channel.html b/pyweb/mumble/templates/mumble/channel.html index e6b6a80..cef8e89 100644 --- a/pyweb/mumble/templates/mumble/channel.html +++ b/pyweb/mumble/templates/mumble/channel.html @@ -1,13 +1,14 @@ {% comment %} {% endcomment %} +{% load staticfiles %} {% load mumble_extras %} -
- +
+ {% if Channel.linked %} - linked channel + linked channel {% else %} - channel + channel {% endif %} {% if Channel.server.netloc %} diff --git a/pyweb/mumble/templates/mumble/embed.html b/pyweb/mumble/templates/mumble/embed.html index b6c8304..9c64135 100644 --- a/pyweb/mumble/templates/mumble/embed.html +++ b/pyweb/mumble/templates/mumble/embed.html @@ -1,4 +1,5 @@ {% extends "index.html" %} +{% load staticfiles %} {% comment %} {% endcomment %} @@ -8,9 +9,9 @@ {% endblock %} {% block PageTitle %}Mumble :: {{ MumbleServer.name }}{% endblock %} {% block HeadTag %} - - - + + + - - - + + + @@ -20,15 +21,15 @@ - - - - - - - - - + + + + + + + + + - + + {% else %} - - + + {% endif %} - + {% block HeadTag %} {% endblock %} diff --git a/pyweb/templates/mobile_index.html b/pyweb/templates/mobile_index.html index 30d1ceb..a2d6555 100644 --- a/pyweb/templates/mobile_index.html +++ b/pyweb/templates/mobile_index.html @@ -1,3 +1,4 @@ +{% load staticfiles %} @@ -7,12 +8,12 @@ - + - - - - + + + + {% block HeadTag %} {% endblock %} @@ -25,7 +26,7 @@