Commit uncommitted change to consolidate variable_tags with project_tags
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
from django.conf import settings
|
||||
from django.template import Library
|
||||
|
||||
import mayan
|
||||
|
||||
register = Library()
|
||||
|
||||
|
||||
@register.simple_tag
|
||||
def project_name():
|
||||
return settings.PROJECT_TITLE
|
||||
|
||||
|
||||
@register.simple_tag
|
||||
def project_version():
|
||||
return mayan.__version__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user