From ad53632f7ff6759c7f1665b234a38870370f423c Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 18 Nov 2011 23:29:40 -0400 Subject: [PATCH] Added smart linking setup help --- apps/grouping/__init__.py | 4 ++-- apps/grouping/templates/smart_links_help.html | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 apps/grouping/templates/smart_links_help.html diff --git a/apps/grouping/__init__.py b/apps/grouping/__init__.py index 18b0ce37f4..fc014bce6f 100644 --- a/apps/grouping/__init__.py +++ b/apps/grouping/__init__.py @@ -1,6 +1,6 @@ from django.utils.translation import ugettext_lazy as _ -from navigation.api import register_links +from navigation.api import register_links, register_sidebar_template from permissions.api import register_permission, set_namespace_title from project_setup.api import register_setup from documents.literals import PERMISSION_DOCUMENT_VIEW @@ -8,7 +8,6 @@ from documents.models import Document from grouping.models import DocumentGroup, DocumentGroupItem - PERMISSION_SMART_LINK_VIEW = {'namespace': 'grouping', 'name': 'group_view', 'label': _(u'View existing smart links')} PERMISSION_SMART_LINK_CREATE = {'namespace': 'grouping', 'name': 'group_create', 'label': _(u'Create new smart links')} PERMISSION_SMART_LINK_DELETE = {'namespace': 'grouping', 'name': 'group_delete', 'label': _(u'Delete smart links')} @@ -42,3 +41,4 @@ register_links(['document_group_list', 'document_group_create', 'document_group_ register_links(['smart_link_condition_list', 'smart_link_condition_create', 'smart_link_condition_edit', 'smart_link_condition_delete'], [smart_link_condition_create], menu_name='sidebar') register_setup(document_groups_setup) +register_sidebar_template(['document_group_list'], 'smart_links_help.html') diff --git a/apps/grouping/templates/smart_links_help.html b/apps/grouping/templates/smart_links_help.html new file mode 100644 index 0000000000..8a23361a9b --- /dev/null +++ b/apps/grouping/templates/smart_links_help.html @@ -0,0 +1,5 @@ +{% load i18n %} +
+

{% trans "What are smart links?" %}

+

{% blocktrans %}Smart links are a set of conditional statements that are used to query the database using the current document the user is accessing as the data source, the results of these queries are a list of documents that relate in some manner to the document being displayed and allow users the ability to jump to and from linked documents very easily.{% endblocktrans %}

+