Use the project website tag in the about template. Allow customization of the project description.
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user