changeset 1907:7324a1d71443

simplify and standardize headings and page titles on user and admin pages
author Roger Haase <crosseyedpenguin@yahoo.com>
date Sun, 06 Jan 2013 12:42:47 -0700
parents ef3c90f9cc3c
children 1e84ca15b018
files MoinMoin/apps/admin/templates/admin/index.html MoinMoin/apps/admin/templates/admin/sysitems_upgrade.html MoinMoin/apps/admin/templates/admin/userbrowser.html MoinMoin/apps/admin/templates/admin/wikiconfig.html MoinMoin/apps/admin/templates/admin/wikiconfighelp.html MoinMoin/apps/admin/templates/user/highlighterhelp.html MoinMoin/apps/admin/templates/user/index_user.html MoinMoin/apps/admin/templates/user/interwikihelp.html MoinMoin/apps/admin/templates/user/itemsize.html MoinMoin/apps/admin/views.py MoinMoin/config/default.py MoinMoin/themes/__init__.py
diffstat 12 files changed, 33 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/admin/templates/admin/index.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/admin/index.html	Sun Jan 06 12:42:47 2013 -0700
@@ -2,9 +2,9 @@
 {% block content %}
 <h1>{{ _("Admin Menu") }}</h1>
 <ul>
-    <li><a href="{{ url_for('admin.userbrowser') }}">{{ _("User Browser") }}</a></li>
-    <li><a href="{{ url_for('admin.sysitems_upgrade') }}">{{ _("Upgrade system items") }}</a></li>
+    <li><a href="{{ url_for('admin.userbrowser') }}">{{ _("Users") }}</a></li>
+    <li><a href="{{ url_for('admin.sysitems_upgrade') }}">{{ _("Upgrade System Items") }}</a></li>
     <li><a href="{{ url_for('admin.wikiconfig') }}">{{ _("Show Wiki Configuration") }}</a></li>
-    <li><a href="{{ url_for('admin.wikiconfighelp') }}">{{ _("Show Wiki Configuration Help") }}</a></li>
+    <li><a href="{{ url_for('admin.wikiconfighelp') }}">{{ _("Wiki Configuration Help") }}</a></li>
 </ul>
 {% endblock %}
--- a/MoinMoin/apps/admin/templates/admin/sysitems_upgrade.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/admin/sysitems_upgrade.html	Sun Jan 06 12:42:47 2013 -0700
@@ -1,6 +1,6 @@
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("System items upgrade") }}</h1>
+<h1>{{ _("Upgrade System Items") }}</h1>
 <p>
 {{ _("You can upgrade your system items by uploading an xml file with new items below.") }}
 </p>
--- a/MoinMoin/apps/admin/templates/admin/userbrowser.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/admin/userbrowser.html	Sun Jan 06 12:42:47 2013 -0700
@@ -1,5 +1,6 @@
 {% extends theme("layout.html") %}
 {% block content %}
+    <h1>{{ _("Users") }}</h1>
     <table class="zebra">
     <tr>
         <th>{{ _("User name") }}</th>
