Use the project website tag in the about template. Allow customization of the project description.
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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