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