mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
Remove SVN lookup at bottom of staff pages - not required now we're on Git.
This commit is contained in:
parent
afea90b2d2
commit
04ad20d42f
@ -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" %}
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user