diff options
-rw-r--r-- | src/meetingtools/extensions/templatetags/prefix.py | 7 | ||||
-rw-r--r-- | src/templates/apps/room/list.html | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/meetingtools/extensions/templatetags/prefix.py b/src/meetingtools/extensions/templatetags/prefix.py index 4defd38..32b8656 100644 --- a/src/meetingtools/extensions/templatetags/prefix.py +++ b/src/meetingtools/extensions/templatetags/prefix.py @@ -5,9 +5,14 @@ Created on Feb 9, 2011 ''' from django import template -from meetingtools.settings import PREFIX_URL +from meetingtools.settings import PREFIX_URL, BASE_URL register = template.Library() @register.simple_tag +def baseurl(): + return BASE_URL + + +@register.simple_tag def prefix(): return PREFIX_URL
\ No newline at end of file diff --git a/src/templates/apps/room/list.html b/src/templates/apps/room/list.html index 6552954..cc10f9d 100644 --- a/src/templates/apps/room/list.html +++ b/src/templates/apps/room/list.html @@ -65,7 +65,7 @@ {% endblock %} {% block validators %} {% if tags %} -<a href="http://feed1.w3.org/check.cgi?url={% prefix %}/room/+{{tags}}.atom"><img src="{% prefix %}/site-media/img/valid-atom.png" alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a> -<a href="http://feed1.w3.org/check.cgi?url={% prefix %}/room/+{{tags}}.rss"><img src="{% prefix %}/site-media/img/valid-rss-rogers.png" alt="[Valid RSS]" title="Validate my RSS feed" /></a> +<a href="http://feed1.w3.org/check.cgi?url={% baseurl %}{% prefix %}/room/+{{tags}}.atom"><img src="{% prefix %}/site-media/img/valid-atom.png" alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a> +<a href="http://feed1.w3.org/check.cgi?url={% baseurl %}{% prefix %}/room/+{{tags}}.rss"><img src="{% prefix %}/site-media/img/valid-rss-rogers.png" alt="[Valid RSS]" title="Validate my RSS feed" /></a> {% endif %} {% endblock %}
\ No newline at end of file |