--- a/MoinMoin/apps/admin/templates/admin/wikiconfig.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/admin/wikiconfig.html	Sun Jan 06 12:42:47 2013 -0700
@@ -1,6 +1,6 @@
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Wiki configuration") }}</h1>
+<h1>{{ _("Show Wiki Configuration") }}</h1>
 <p>
 {{ _("This table shows all settings in this wiki that do not have default values. "
      "Settings that the configuration system doesn't know about are shown in italic, "
@@ -11,7 +11,7 @@
 <table class="zebra">
 <thead>
 <tr>
-<th>{{ _('Variable name') }}</th>
+<th>{{ _('Variable Name') }}</th>
 <th>{{ _('Setting') }}</th>
 </tr>
 </thead>
--- a/MoinMoin/apps/admin/templates/admin/wikiconfighelp.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/admin/wikiconfighelp.html	Sun Jan 06 12:42:47 2013 -0700
@@ -1,6 +1,6 @@
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("WikiConfig Help") }}</h1>
+<h1>{{ _("Wiki Configuration Help") }}</h1>
 {% for heading, desc, opts in groups %}
     <h2>{{ heading }}</h2>
     {% if desc %}
@@ -9,7 +9,7 @@
     <table class="zebra">
     <thead>
     <tr>
-        <th>{{ _('Variable name') }}</th>
+        <th>{{ _('Variable Name') }}</th>
         <th>{{ _('Default') }}</th>
         <th>{{ _('Description') }}</th>
     </tr>
--- a/MoinMoin/apps/admin/templates/user/highlighterhelp.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/user/highlighterhelp.html	Sun Jan 06 12:42:47 2013 -0700
@@ -1,6 +1,6 @@
 {% import "utils.html" as utils %}
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Available Highlighters") }}</h1>
+<h1>{{ _("Highlighters") }}</h1>
 {{ utils.table(headings, rows) }}
 {% endblock %}
--- a/MoinMoin/apps/admin/templates/user/index_user.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/user/index_user.html	Sun Jan 06 12:42:47 2013 -0700
@@ -9,8 +9,8 @@
     <li><a href="{{ url_for('frontend.mychanges') }}">{{ _("My Changes") }}</a></li>
     <li><a href="{{ url_for('frontend.wanted_items') }}">{{ _("Wanted Items") }}</a></li>
     <li><a href="{{ url_for('frontend.orphaned_items') }}">{{ _("Orphaned Items") }}</a></li>
-    <li><a href="{{ url_for('admin.itemsize') }}">{{ _("Item sizes (latest revision)") }}</a></li>
-    <li><a href="{{ url_for('admin.interwikihelp') }}">{{ _("Known InterWiki names") }}</a></li>
-    <li><a href="{{ url_for('admin.highlighterhelp') }}">{{ _("Available Highlighters") }}</a></li>
+    <li><a href="{{ url_for('admin.itemsize') }}">{{ _("Item Sizes (last revision)") }}</a></li>
+    <li><a href="{{ url_for('admin.interwikihelp') }}">{{ _("InterWiki Names") }}</a></li>
+    <li><a href="{{ url_for('admin.highlighterhelp') }}">{{ _("Highlighters") }}</a></li>
 </ul>
 {% endblock %}
--- a/MoinMoin/apps/admin/templates/user/interwikihelp.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/user/interwikihelp.html	Sun Jan 06 12:42:47 2013 -0700
@@ -1,6 +1,6 @@
 {% import "utils.html" as utils %}
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Known InterWiki names") }}</h1>
+<h1>{{ _("InterWiki Names") }}</h1>
 {{ utils.table(headings, rows, url_cols=[2]) }}
 {% endblock %}
--- a/MoinMoin/apps/admin/templates/user/itemsize.html	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/templates/user/itemsize.html	Sun Jan 06 12:42:47 2013 -0700
@@ -1,6 +1,6 @@
 {% import "utils.html" as utils %}
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Item sizes (latest revision)") }}</h1>
+<h1>{{ _("Item Sizes (last revision)") }}</h1>
 {{ utils.table(headings, rows, itemname_cols=[2]) }}
 {% endblock %}
--- a/MoinMoin/apps/admin/views.py	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/apps/admin/views.py	Sun Jan 06 12:42:47 2013 -0700
@@ -50,7 +50,7 @@
                           groups=[groupname for groupname in groups if rev.meta[NAME] in groups[groupname]],
                      )
                      for rev in revs]
-    return render_template('admin/userbrowser.html', user_accounts=user_accounts, title_name=_(u"User Browser"))
+    return render_template('admin/userbrowser.html', user_accounts=user_accounts, title_name=_(u"Users"))
 
 
 @admin.route('/userprofile/<user_name>', methods=['GET', 'POST', ])
@@ -161,7 +161,7 @@
 
     found.sort()
     return render_template('admin/wikiconfig.html',
-                           title_name=_(u"Wiki Configuration"),
+                           title_name=_(u"Show Wiki Configuration"),
                            found=found, settings=settings)
 
 
@@ -207,7 +207,7 @@
     rows = sorted([[desc, ' '.join(names), ' '.join(patterns), ' '.join(mimetypes), ]
                    for desc, names, patterns, mimetypes in lexers])
     return render_template('user/highlighterhelp.html',
-                           title_name=_(u"Highlighter Help"),
+                           title_name=_(u"Highlighters"),
                            headings=headings,
                            rows=rows)
 
@@ -220,7 +220,7 @@
                ]
     rows = sorted(app.cfg.interwiki_map.items())
     return render_template('user/interwikihelp.html',
-                           title_name=_(u"Interwiki Help"),
+                           title_name=_(u"Interwiki Names"),
                            headings=headings,
                            rows=rows)
 
@@ -235,6 +235,6 @@
             for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)]
     rows = sorted(rows, reverse=True)
     return render_template('user/itemsize.html',
-                           title_name=_(u"Item Size"),
+                           title_name=_(u"Item Sizes"),
                            headings=headings,
                            rows=rows)
