Add template tags to expose the license and copyright of the project.
This commit is contained in:
@@ -45,11 +45,21 @@ def object_property(value, arg):
|
|||||||
return return_attrib(value, arg)
|
return return_attrib(value, arg)
|
||||||
|
|
||||||
|
|
||||||
|
@register.simple_tag
|
||||||
|
def project_copyright():
|
||||||
|
return settings.PROJECT_COPYRIGHT
|
||||||
|
|
||||||
|
|
||||||
@register.assignment_tag
|
@register.assignment_tag
|
||||||
def project_description():
|
def project_description():
|
||||||
return getattr(settings, 'PROJECT_DESCRIPTION', mayan.__description__)
|
return getattr(settings, 'PROJECT_DESCRIPTION', mayan.__description__)
|
||||||
|
|
||||||
|
|
||||||
|
@register.simple_tag
|
||||||
|
def project_license():
|
||||||
|
return settings.PROJECT_LICENSE
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def project_name():
|
def project_name():
|
||||||
return settings.PROJECT_TITLE
|
return settings.PROJECT_TITLE
|
||||||
|
|||||||
Reference in New Issue
Block a user