${h.secure_form(h.url('admin_settings_visual'), method='post')}

${_('General')}

${h.checkbox('rhodecode_repository_fields','True')}
${_('Allows storing additional customized fields per repository.')}
${h.checkbox('rhodecode_show_version','True')}
${_('Shows or hides a version number of RhodeCode displayed in the footer.')}

${_('Gravatars')}

${h.checkbox('rhodecode_use_gravatar','True')}
${_('Use gravatar.com as avatar system for RhodeCode accounts. If this is disabled avatars are generated based on initials and email.')}
${h.text('rhodecode_gravatar_url', size='100%')}
${_('''Gravatar url allows you to use other avatar server application. Following variables of the URL will be replaced accordingly. {scheme} 'http' or 'https' sent from running RhodeCode server, {email} user email, {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 RhodeCode server''')}

${_('Meta-Tagging')}

${h.checkbox('rhodecode_stylify_metatags','True')}
${_('Parses meta tags from repository or repository group description fields and turns them into colored tags.')}
<%namespace name="dt" file="/data_table/_dt_elements.mako"/> ${dt.metatags_help()}

${_('Dashboard Items')}

${h.text('rhodecode_dashboard_items',size=5)}
${_('Number of items displayed in the main page dashboard before pagination is shown.')}
${h.text('rhodecode_admin_grid_items',size=5)}
${_('Number of items displayed in the admin pages grids before pagination is shown.')}

${_('Commit ID Style')}

${h.text('rhodecode_show_sha_length',size=5)}
${_('''Number of chars to show in commit sha displayed in web interface. By default it's shown as r123:9043a6a4c226 this value defines the length of the sha after the `r123:` part.''')}
${h.checkbox('rhodecode_show_revision_number','True')}
${_('''Show revision number in commit sha displayed in web interface. By default it's shown as r123:9043a6a4c226 this value defines the if the `r123:` part is shown.''')}

${_('Icons')}

${h.checkbox('rhodecode_show_public_icon','True')}
${h.checkbox('rhodecode_show_private_icon','True')}
${_('Show public/private icons next to repositories names.')}

${_('Markup Renderer')}

${h.select('rhodecode_markup_renderer', '', ['rst', 'markdown'])}
${_('Default renderer used to render comments, pull request descriptions and other description elements. After change old entries will still work correctly.')}

${_('Clone URL')}

${h.text('rhodecode_clone_uri_tmpl', size=60)}
${_('''Schema of clone url construction eg. '{scheme}://{user}@{netloc}/{repo}', available vars: {scheme} 'http' or 'https' sent from running RhodeCode server, {user} current user username, {netloc} network location/server host of running RhodeCode server, {repo} full repository name, {repoid} ID of repository, can be used to contruct clone-by-id''')}

${_('Custom Support Link')}

${h.text('rhodecode_support_url', size=60)}
${_('''Custom url for the support link located at the bottom. The default is set to %(default_url)s. In case there's a need to change the support link to internal issue tracker, it should be done here. ''') % {'default_url': h.url('rhodecode_support')}}
${h.submit('save',_('Save settings'),class_="btn")} ${h.reset('reset',_('Reset'),class_="btn")}
${h.end_form()}