--- a/MoinMoin/config/default.py	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/config/default.py	Sun Jan 06 12:42:47 2013 -0700
@@ -289,7 +289,7 @@
 #
 options_no_group_name = {
   # ==========================================================================
-  'datastruct': ('Datastruct settings', None, (
+  'datastruct': ('Datastruct', None, (
     #('dicts', lambda cfg: datastruct.ConfigDicts({}),
     ('dicts', lambda cfg: datastruct.WikiDicts(),
      "function f(cfg) that returns a backend which is used to access dicts definitions."),
@@ -298,7 +298,7 @@
      "function f(cfg) that returns a backend which is used to access groups definitions."),
   )),
   # ==========================================================================
-  'auth': ('Authentication / Authorization / Security settings', None, (
+  'auth': ('Authentication / Authorization / Security', None, (
     ('auth', DefaultExpression('[MoinAuth()]'),
      "list of auth objects, to be called in this order (see HelpOnAuthentication)"),
     ('secrets', None, """Either a long shared secret string used for multiple purposes or a dict {"purpose": "longsecretstring", ...} for setting up different shared secrets for different purposes."""),
@@ -313,7 +313,7 @@
      'checks whether a password is acceptable (default check is length >= 6, at least 4 different chars, no keyboard sequence, not username used somehow (you can switch this off by using `None`)'),
   )),
   # ==========================================================================
-  'spam_leech_dos': ('Anti-Spam/Leech/DOS',
+  'spam_leech_dos': ('Anti-Spam / Leech / DOS',
   'These settings help limiting ressource usage and avoiding abuse.',
   (
     ('textchas', None,
@@ -322,7 +322,7 @@
      "Time [s] for a !TextCha to expire."),
   )),
   # ==========================================================================
-  'style': ('Style / Theme / UI related',
+  'style': ('Style / Theme / UI',
   'These settings control how the wiki user interface will look like.',
   (
     ('sitename', u'Untitled Wiki',
@@ -394,17 +394,17 @@
     ('template_dirs', [], "list of directories with templates that will override theme and base templates."),
   )),
   # ==========================================================================
-  'editor': ('Editor related', None, (
+  'editor': ('Editor', None, (
     ('item_license', u'', 'if set, show the license item within the editor. [Unicode]'),
     #('edit_locking', 'warn 10', "Editor locking policy: `None`, `'warn <timeout in minutes>'`, or `'lock <timeout in minutes>'`"),
     ('edit_ticketing', True, None),
   )),
   # ==========================================================================
-  'paging': ('Paging related', None, (
+  'paging': ('Paging', None, (
     ('results_per_page', 50, "Number of results to be shown on a single page in pagination"),
   )),
   # ==========================================================================
-  'data': ('Data storage', None, (
+  'data': ('Data Storage', None, (
     ('data_dir', './data/', "Path to the data directory."),
     ('plugin_dirs', [], "Plugin directories."),
 
@@ -422,7 +422,7 @@
     ('destroy_index', False, "Destroy (empty) the index after using it."),
   )),
   # ==========================================================================
-  'items': ('Special item names', None, (
+  'items': ('Special Item Names', None, (
     ('item_root', u'Home', "Name of the root item (aka 'front page'). [Unicode]"),
 
     # the following regexes should match the complete name when used in free text
@@ -435,7 +435,7 @@
      'Item names exactly matching this regex are regarded as items containing group definitions [Unicode]'),
   )),
   # ==========================================================================
-  'user': ('User Preferences related', None, (
+  'user': ('User Preferences', None, (
     ('user_defaults',
       dict(
         name=u'anonymous',
@@ -524,7 +524,7 @@
 #
 #
 options = {
-    'acl': ('Access control lists',
+    'acl': ('Access Control Lists',
     'ACLs control who may do what.',
     (
       ('functions', u'',
@@ -544,7 +544,7 @@
       ('user_homepage', 'User/', 'All user homepages are stored below this namespace.'),
     )),
 
-    'user': ('Users / User settings', None, (
+    'user': ('User', None, (
       ('email_unique', True,
        "if True, check email addresses for uniqueness and don't accept duplicates."),
       ('email_verification', False,
@@ -555,7 +555,7 @@
       ('use_gravatar', False, "if True, gravatar.com will be used to find User's avatar")
     )),
 
-    'mail': ('Mail settings',
+    'mail': ('Mail',
         'These settings control outgoing and incoming email from and to the wiki.',
     (
       ('from', None, "Used as From: address for generated mail. [Unicode]"),
--- a/MoinMoin/themes/__init__.py	Sun Jan 06 07:39:01 2013 -0700
+++ b/MoinMoin/themes/__init__.py	Sun Jan 06 12:42:47 2013 -0700
@@ -54,7 +54,7 @@
 def themed_error(e):
     item_name = request.view_args.get('item_name', u'')
     if e.code == 403:
-        title = L_('Access denied')
+        title = L_('Access Denied')
         description = L_('You are not allowed to access this resource.')
     else:
         # if we have no special code, we just return the HTTPException instance