##// END OF EJS Templates
repo-groups: add personal flag indicator in advanced view.
marcink -
r1101:c48a80c6 default
parent child Browse files
Show More
@@ -1,63 +1,64 b''
1 <%namespace name="base" file="/base/base.html"/>
1 <%namespace name="base" file="/base/base.html"/>
2
2
3 <%
3 <%
4 elems = [
4 elems = [
5 (_('Owner'), lambda:base.gravatar_with_user(c.repo_group.user.email), '', ''),
5 (_('Owner'), lambda:base.gravatar_with_user(c.repo_group.user.email), '', ''),
6 (_('Created on'), h.format_date(c.repo_group.created_on), '', ''),
6 (_('Created on'), h.format_date(c.repo_group.created_on), '', ''),
7 (_('Is Personal Group'), c.repo_group.personal or False, '', ''),
7
8
8 (_('Total repositories'), c.repo_group.repositories_recursive_count, '', ''),
9 (_('Total repositories'), c.repo_group.repositories_recursive_count, '', ''),
9 (_('Top level repositories'), c.repo_group.repositories.count(), '', c.repo_group.repositories.all()),
10 (_('Top level repositories'), c.repo_group.repositories.count(), '', c.repo_group.repositories.all()),
10
11
11 (_('Children groups'), c.repo_group.children.count(), '', c.repo_group.children.all()),
12 (_('Children groups'), c.repo_group.children.count(), '', c.repo_group.children.all()),
12 ]
13 ]
13 %>
14 %>
14
15
15 <div class="panel panel-default">
16 <div class="panel panel-default">
16 <div class="panel-heading">
17 <div class="panel-heading">
17 <h3 class="panel-title">${_('Repository Group: %s') % c.repo_group.group_name}</h3>
18 <h3 class="panel-title">${_('Repository Group: %s') % c.repo_group.group_name}</h3>
18 </div>
19 </div>
19 <div class="panel-body">
20 <div class="panel-body">
20 ${base.dt_info_panel(elems)}
21 ${base.dt_info_panel(elems)}
21 </div>
22 </div>
22
23
23 </div>
24 </div>
24
25
25 <div class="panel panel-danger">
26 <div class="panel panel-danger">
26 <div class="panel-heading">
27 <div class="panel-heading">
27 <h3 class="panel-title">${_('Delete repository group')}</h3>
28 <h3 class="panel-title">${_('Delete repository group')}</h3>
28 </div>
29 </div>
29 <div class="panel-body">
30 <div class="panel-body">
30 ${h.secure_form(h.url('delete_repo_group', group_name=c.repo_group.group_name),method='delete')}
31 ${h.secure_form(h.url('delete_repo_group', group_name=c.repo_group.group_name),method='delete')}
31 <table class="display">
32 <table class="display">
32
33
33 <tr>
34 <tr>
34 <td>
35 <td>
35 ${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()}
36 ${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()}
36 </td>
37 </td>
37 <td>
38 <td>
38 </td>
39 </td>
39 <td>
40 <td>
40 </td>
41 </td>
41 </tr>
42 </tr>
42 <tr>
43 <tr>
43 <td>
44 <td>
44 ${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}
45 ${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}
45 </td>
46 </td>
46 <td>
47 <td>
47 </td>
48 </td>
48 <td>
49 <td>
49 </td>
50 </td>
50 </tr>
51 </tr>
51
52
52 </table>
53 </table>
53 <div style="margin: 0 0 20px 0" class="fake-space"></div>
54 <div style="margin: 0 0 20px 0" class="fake-space"></div>
54
55
55 <button class="btn btn-small btn-danger" type="submit"
56 <button class="btn btn-small btn-danger" type="submit"
56 onclick="return confirm('${_('Confirm to delete this group: %s') % (c.repo_group.group_name)}');">
57 onclick="return confirm('${_('Confirm to delete this group: %s') % (c.repo_group.group_name)}');">
57 ${_('Delete this repository group')}
58 ${_('Delete this repository group')}
58 </button>
59 </button>
59 ${h.end_form()}
60 ${h.end_form()}
60 </div>
61 </div>
61 </div>
62 </div>
62
63
63
64
General Comments 0
You need to be logged in to leave comments. Login now