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

@@ -61,11 +61,12 @@
<div class="well">
<h3 class="text-center">{% project_name %} ({% trans 'Version' %} {% project_version %})</h3>
<p class="text-center">
{% trans 'Free Open Source Electronic Document Management System' %}
{% project_description as project_description %}
{% trans project_description %}
</p>
<p class="text-center">
<i class="fa fa-link"></i><a href="http://www.mayan-edms.com"> http://www.mayan-edms.com</a>
<i class="fa fa-link"></i><a href="{% project_website %}"> {% project_website %}</a>
</p>
<p class="text-center">

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__