Add template tags to expose the license and copyright of the project.

This commit is contained in:
Roberto Rosario
2016-11-16 22:54:43 -04:00
parent a94745ab9e
commit 844511340d

View File

@@ -45,11 +45,21 @@ def object_property(value, arg):
return return_attrib(value, arg)
@register.simple_tag
def project_copyright():
return settings.PROJECT_COPYRIGHT
@register.assignment_tag
def project_description():
return getattr(settings, 'PROJECT_DESCRIPTION', mayan.__description__)
@register.simple_tag
def project_license():
return settings.PROJECT_LICENSE
@register.simple_tag
def project_name():
return settings.PROJECT_TITLE