Feature #36376 » 0002-Separate-delete-link-and-edit-link-columns.patch
app/views/projects/settings/_members.html.erb | ||
---|---|---|
11 | 11 |
<tr> |
12 | 12 |
<th><%= l(:label_user) %> / <%= l(:label_group) %></th> |
13 | 13 |
<th><%= l(:label_role_plural) %></th> |
14 |
<th style="width:15%"></th> |
|
14 |
<th class="fit-content-width"></th> |
|
15 |
<th class="fit-content-width"></th> |
|
15 | 16 |
<%= call_hook(:view_projects_settings_members_table_header, :project => @project) %> |
16 | 17 |
</tr> |
17 | 18 |
</thead> |
... | ... | |
24 | 25 |
<span id="member-<%= member.id %>-roles"><%= member.roles.sort.collect(&:to_s).join(', ') %></span> |
25 | 26 |
<div id="member-<%= member.id %>-form"></div> |
26 | 27 |
</td> |
27 |
<td class="buttons"> |
|
28 |
<td class="buttons edit-button">
|
|
28 | 29 |
<%= link_to l(:button_edit), |
29 | 30 |
edit_membership_path(member), |
30 | 31 |
:remote => true, |
31 | 32 |
:class => 'icon icon-edit' %> |
33 |
</td> |
|
34 |
<td class="buttons delete-button"> |
|
32 | 35 |
<%= delete_link membership_path(member), |
33 | 36 |
:remote => true, |
34 | 37 |
:data => {:confirm => (!User.current.admin? && member.include?(User.current) ? l(:text_own_membership_delete_confirmation) : l(:text_are_you_sure))} if member.deletable? %> |
public/stylesheets/application.css | ||
---|---|---|
322 | 322 |
table.files tr.file td.digest { font-size: 80%; } |
323 | 323 | |
324 | 324 |
table.members td.roles, table.memberships td.roles { width: 45%; } |
325 |
table.members th.fit-content-width { width: 1px; white-space: nowrap; } |
|
325 | 326 | |
326 | 327 |
table.messages td.last_message {text-align:left;} |
327 | 328 |
tr.message { height: 2.6em; } |