Added side bar help to convert's file format list, recent document, document type and metadata set and type views

This commit is contained in:
Roberto Rosario
2011-06-19 20:16:46 -04:00
parent d121aae8e7
commit c138623329
10 changed files with 46 additions and 4 deletions
+5 -1
View File
@@ -3,7 +3,8 @@ from django.core.urlresolvers import reverse
from django.conf import settings
from navigation.api import register_links, register_top_menu, \
register_model_list_columns, register_multi_item_links
register_model_list_columns, register_multi_item_links, \
register_sidebar_template
from main.api import register_diagnostic, register_tool
from permissions.api import register_permission, set_namespace_title
from tags.widgets import get_tags_inline_widget_simple
@@ -178,3 +179,6 @@ register_model_list_columns(Document, [
])
register_top_menu('documents', link={'famfam': 'page', 'text': _(u'documents'), 'view': 'document_list_recent'}, children_path_regex=[r'^documents/[^t]', r'^metadata/[^s]', r'comments'], position=0)
register_sidebar_template(['document_list_recent'], 'recent_document_list_help.html')
register_sidebar_template(['document_type_list'], 'document_types_help.html')
@@ -0,0 +1,5 @@
{% load i18n %}
<div class="block notice">
<h4>{% trans "What are document types?" %}</h4>
<p>{% blocktrans %}Document types define a class that represents a broard group of documents, such as: invoices, regulations or manuals. The advantage of using document types are: assigning a list of typical filenames for quick renaming during creation, as well as assigning default metadata types and sets to it.{% endblocktrans %}</p>
</div>
@@ -0,0 +1,5 @@
{% load i18n %}
<div class="block notice">
<h4>{% trans "What are recent documents?" %}</h4>
<p>{% blocktrans %}Here you will find the latest {{ recent_count }} documents you have either created or edited in any way.{% endblocktrans %}</p>
</div>
+5 -1
View File
@@ -53,6 +53,7 @@ from documents.conf.settings import ZOOM_MAX_LEVEL
from documents.conf.settings import ZOOM_MIN_LEVEL
from documents.conf.settings import ROTATION_STEP
from documents.conf.settings import PRINT_SIZE
from documents.conf.settings import RECENT_COUNT
from documents.literals import PERMISSION_DOCUMENT_CREATE, \
PERMISSION_DOCUMENT_PROPERTIES_EDIT, \
@@ -921,7 +922,10 @@ def document_list_recent(request):
return document_list(
request,
object_list=[recent_document.document for recent_document in RecentDocument.objects.filter(user=request.user)],
title=_(u'recent documents')
title=_(u'recent documents'),
extra_context={
'recent_count': RECENT_COUNT
}
)