Files
@ 5d161c096260
Branch filter:
Location: kallithea/kallithea/templates/admin/permissions/permissions_globals.html
5d161c096260
6.3 KiB
text/html
helpers: drop h.tooltip
h.tooltip did more magic in the past - now it just did a douple (or triple?)
escape of html.
c9cfaeb1cdfe removed most of the need for double escaping - and the places
where it is used, it must be 'tagged' with the safe-html-title class. Thus,
none of the remaining uses of h.tooltip are relevant (and might even be wrong);
normal automatic template escaping is just fine.
This is mostly:
sed -i 's,title="\${h.tooltip(\([^}]*\))}",title="${\1}",g' `hg mani`
h.tooltip did more magic in the past - now it just did a douple (or triple?)
escape of html.
c9cfaeb1cdfe removed most of the need for double escaping - and the places
where it is used, it must be 'tagged' with the safe-html-title class. Thus,
none of the remaining uses of h.tooltip are relevant (and might even be wrong);
normal automatic template escaping is just fine.
This is mostly:
sed -i 's,title="\${h.tooltip(\([^}]*\))}",title="${\1}",g' `hg mani`
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | ${h.form(url('admin_permissions'), method='post')}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label label-checkbox">
<label for="anonymous">${_('Anonymous access')}:</label>
</div>
<div class="checkboxes">
<div class="checkbox">
${h.checkbox('anonymous',True)}
</div>
<span class="help-block">${h.literal(_('Allow access to Kallithea without needing to log in. Anonymous users use %s user permissions.' % (h.link_to('*default*',h.url('admin_permissions_perms')))))}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="default_repo_perm">${_('Repository')}:</label>
</div>
<div class="select">
${h.select('default_repo_perm','',c.repo_perms_choices)}
${h.checkbox('overwrite_default_repo','true')}
<label for="overwrite_default_repo">
<span class="tooltip"
title="${_('All default permissions on each repository will be reset to chosen permission, note that all custom default permission on repositories will be lost')}">
${_('Apply to all existing repositories')}</span> </label>
<span class="help-block">${_('Permissions for the Default user on new repositories.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="default_group_perm">${_('Repository group')}:</label>
</div>
<div class="select">
${h.select('default_group_perm','',c.group_perms_choices)}
${h.checkbox('overwrite_default_group','true')}
<label for="overwrite_default_group">
<span class="tooltip"
title="${_('All default permissions on each repository group will be reset to chosen permission, note that all custom default permission on repository groups will be lost')}">
${_('Apply to all existing repository groups')}</span> </label>
<span class="help-block">${_('Permissions for the Default user on new repository groups.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="default_group_perm">${_('User group')}:</label>
</div>
<div class="select">
${h.select('default_user_group_perm','',c.user_group_perms_choices)}
${h.checkbox('overwrite_default_user_group','true')}
<label for="overwrite_default_user_group">
<span class="tooltip"
title="${_('All default permissions on each user group will be reset to chosen permission, note that all custom default permission on user groups will be lost')}">
${_('Apply to all existing user groups')}</span></label>
<span class="help-block">${_('Permissions for the Default user on new user groups.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="default_repo_create">${_('Top level repository creation')}:</label>
</div>
<div class="select">
${h.select('default_repo_create','',c.repo_create_choices)}
<span class="help-block">${_('Enable this to allow non-admins to create repositories at the top level.')}</span>
<span class="help-block">${_('Note: This will also give all users API access to create repositories everywhere. That might change in future versions.')}</span>
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="create_on_write">${_('Repository creation with group write access')}:</label>
</div>
<div class="select">
${h.select('create_on_write','',c.repo_create_on_write_choices)}
<span class="help-block">${_('With this, write permission to a repository group allows creating repositories inside that group. Without this, group write permissions mean nothing.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="default_user_group_create">${_('User group creation')}:</label>
</div>
<div class="select">
${h.select('default_user_group_create','',c.user_group_create_choices)}
<span class="help-block">${_('Enable this to allow non-admins to create user groups.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="default_fork">${_('Repository forking')}:</label>
</div>
<div class="select">
${h.select('default_fork','',c.fork_choices)}
<span class="help-block">${_('Enable this to allow non-admins to fork repositories.')}</span>
</div>
</div>
<div class="field">
<div class="label">
<label for="default_register">${_('Registration')}:</label>
</div>
<div class="select">
${h.select('default_register','',c.register_choices)}
</div>
</div>
<div class="field">
<div class="label">
<label for="default_extern_activate">${_('External auth account activation')}:</label>
</div>
<div class="select">
${h.select('default_extern_activate','',c.extern_activate_choices)}
</div>
</div>
<div class="buttons">
${h.submit('save',_('Save'),class_="btn")}
${h.reset('reset',_('Reset'),class_="btn")}
</div>
</div>
</div>
${h.end_form()}
|