Added a view to the about menu to read the LICENSE file included with Mayan

This commit is contained in:
Roberto Rosario
2011-08-14 23:31:12 -04:00
parent 094a4125dc
commit aba9d47ad8
4 changed files with 47 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ from django.contrib.auth import models as auth_models
from django.contrib.auth.management import create_superuser
from django.db.models import signals
from navigation.api import register_links
from navigation.api import register_links, register_top_menu
from common.conf import settings as common_settings
from common.utils import validate_path
@@ -20,10 +20,13 @@ current_user_edit = {'text': _(u'edit details'), 'view': 'current_user_edit', 'f
register_links(['current_user_details', 'current_user_edit', 'password_change_view'], [current_user_details, current_user_edit, password_change_view], menu_name='secondary_menu')
about = {'text': _('about'), 'view': 'about', 'famfam': 'information'}
changelog = {'text': _('changelog'), 'view': 'changelog', 'famfam': 'book_open'}
about_view = {'text': _('about'), 'view': 'about_view', 'famfam': 'information'}
changelog_view = {'text': _('changelog'), 'view': 'changelog_view', 'famfam': 'book_open'}
license_view = {'text': _('license'), 'view': 'license_view', 'famfam': 'script'}
register_links(['about', 'changelog'], [about, changelog], menu_name='secondary_menu')
register_links(['about_view', 'changelog_view', 'license_view'], [about_view, changelog_view, license_view], menu_name='secondary_menu')
register_top_menu('about', link={'text': _(u'about'), 'view': 'about_view', 'famfam': 'information'}, position=-1)
if common_settings.AUTO_CREATE_ADMIN: