##// END OF EJS Templates
repos, repo groups, user groups: visually show what user is an owner, and if...
marcink -
r225:48a40e43 default
parent child Browse files
Show More
@@ -269,6 +269,33 b' form.rcform {'
269
269
270 }
270 }
271
271
272 .badged-field {
273 .user-badge {
274 line-height: 25px;
275 padding: 10px 5px;
276 border-radius: @border-radius;
277 border-top: 1px solid @rclightblue;
278 border-left: 1px solid @rclightblue;
279 border-bottom: 1px solid @rclightblue;
280 font-size: 14px;
281 font-style: normal;
282 color: @text-light;
283 display: inline-block;
284 vertical-align: top;
285 cursor: default;
286 margin-right: -2px;
287 }
288 .badge-input-container {
289 display: flex;
290 position: relative;
291 }
292 .user-disabled {
293 text-decoration: line-through;
294 }
295 .badge-input-wrap {
296 display: inline-block;
297 }
298 }
272
299
273 // for situations where we wish to display the form value but not the form input
300 // for situations where we wish to display the form value but not the form input
274 input.input-valuedisplay {
301 input.input-valuedisplay {
@@ -1,4 +1,6 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
3
2 <div class="panel panel-default">
4 <div class="panel panel-default">
3 <div class="panel-heading">
5 <div class="panel-heading">
4 <h3 class="panel-title">${_('Settings for Repository Group: %s') % c.repo_group.name}</h3>
6 <h3 class="panel-title">${_('Settings for Repository Group: %s') % c.repo_group.name}</h3>
@@ -16,15 +18,25 b''
16 ${h.text('group_name',class_='medium')}
18 ${h.text('group_name',class_='medium')}
17 </div>
19 </div>
18 </div>
20 </div>
19 <div class="field">
21
22 <div class="field badged-field">
20 <div class="label">
23 <div class="label">
21 <label for="user">${_('Owner')}:</label>
24 <label for="user">${_('Owner')}:</label>
22 </div>
25 </div>
23 <div class="input">
26 <div class="input">
24 ${h.text('user', class_="medium", autocomplete="off")}
27 <div class="badge-input-container">
25 <span class="help-block">${_('Change Repository Group Owner.')}</span>
28 <div class="user-badge">
29 ${base.gravatar_with_user(c.repo_group.user.email, show_disabled=not c.repo_group.user.active)}
30 </div>
31 <div class="badge-input-wrap">
32 ${h.text('user', class_="medium", autocomplete="off")}
33 </div>
34 </div>
35 <form:error name="user"/>
36 <p class="help-block">${_('Change owner of this repository group.')}</p>
26 </div>
37 </div>
27 </div>
38 </div>
39
28 <div class="field">
40 <div class="field">
29 <div class="label label-textarea">
41 <div class="label label-textarea">
30 <label for="group_description">${_('Description')}:</label>
42 <label for="group_description">${_('Description')}:</label>
@@ -1,3 +1,6 b''
1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
3
1 <div class="panel panel-default">
4 <div class="panel panel-default">
2 <div class="panel-heading">
5 <div class="panel-heading">
3 <h3 class="panel-title">${_('Settings for Repository: %s') % c.repo_info.repo_name}</h3>
6 <h3 class="panel-title">${_('Settings for Repository: %s') % c.repo_info.repo_name}</h3>
@@ -69,15 +72,25 b''
69 <p class="help-block">${_('Default commit for files page, downloads, whoosh and readme')}</p>
72 <p class="help-block">${_('Default commit for files page, downloads, whoosh and readme')}</p>
70 </div>
73 </div>
71 </div>
74 </div>
72 <div class="field">
75
76 <div class="field badged-field">
73 <div class="label">
77 <div class="label">
74 <label for="user">${_('Owner')}:</label>
78 <label for="user">${_('Owner')}:</label>
75 </div>
79 </div>
76 <div class="input">
80 <div class="input">
77 ${h.text('user', class_="medium", autocomplete="off")}
81 <div class="badge-input-container">
78 <p class="help-block">${_('Change owner of this repository.')}</p>
82 <div class="user-badge">
83 ${base.gravatar_with_user(c.repo_info.user.email, show_disabled=not c.repo_info.user.active)}
84 </div>
85 <div class="badge-input-wrap">
86 ${h.text('user', class_="medium", autocomplete="off")}
87 </div>
88 </div>
89 <form:error name="user"/>
90 <p class="help-block">${_('Change owner of this repository.')}</p>
79 </div>
91 </div>
80 </div>
92 </div>
93
81 <div class="field">
94 <div class="field">
82 <div class="label label-textarea">
95 <div class="label label-textarea">
83 <label for="repo_description">${_('Description')}:</label>
96 <label for="repo_description">${_('Description')}:</label>
@@ -1,3 +1,6 b''
1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
3
1 <div class="panel panel-default">
4 <div class="panel panel-default">
2 <div class="panel-heading">
5 <div class="panel-heading">
3 <h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3>
6 <h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3>
@@ -15,15 +18,25 b''
15 ${h.text('users_group_name',class_='medium')}
18 ${h.text('users_group_name',class_='medium')}
16 </div>
19 </div>
17 </div>
20 </div>
18 <div class="field">
21
22 <div class="field badged-field">
19 <div class="label">
23 <div class="label">
20 <label for="user">${_('Owner')}:</label>
24 <label for="user">${_('Owner')}:</label>
21 </div>
25 </div>
22 <div class="input">
26 <div class="input">
23 ${h.text('user', class_="medium", autocomplete="off")}
27 <div class="badge-input-container">
24 <span class="help-block">${_('Change owner of this user group.')}</span>
28 <div class="user-badge">
29 ${base.gravatar_with_user(c.user_group.user.email, show_disabled=not c.user_group.user.active)}
30 </div>
31 <div class="badge-input-wrap">
32 ${h.text('user', class_="medium", autocomplete="off")}
33 </div>
34 </div>
35 <form:error name="user"/>
36 <p class="help-block">${_('Change owner of this user group.')}</p>
25 </div>
37 </div>
26 </div>
38 </div>
39
27 <div class="field">
40 <div class="field">
28 <div class="label label-textarea">
41 <div class="label label-textarea">
29 <label for="user_group_description">${_('Description')}:</label>
42 <label for="user_group_description">${_('Description')}:</label>
General Comments 0
You need to be logged in to leave comments. Login now