Use the project website tag in the about template. Allow customization of the project description.

This commit is contained in:
Roberto Rosario
2015-07-17 02:10:31 -04:00
parent e421c8e382
commit e2fcffc81d
2 changed files with 13 additions and 2 deletions

View File

@@ -31,11 +31,21 @@ def object_property(value, arg):
return return_attrib(value, arg)
@register.assignment_tag
def project_description():
return getattr(settings, 'PROJECT_DESCRIPTION', mayan.__description__)
@register.simple_tag
def project_name():
return settings.PROJECT_TITLE
@register.simple_tag
def project_website():
return settings.PROJECT_WEBSITE
@register.simple_tag
def project_version():
return mayan.__version__