Show More
@@ -1,97 +1,95 | |||
|
1 | 1 | <h3>${_('Parent')}</h3> |
|
2 | 2 | ${h.form(url('edit_repo_advanced_fork', repo_name=c.repo_info.repo_name), method='put')} |
|
3 | 3 | <div class="form"> |
|
4 | <div class="fields"> | |
|
5 | 4 | ${h.select('id_fork_of','',c.repos_list,class_="medium")} |
|
6 | 5 | ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small")} |
|
7 | </div> | |
|
8 | 6 | <div class="field" style="border:none;color:#888"> |
|
9 | 7 | <ul> |
|
10 | 8 | <li>${_('''Manually set this repository as a fork of another from the list.''')}</li> |
|
11 | 9 | </ul> |
|
12 | 10 | </div> |
|
13 | 11 | </div> |
|
14 | 12 | ${h.end_form()} |
|
15 | 13 | |
|
16 | 14 | <script> |
|
17 | 15 | $(document).ready(function(){ |
|
18 | 16 | $("#id_fork_of").select2({ |
|
19 | 17 | 'dropdownAutoWidth': true |
|
20 | 18 | }); |
|
21 | 19 | }) |
|
22 | 20 | </script> |
|
23 | 21 | |
|
24 | 22 | <h3>${_('Public Journal Visibility')}</h3> |
|
25 | 23 | ${h.form(url('edit_repo_advanced_journal', repo_name=c.repo_info.repo_name), method='put')} |
|
26 | 24 | <div class="form"> |
|
27 | 25 | ${h.hidden('auth_token',str(h.get_token()))} |
|
28 | 26 | <div class="field"> |
|
29 | 27 | %if c.in_public_journal: |
|
30 | 28 | <button class="btn btn-small" type="submit"> |
|
31 | 29 | <i class="icon-minus"></i> |
|
32 | 30 | ${_('Remove from public journal')} |
|
33 | 31 | </button> |
|
34 | 32 | %else: |
|
35 | 33 | <button class="btn btn-small" type="submit"> |
|
36 | 34 | <i class="icon-plus"></i> |
|
37 | 35 | ${_('Add to Public Journal')} |
|
38 | 36 | </button> |
|
39 | 37 | %endif |
|
40 | 38 | </div> |
|
41 | 39 | <div class="field" style="border:none;color:#888"> |
|
42 | 40 | <ul> |
|
43 | 41 | <li>${_('All actions done in this repository will be visible to everyone in the public journal.')}</li> |
|
44 | 42 | </ul> |
|
45 | 43 | </div> |
|
46 | 44 | </div> |
|
47 | 45 | ${h.end_form()} |
|
48 | 46 | |
|
49 | 47 | <h3>${_('Change Locking')}</h3> |
|
50 | 48 | ${h.form(url('edit_repo_advanced_locking', repo_name=c.repo_info.repo_name), method='put')} |
|
51 | 49 | <div class="form"> |
|
52 | <div class="fields"> | |
|
53 | 50 | %if c.repo_info.locked[0]: |
|
54 | 51 | ${h.hidden('set_unlock', '1')} |
|
55 | 52 | <button class="btn btn-small" type="submit" |
|
56 | 53 | onclick="return confirm('${_('Confirm to unlock repository.')}');"> |
|
57 | 54 | <i class="icon-unlock"></i> |
|
58 | 55 | ${_('Unlock Repository')} |
|
59 | 56 | </button> |
|
60 | 57 | ${'Locked by %s on %s' % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} |
|
61 | 58 | %else: |
|
62 | 59 | ${h.hidden('set_lock', '1')} |
|
63 | 60 | <button class="btn btn-small" type="submit" |
|
64 | 61 | onclick="return confirm('${_('Confirm to lock repository.')}');"> |
|
65 | 62 | <i class="icon-lock"></i> |
|
66 | 63 | ${_('Lock Repository')} |
|
67 | 64 | </button> |
|
68 | 65 | ${_('Repository is not locked')} |
|
69 | 66 | %endif |
|
70 | </div> | |
|
71 | 67 | <div class="field" style="border:none;color:#888"> |
|
72 | 68 | <ul> |
|
73 | 69 | <li>${_('Force locking on the repository. Works only when anonymous access is disabled. Triggering a pull locks the repository. The user who is pulling locks the repository; only the user who pulled and locked it can unlock it by doing a push.')} |
|
74 | 70 | </li> |
|
75 | 71 | </ul> |
|
76 | 72 | </div> |
|
77 | 73 | </div> |
|
78 | 74 | ${h.end_form()} |
|
79 | 75 | |
|
80 | 76 | <h3>${_('Delete')}</h3> |
|
81 | 77 | ${h.form(url('repo', repo_name=c.repo_name),method='delete')} |
|
78 | <div class="form"> | |
|
82 | 79 | <button class="btn btn-small btn-danger" type="submit" |
|
83 | 80 | onclick="return confirm('${_('Confirm to delete this repository: %s') % c.repo_name}');"> |
|
84 | 81 | <i class="icon-remove-sign"></i> |
|
85 | 82 | ${_('Delete this Repository')} |
|
86 | 83 | </button> |
|
87 | 84 | %if c.repo_info.forks.count(): |
|
88 | 85 | ${ungettext('This repository has %s fork', 'This repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()} |
|
89 | 86 | <input type="radio" name="forks" value="detach_forks" checked="checked"/> <label for="forks">${_('Detach forks')}</label> |
|
90 | 87 | <input type="radio" name="forks" value="delete_forks" /> <label for="forks">${_('Delete forks')}</label> |
|
91 | 88 | %endif |
|
92 | 89 | <div class="field" style="border:none;color:#888"> |
|
93 | 90 | <ul> |
|
94 | 91 | <li>${_('The deleted repository will be moved away and hidden until the administrator expires it. The administrator can both permanently delete it or restore it.')}</li> |
|
95 | 92 | </ul> |
|
96 | 93 | </div> |
|
94 | </div> | |
|
97 | 95 | ${h.end_form()} |
General Comments 0
You need to be logged in to leave comments.
Login now