Remove SVN lookup at bottom of staff pages - not required now we're on Git.

This commit is contained in:
Ross Poulton 2011-05-12 09:08:32 +10:00
parent afea90b2d2
commit 04ad20d42f
2 changed files with 1 additions and 17 deletions

View File

@ -51,7 +51,7 @@
</div>
<div id='footer'>
<p>{% trans "Powered by <a href='https://github.com/rossp/django-helpdesk'>django-helpdesk</a>." %} {% if user.is_staff %}{% load svn_revision %}{% helpdesk_svn_revision %}{% endif %} <a href='{% url helpdesk_rss_index %}'><img src='{{ STATIC_URL }}helpdesk/rss_icon.png' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "RSS Feeds" %}' border='0' />{% trans "RSS Feeds" %}</a> <a href='{% url helpdesk_api_help %}'>{% trans "API" %}</a> <a href='{% url helpdesk_user_settings %}'>{% trans "User Settings" %}</a> {% if user.is_superuser %}<a href='{% url helpdesk_system_settings %}'>{% trans "System Settings" %}</a>{% endif %}</p>
<p>{% trans "Powered by <a href='https://github.com/rossp/django-helpdesk'>django-helpdesk</a>." %} <a href='{% url helpdesk_rss_index %}'><img src='{{ STATIC_URL }}helpdesk/rss_icon.png' width='14' height='14' alt='{% trans "RSS Icon" %}' title='{% trans "RSS Feeds" %}' border='0' />{% trans "RSS Feeds" %}</a> <a href='{% url helpdesk_api_help %}'>{% trans "API" %}</a> <a href='{% url helpdesk_user_settings %}'>{% trans "User Settings" %}</a> {% if user.is_superuser %}<a href='{% url helpdesk_system_settings %}'>{% trans "System Settings" %}</a>{% endif %}</p>
</div>
</div>
{% include "helpdesk/debug.html" %}

View File

@ -1,16 +0,0 @@
from django import template
from django.utils.version import get_svn_revision
import helpdesk
def svn_revision(parser, token):
path = helpdesk.__path__[0]
return SVNRevisionNode(path)
class SVNRevisionNode(template.Node):
def __init__(self, path):
self.path = path
def render(self, context):
return get_svn_revision(self.path)
register = template.Library()
register.tag('helpdesk_svn_revision', svn_revision)