##// END OF EJS Templates
settings: fix weird spacing around 'Delete this Repository'
Mads Kiilerich -
r4553:e98aa842 default
parent child Browse files
Show More
@@ -1,10 +1,8 b''
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>
@@ -49,7 +47,6 b''
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"
@@ -67,7 +64,6 b''
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.')}
@@ -79,6 +75,7 b''
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>
@@ -94,4 +91,5 b''
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