##// END OF EJS Templates
permissions: add better helper block about default permissions, and corelation with anonymous access.
bart -
r4222:21ec1451 stable
parent child Browse files
Show More
@@ -593,7 +593,7 b' address {'
593 593 }
594 594
595 595 .help-block-inline {
596 margin: 0;
596 margin: 0 !important;
597 597 }
598 598
599 599 // help block text
@@ -28,7 +28,7 b''
28 28 <div class="sidebar">
29 29 <ul class="nav nav-pills nav-stacked">
30 30 <li class="${h.is_active('settings', c.active)}"><a href="${h.route_path('edit_repo_group', repo_group_name=c.repo_group.group_name)}">${_('Settings')}</a></li>
31 <li class="${h.is_active('permissions', c.active)}"><a href="${h.route_path('edit_repo_group_perms', repo_group_name=c.repo_group.group_name)}">${_('Permissions')}</a></li>
31 <li class="${h.is_active('permissions', c.active)}"><a href="${h.route_path('edit_repo_group_perms', repo_group_name=c.repo_group.group_name)}">${_('Access Permissions')}</a></li>
32 32 <li class="${h.is_active('advanced', c.active)}"><a href="${h.route_path('edit_repo_group_advanced', repo_group_name=c.repo_group.group_name)}">${_('Advanced')}</a></li>
33 33 <li class="${h.is_active('integrations', c.active)}"><a href="${h.route_path('repo_group_integrations_home', repo_group_name=c.repo_group.group_name)}">${_('Integrations')}</a></li>
34 34 </ul>
@@ -61,7 +61,12 b''
61 61 ${base.gravatar(_user.email, 16, user=_user, tooltip=True)}
62 62 <span class="user">
63 63 % if _user.username == h.DEFAULT_USER:
64 ${h.DEFAULT_USER} <span class="user-perm-help-text"> - ${_('permission for all other users')}</span>
64 ${h.DEFAULT_USER}
65 % if _user.active:
66 <span class="user-perm-help-text"> - ${_('permission for other logged in and anonymous users')}</span>
67 % else:
68 <span class="user-perm-help-text"> - ${_('permission for other logged in users')}</span>
69 % endif
65 70 % else:
66 71 ${h.link_to_user(_user.username)}
67 72 %if getattr(_user, 'duplicate_perm', None):
@@ -104,7 +109,12 b''
104 109 ${base.gravatar(_user.email, 16, user=_user, tooltip=True)}
105 110 <span class="user">
106 111 % if _user.username == h.DEFAULT_USER:
107 ${h.DEFAULT_USER} <span class="user-perm-help-text"> - ${_('permission for all other users')}</span>
112 ${h.DEFAULT_USER}
113 % if _user.active:
114 <span class="user-perm-help-text"> - ${_('permission for other logged in and anonymous users')}</span>
115 % else:
116 <span class="user-perm-help-text"> - ${_('permission for other logged in users')}</span>
117 % endif
108 118 % else:
109 119 ${h.link_to_user(_user.username)}
110 120 %if getattr(_user, 'duplicate_perm', None):
@@ -87,7 +87,12 b''
87 87 ${base.gravatar(_user.email, 16, user=_user, tooltip=True)}
88 88 <span class="user">
89 89 % if _user.username == h.DEFAULT_USER:
90 ${h.DEFAULT_USER} <span class="user-perm-help-text"> - ${_('permission for all other users')}</span>
90 ${h.DEFAULT_USER}
91 % if _user.active:
92 <span class="user-perm-help-text"> - ${_('permission for other logged in and anonymous users')}</span>
93 % else:
94 <span class="user-perm-help-text"> - ${_('permission for other logged in users')}</span>
95 % endif
91 96 % else:
92 97 ${h.link_to_user(_user.username)}
93 98 %if getattr(_user, 'duplicate_perm', None):
@@ -63,7 +63,12 b''
63 63 ${base.gravatar(_user.email, 16, user=_user, tooltip=True)}
64 64 <span class="user">
65 65 % if _user.username == h.DEFAULT_USER:
66 ${h.DEFAULT_USER} <span class="user-perm-help-text"> - ${_('permission for all other users')}</span>
66 ${h.DEFAULT_USER}
67 % if _user.active:
68 <span class="user-perm-help-text"> - ${_('permission for other logged in and anonymous users')}</span>
69 % else:
70 <span class="user-perm-help-text"> - ${_('permission for other logged in users')}</span>
71 % endif
67 72 % else:
68 73 ${h.link_to_user(_user.username)}
69 74 %if getattr(_user, 'duplicate_perm', None):
@@ -106,7 +111,12 b''
106 111 ${base.gravatar(_user.email, 16, user=_user, tooltip=True)}
107 112 <span class="user">
108 113 % if _user.username == h.DEFAULT_USER:
109 ${h.DEFAULT_USER} <span class="user-perm-help-text"> - ${_('permission for all other users')}</span>
114 ${h.DEFAULT_USER}
115 % if _user.active:
116 <span class="user-perm-help-text"> - ${_('permission for other logged in and anonymous users')}</span>
117 % else:
118 <span class="user-perm-help-text"> - ${_('permission for other logged in users')}</span>
119 % endif
110 120 % else:
111 121 ${h.link_to_user(_user.username)}
112 122 %if getattr(_user, 'duplicate_perm', None):
General Comments 0
You need to be logged in to leave comments. Login now