##// END OF EJS Templates
helpers: remove deprecated fancy_file_stats that is not used anymore.
helpers: remove deprecated fancy_file_stats that is not used anymore.

File last commit:

r1282:90601d74 default
r1583:73b23dff default
Show More
user_group_edit_advanced.mako
38 lines | 1.5 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / user_groups / user_group_edit_advanced.mako
templating: use .mako as extensions for template files.
r1282 <%namespace name="base" file="/base/base.mako"/>
<%
elems = [
(_('Owner'), lambda:base.gravatar_with_user(c.user_group.user.email), '', ''),
(_('Created on'), h.format_date(c.user_group.created_on), '', '',),
(_('Members'), len(c.group_members_obj),'', [x for x in c.group_members_obj]),
(_('Assigned to repositories'), len(c.group_to_repos),'', [x for x in c.group_to_repos]),
(_('Assigned to repo groups'), len(c.group_to_repo_groups), '', [x for x in c.group_to_repo_groups]),
]
%>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3>
</div>
<div class="panel-body">
${base.dt_info_panel(elems)}
</div>
</div>
<div class="panel panel-danger">
<div class="panel-heading">
<h3 class="panel-title">${_('Delete User Group')}</h3>
</div>
<div class="panel-body">
${h.secure_form(h.url('delete_users_group', user_group_id=c.user_group.users_group_id),method='delete')}
${h.hidden('force', 1)}
<button class="btn btn-small btn-danger" type="submit"
onclick="return confirm('${_('Confirm to delete user group `%(ugroup)s` with all permission assignments') % {'ugroup': c.user_group.users_group_name}}');">
<i class="icon-remove-sign"></i>
${_('Delete This User Group')}
</button>
${h.end_form()}
</div>
</div>