{{ value.title|capfirst }}
+{{ value.title }}
-
diff --git a/mayan/apps/main/templates/main/generic_list.html b/mayan/apps/main/templates/main/generic_list.html
index 2d53a9bdd6..e600033d71 100644
--- a/mayan/apps/main/templates/main/generic_list.html
+++ b/mayan/apps/main/templates/main/generic_list.html
@@ -5,7 +5,7 @@
{% load navigation_tags %}
{% load subtemplates_tags %}
-{% block title %} :: {% blocktrans with title as title %}List of {{ title }}{% endblocktrans %}{% endblock %}
+{% block title %} :: {% include 'main/calculate_form_title.html' %}{% endblock %}
{% block sidebar %}
{% for subtemplate in sidebar_subtemplates_list %}
diff --git a/mayan/apps/main/templates/main/generic_list_horizontal.html b/mayan/apps/main/templates/main/generic_list_horizontal.html
index 4dbd5272f8..4695449a22 100644
--- a/mayan/apps/main/templates/main/generic_list_horizontal.html
+++ b/mayan/apps/main/templates/main/generic_list_horizontal.html
@@ -5,7 +5,7 @@
{% load navigation_tags %}
{% load subtemplates_tags %}
-{% block title %} :: {% blocktrans with title as title %}List of {{ title }}{% endblocktrans %}{% endblock %}
+{% block title %} :: {% blocktrans with title as title %}{{ title }}{% endblocktrans %}{% endblock %}
{% block sidebar %}
{% for subtemplate in sidebar_subtemplates_list %}
diff --git a/mayan/apps/main/templates/main/generic_list_horizontal_subtemplate.html b/mayan/apps/main/templates/main/generic_list_horizontal_subtemplate.html
index 0badea4a53..b2305305a7 100644
--- a/mayan/apps/main/templates/main/generic_list_horizontal_subtemplate.html
+++ b/mayan/apps/main/templates/main/generic_list_horizontal_subtemplate.html
@@ -12,7 +12,7 @@
{% if side_bar %}
- {{ title|capfirst }} + {{ title }}
@@ -21,9 +21,9 @@
{% ifnotequal page_obj.paginator.num_pages 1 %} - {% blocktrans with page_obj.start_index as start and page_obj.end_index as end and page_obj.paginator.object_list|length as total and page_obj.number as page_number and page_obj.paginator.num_pages as total_pages %}List of {{ title }} ({{ start }} - {{ end }} out of {{ total }}) (Page {{ page_number }} of {{ total_pages }}){% endblocktrans %} + {% blocktrans with page_obj.start_index as start and page_obj.end_index as end and page_obj.paginator.object_list|length as total and page_obj.number as page_number and page_obj.paginator.num_pages as total_pages %}{{ title }} ({{ start }} - {{ end }} out of {{ total }}) (Page {{ page_number }} of {{ total_pages }}){% endblocktrans %} {% else %} - {% blocktrans with page_obj.paginator.object_list|length as total %}List of {{ title }} ({{ total }}){% endblocktrans %} + {% blocktrans with page_obj.paginator.object_list|length as total %}{{ title }} ({{ total }}){% endblocktrans %} {% endifnotequal %}
@@ -37,7 +37,7 @@- {{ title|capfirst }} + {{ title }}
@@ -22,9 +22,9 @@
{% ifnotequal page_obj.paginator.num_pages 1 %} - {% blocktrans with page_obj.start_index as start and page_obj.end_index as end and page_obj.paginator.object_list|length as total and page_obj.number as page_number and page_obj.paginator.num_pages as total_pages %}List of {{ title }} ({{ start }} - {{ end }} out of {{ total }}) (Page {{ page_number }} of {{ total_pages }}){% endblocktrans %} + {% blocktrans with page_obj.start_index as start and page_obj.end_index as end and page_obj.paginator.object_list|length as total and page_obj.number as page_number and page_obj.paginator.num_pages as total_pages %}{{ title }} ({{ start }} - {{ end }} out of {{ total }}) (Page {{ page_number }} of {{ total_pages }}){% endblocktrans %} {% else %} - {% blocktrans with page_obj.paginator.object_list|length as total %}List of {{ title }} ({{ total }}){% endblocktrans %} + {% blocktrans with page_obj.paginator.object_list|length as total %}{{ title }} ({{ total }}){% endblocktrans %} {% endifnotequal %}
@@ -40,7 +40,7 @@{{ title|capfirst }}
+{{ title }}
{{ title|capfirst }}
+{{ title }}
{{ value.title|capfirst }}
+{{ value.title }}
-
diff --git a/mayan/apps/navigation/forms.py b/mayan/apps/navigation/forms.py
index 29da77892c..ba3da3b1a5 100644
--- a/mayan/apps/navigation/forms.py
+++ b/mayan/apps/navigation/forms.py
@@ -1,6 +1,5 @@
from django import forms
from django.utils.translation import ugettext as _
-from django.template.defaultfilters import capfirst
class MultiItemForm(forms.Form):
@@ -8,7 +7,7 @@ class MultiItemForm(forms.Form):
actions = kwargs.pop('actions', [])
super(MultiItemForm, self).__init__(*args, **kwargs)
choices = [('', '------')]
- choices.extend([(action[0], capfirst(action[1])) for action in actions])
+ choices.extend([(action[0], action[1]) for action in actions])
self.fields['action'].choices = choices
action = forms.ChoiceField(label=_(u'Multi item action'))
diff --git a/mayan/apps/navigation/templates/generic_link_instance.html b/mayan/apps/navigation/templates/generic_link_instance.html
index 098810ee13..bb66d18751 100644
--- a/mayan/apps/navigation/templates/generic_link_instance.html
+++ b/mayan/apps/navigation/templates/generic_link_instance.html
@@ -3,7 +3,7 @@
{% get_main_setting "DISABLE_ICONS" as disable_icons %}
{% if link.disabled %}
- {% if link.famfam and not disable_icons %}{% endif %}{{ link.text|capfirst }}{% if link.error %} - {{ link.error }}{% endif %}{% if link.active and not hide_active_anchor %}{% endif %}{% if horizontal %}{% if not forloop.last %} | {% endif %}{% endif %}
+ {% if link.famfam and not disable_icons %}{% endif %}{{ link.text }}{% if link.error %} - {{ link.error }}{% endif %}{% if link.active and not hide_active_anchor %}{% endif %}{% if horizontal %}{% if not forloop.last %} | {% endif %}{% endif %}
{% else %}
- {% if link.famfam and not disable_icons %}{% endif %}{{ link.text|capfirst }}{% if link.error %} - {{ link.error }}{% endif %}{% if link.active and not hide_active_anchor %}{% endif %}{% if horizontal %}{% if not forloop.last %} | {% endif %}{% endif %}
+ {% if link.famfam and not disable_icons %}{% endif %}{{ link.text }}{% if link.error %} - {{ link.error }}{% endif %}{% if link.active and not hide_active_anchor %}{% endif %}{% if horizontal %}{% if not forloop.last %} | {% endif %}{% endif %}
{% endif %}
diff --git a/mayan/apps/navigation/widgets.py b/mayan/apps/navigation/widgets.py
index f6e9ac097d..95c8cb98dd 100644
--- a/mayan/apps/navigation/widgets.py
+++ b/mayan/apps/navigation/widgets.py
@@ -6,7 +6,6 @@ from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
from django.template import RequestContext, Variable
-from django.template.defaultfilters import capfirst
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
@@ -44,7 +43,7 @@ def render_widget(request, link):
'url': reverse(link['view']) if 'view' in link else link['url'],
'icon': link.get('icon', 'link_button.png'),
'static_url': settings.STATIC_URL,
- 'string': capfirst(link['text']),
+ 'string': link['text'],
'image_alt': _(u'icon'),
})
else: