<%namespace name="base" file="/base/base.mako"/>

<% source_repo_id = c.repo_group.changeset_cache.get('source_repo_id')

elems = [ (_('Repository Group ID'), c.repo_group.group_id, '', ''), (_('Owner'), lambda:base.gravatar_with_user(c.repo_group.user.email, tooltip=True), '', ''), (_('Created on'), h.format_date(c.repo_group.created_on), '', ''), (_('Updated on'), h.format_date(c.repo_group.updated_on), '', ''), (_('Cached Commit source'), (h.link_to_if(source_repo_id, 'repo_id:{}'.format(source_repo_id), h.route_path('repo_summary', repo_name='_{}'.format(source_repo_id)))), '', ''), (_('Cached Commit id'), c.repo_group.changeset_cache.get('short_id'), '', ''), (_('Cached Commit date'), (c.repo_group.changeset_cache.get('date')), '', ''),

(_('Cached Commit data'), lambda: h.link_to('refresh now', h.current_route_path(request, update_commit_cache=1)), '', ''),

(_('Is Personal Group'), c.repo_group.personal or False, '', ''),

(_('Total repositories'), c.repo_group.repositories_recursive_count, '', ''), (_('Top level repositories'), c.repo_group.repositories.count(), '', c.repo_group.repositories.all()),

(_('Children groups'), c.repo_group.children.count(), '', c.repo_group.children.all()), ] %>

### ${_('Repository Group Advanced: {}').format(c.repo_group.name)}

${base.dt_info_panel(elems)}

### ${_('Delete repository group')}

${h.secure_form(h.route_path('edit_repo_group_advanced_delete', repo_group_name=c.repo_group.group_name), request=request)}

${_ungettext('This repository group includes %s children repository group.', 'This repository group includes %s children repository groups.', c.repo_group.children.count()) % c.repo_group.children.count()} |  |
${_ungettext('This repository group includes %s repository.', 'This repository group includes %s repositories.', c.repo_group.repositories_recursive_count) % c.repo_group.repositories_recursive_count} |  |

${h.end_form()}