# HG changeset patch # User Mads Kiilerich # Date 2016-12-04 22:53:37 # Node ID 9447a8b26da0dd71af313e2848d77c105c95001e # Parent a79e651306e2449c8a5b5dc9e086ee57dfa304ae style: consistently use label markup wrapping around input elements The 'for="..."' markup is error prone. diff --git a/kallithea/templates/admin/auth/auth_settings.html b/kallithea/templates/admin/auth/auth_settings.html --- a/kallithea/templates/admin/auth/auth_settings.html +++ b/kallithea/templates/admin/auth/auth_settings.html @@ -29,18 +29,21 @@
-
${h.text("auth_plugins", class_='form-control')} - ${_('Comma-separated list of plugins; Kallithea will try user authentication in plugin order')} -
${_('Available built-in plugins')}
-
    +
    + ${h.text("auth_plugins", class_='form-control')} + ${_('Comma-separated list of plugins; Kallithea will try user authentication in plugin order')} +
    +
+
+ +
+
    %for plugin_path in c.available_plugins: -
  • -
    - +
  • + ${_('Enabled') if plugin_path in c.enabled_plugins else _('Disabled')} ${plugin_path} -
%endfor diff --git a/kallithea/templates/admin/gists/edit.html b/kallithea/templates/admin/gists/edit.html --- a/kallithea/templates/admin/gists/edit.html +++ b/kallithea/templates/admin/gists/edit.html @@ -52,8 +52,10 @@ id="description" name="description" placeholder="${_('Gist description ...')}">${c.gist.gist_description}
- - ${h.select('lifetime', '0', c.lifetime_options)} + %if c.gist.gist_expires == -1: ${_('Expires')}: ${_('Never')} diff --git a/kallithea/templates/admin/gists/new.html b/kallithea/templates/admin/gists/new.html --- a/kallithea/templates/admin/gists/new.html +++ b/kallithea/templates/admin/gists/new.html @@ -36,8 +36,10 @@ ${h.gravatar_div(c.authuser.email, size=32)}
- - ${h.select('lifetime', '', c.lifetime_options)} +
diff --git a/kallithea/templates/admin/permissions/permissions_globals.html b/kallithea/templates/admin/permissions/permissions_globals.html --- a/kallithea/templates/admin/permissions/permissions_globals.html +++ b/kallithea/templates/admin/permissions/permissions_globals.html @@ -15,11 +15,12 @@ ${h.form(url('admin_permissions'), metho
${h.select('default_repo_perm','',c.repo_perms_choices,class_='form-control')} - ${h.checkbox('overwrite_default_repo','true')} - + ${_('Permissions for the Default user on new repositories.')}
@@ -27,11 +28,12 @@ ${h.form(url('admin_permissions'), metho
${h.select('default_group_perm','',c.group_perms_choices,class_='form-control')} - ${h.checkbox('overwrite_default_group','true')} - + ${_('Permissions for the Default user on new repository groups.')}
@@ -39,11 +41,12 @@ ${h.form(url('admin_permissions'), metho
${h.select('default_user_group_perm','',c.user_group_perms_choices,class_='form-control')} - ${h.checkbox('overwrite_default_user_group','true')} - + ${_('Permissions for the Default user on new user groups.')}
diff --git a/kallithea/templates/admin/repos/repo_edit_advanced.html b/kallithea/templates/admin/repos/repo_edit_advanced.html --- a/kallithea/templates/admin/repos/repo_edit_advanced.html +++ b/kallithea/templates/admin/repos/repo_edit_advanced.html @@ -82,8 +82,14 @@ ${h.form(url('delete_repo', repo_name=c. %if c.repo_info.forks.count(): ${ungettext('This repository has %s fork', 'This repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()} - - + + %endif
    diff --git a/kallithea/templates/admin/settings/settings_mapping.html b/kallithea/templates/admin/settings/settings_mapping.html --- a/kallithea/templates/admin/settings/settings_mapping.html +++ b/kallithea/templates/admin/settings/settings_mapping.html @@ -5,25 +5,33 @@ ${h.form(url('admin_settings_mapping'),
    - ${h.checkbox('destroy',True)} - +
    ${_('Check this option to remove all comments, pull requests and other records related to repositories that no longer exist in the filesystem.')}
    - ${h.checkbox('invalidate',True)} - +
    ${_('Check this to reload data and clear cache keys for all repositories.')}
    - ${h.checkbox('hooks',True)} - +
    ${_("Verify if Kallithea's Git hooks are installed for each repository. Current hooks will be updated to the latest version.")}
    - ${h.checkbox('hooks_overwrite', True)} - +
    ${_("If installing Git hooks, overwrite any existing hooks, even if they do not seem to come from Kallithea. WARNING: This operation will destroy any custom git hooks you may have deployed by hand!")}
    diff --git a/kallithea/templates/admin/settings/settings_search.html b/kallithea/templates/admin/settings/settings_search.html --- a/kallithea/templates/admin/settings/settings_search.html +++ b/kallithea/templates/admin/settings/settings_search.html @@ -6,11 +6,12 @@ ${h.form(url('admin_settings_search'), m
    - ${h.checkbox('full_index',True)} - +
    ${_('This option completely reindexeses all of the repositories for proper fulltext search capabilities.')} -
diff --git a/kallithea/templates/admin/settings/settings_vcs.html b/kallithea/templates/admin/settings/settings_vcs.html --- a/kallithea/templates/admin/settings/settings_vcs.html +++ b/kallithea/templates/admin/settings/settings_vcs.html @@ -5,20 +5,28 @@ ${h.form(url('admin_settings'), method='
- ${h.checkbox('hooks_changegroup_repo_size','True')} - +
- ${h.checkbox('hooks_changegroup_push_logger','True')} - +
- ${h.checkbox('hooks_outgoing_pull_logger','True')} - +
- ${h.checkbox('hooks_changegroup_update','True')} - +
@@ -26,17 +34,23 @@ ${h.form(url('admin_settings'), method='
- ${h.checkbox('extensions_largefiles','True')} - +
- ${h.checkbox('extensions_hgsubversion','True')} - +
${_('Requires hgsubversion library to be installed. Enables cloning of remote Subversion repositories while converting them to Mercurial.')} ##
- ## ${h.checkbox('extensions_hggit','True')} - ## + ## ##
##${_('Requires hg-git library to be installed. Enables cloning of remote Git repositories while converting them to Mercurial.')}
diff --git a/kallithea/templates/admin/settings/settings_visual.html b/kallithea/templates/admin/settings/settings_visual.html --- a/kallithea/templates/admin/settings/settings_visual.html +++ b/kallithea/templates/admin/settings/settings_visual.html @@ -7,23 +7,28 @@ ${h.form(url('admin_settings_visual'), m
- ${h.checkbox('repository_fields','True')} - + + ${_('Allows storing additional customized fields per repository.')}
- ${_('Allows storing additional customized fields per repository.')}
- ${h.checkbox('show_version','True')} - +
${_('Shows or hides a version number of Kallithea displayed in the footer.')}
- ${h.checkbox('use_gravatar','True')} - +
-
-
+
${h.text('gravatar_url', size=80, class_='form-control')} ${_('''Gravatar URL allows you to use another avatar server application. The following variables of the URL will be replaced accordingly. @@ -32,6 +37,7 @@ ${h.form(url('admin_settings_visual'), m {md5email} md5 hash of the user email (like at gravatar.com), {size} size of the image that is expected from the server application, {netloc} network location/server host of running Kallithea server''')} +
@@ -69,12 +75,16 @@ ${h.form(url('admin_settings_visual'), m
- ${h.checkbox('show_public_icon','True')} - +
- ${h.checkbox('show_private_icon','True')} - +
${_('Show public/private icons next to repository names.')}
@@ -85,9 +95,9 @@ ${h.form(url('admin_settings_visual'), m
${h.checkbox('stylify_metatags','True')} -
-
+
+ ${_('Stylify recognised meta tags:')}
  • [featured] featured
  • [stale] stale
  • diff --git a/kallithea/templates/base/base.html b/kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html +++ b/kallithea/templates/base/base.html @@ -372,14 +372,17 @@
    - +
    + +
    ${h.text('username',class_='form-control')}
    -
    - +
    + +
    ${h.password('password',class_='form-control')}
    diff --git a/kallithea/templates/base/perms_summary.html b/kallithea/templates/base/perms_summary.html --- a/kallithea/templates/base/perms_summary.html +++ b/kallithea/templates/base/perms_summary.html @@ -11,10 +11,10 @@ %if section != 'global':
    ${_('Show')}: - ${h.checkbox('perms_filter_none_%s' % section, 'none', 'checked', class_='perm_filter filter_%s' % section, section=section, perm_type='none')} - ${h.checkbox('perms_filter_read_%s' % section, 'read', 'checked', class_='perm_filter filter_%s' % section, section=section, perm_type='read')} - ${h.checkbox('perms_filter_write_%s' % section, 'write', 'checked', class_='perm_filter filter_%s' % section, section=section, perm_type='write')} - ${h.checkbox('perms_filter_admin_%s' % section, 'admin', 'checked', class_='perm_filter filter_%s' % section, section=section, perm_type='admin')} + + + +
    %endif
    diff --git a/kallithea/templates/files/files_add.html b/kallithea/templates/files/files_add.html --- a/kallithea/templates/files/files_add.html +++ b/kallithea/templates/files/files_add.html @@ -50,8 +50,10 @@ ${self.repo_context_bar('files')}
    - - +
    
    diff --git a/kallithea/templates/files/files_browser.html b/kallithea/templates/files/files_browser.html
    --- a/kallithea/templates/files/files_browser.html
    +++ b/kallithea/templates/files/files_browser.html
    @@ -37,8 +37,10 @@
                 ${h.end_form()}
             
    - ${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)} - +
    ${_('Search File List')} diff --git a/kallithea/templates/files/files_edit.html b/kallithea/templates/files/files_edit.html --- a/kallithea/templates/files/files_edit.html +++ b/kallithea/templates/files/files_edit.html @@ -55,8 +55,10 @@ ${self.repo_context_bar('files')} % endif
    - - +
    
                     
    diff --git a/kallithea/templates/login.html b/kallithea/templates/login.html
    --- a/kallithea/templates/login.html
    +++ b/kallithea/templates/login.html
    @@ -39,7 +39,7 @@
                     
    -