Mercurial > kallithea
changeset 6311:19f15cde2cdb
repositories: drop the word "dashboard" - it is just a list of repositories and groups
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 10 Nov 2016 16:10:41 +0100 |
parents | be204b0afed4 |
children | 51415ff90b08 |
files | kallithea/controllers/admin/settings.py kallithea/lib/base.py kallithea/lib/db_manage.py kallithea/model/forms.py kallithea/templates/admin/repo_groups/repo_group_show.html kallithea/templates/admin/settings/settings_visual.html kallithea/templates/index.html |
diffstat | 7 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/controllers/admin/settings.py Thu Nov 10 16:10:41 2016 +0100 +++ b/kallithea/controllers/admin/settings.py Thu Nov 10 16:10:41 2016 +0100 @@ -260,7 +260,7 @@ ('show_private_icon', 'show_private_icon', 'bool'), ('stylify_metatags', 'stylify_metatags', 'bool'), ('repository_fields', 'repository_fields', 'bool'), - ('dashboard_items', 'dashboard_items', 'int'), + ('dashboard_items', 'page_size', 'int'), ('admin_grid_items', 'admin_grid_items', 'int'), ('show_version', 'show_version', 'bool'), ('use_gravatar', 'use_gravatar', 'bool'),
--- a/kallithea/lib/base.py Thu Nov 10 16:10:41 2016 +0100 +++ b/kallithea/lib/base.py Thu Nov 10 16:10:41 2016 +0100 @@ -319,7 +319,7 @@ c.visual.show_public_icon = str2bool(rc_config.get('show_public_icon')) c.visual.show_private_icon = str2bool(rc_config.get('show_private_icon')) c.visual.stylify_metatags = str2bool(rc_config.get('stylify_metatags')) - c.visual.dashboard_items = safe_int(rc_config.get('dashboard_items', 100)) + c.visual.page_size = safe_int(rc_config.get('dashboard_items', 100)) c.visual.admin_grid_items = safe_int(rc_config.get('admin_grid_items', 100)) c.visual.repository_fields = str2bool(rc_config.get('repository_fields')) c.visual.show_version = str2bool(rc_config.get('show_version'))
--- a/kallithea/lib/db_manage.py Thu Nov 10 16:10:41 2016 +0100 +++ b/kallithea/lib/db_manage.py Thu Nov 10 16:10:41 2016 +0100 @@ -442,7 +442,7 @@ ('show_public_icon', True, 'bool'), ('show_private_icon', True, 'bool'), ('stylify_metatags', False, 'bool'), - ('dashboard_items', 100, 'int'), + ('dashboard_items', 100, 'int'), # TODO: call it page_size ('admin_grid_items', 25, 'int'), ('show_version', True, 'bool'), ('use_gravatar', True, 'bool'),
--- a/kallithea/model/forms.py Thu Nov 10 16:10:41 2016 +0100 +++ b/kallithea/model/forms.py Thu Nov 10 16:10:41 2016 +0100 @@ -358,7 +358,7 @@ repository_fields = v.StringBoolean(if_missing=False) lightweight_journal = v.StringBoolean(if_missing=False) - dashboard_items = v.Int(min=5, not_empty=True) + page_size = v.Int(min=5, not_empty=True) admin_grid_items = v.Int(min=5, not_empty=True) show_version = v.StringBoolean(if_missing=False) use_gravatar = v.StringBoolean(if_missing=False)
--- a/kallithea/templates/admin/repo_groups/repo_group_show.html Thu Nov 10 16:10:41 2016 +0100 +++ b/kallithea/templates/admin/repo_groups/repo_group_show.html Thu Nov 10 16:10:41 2016 +0100 @@ -1,7 +1,7 @@ ## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%block name="title"> - ${_('%s Repository group dashboard') % c.group.group_name} + ${_('Repository group %s') % c.group.group_name} </%block> <%def name="breadcrumbs()">
--- a/kallithea/templates/admin/settings/settings_visual.html Thu Nov 10 16:10:41 2016 +0100 +++ b/kallithea/templates/admin/settings/settings_visual.html Thu Nov 10 16:10:41 2016 +0100 @@ -50,15 +50,15 @@ </div> <div class="form-group"> - <label class="control-label" for="dashboard_items">${_('Dashboard items')}:</label> + <label class="control-label" for="page_size">${_('Repository page size')}:</label> <div class="input"> - ${h.text('dashboard_items',size=5)} - <span class="help-block">${_('Number of items displayed in the main page dashboard before pagination is shown.')}</span> + ${h.text('page_size',size=5)} + <span class="help-block">${_('Number of items displayed in the repository pages before pagination is shown.')}</span> </div> </div> <div class="form-group"> - <label class="control-label" for="admin_grid_items">${_('Admin pages items')}:</label> + <label class="control-label" for="admin_grid_items">${_('Admin page size')}:</label> <div class="input"> ${h.text('admin_grid_items',size=5)} <span class="help-block">${_('Number of items displayed in the admin pages grids before pagination is shown.')}</span>