Feature #36376 » 0002-Separate-delete-link-and-edit-link-columns.patch
| app/views/projects/settings/_members.html.erb | ||
|---|---|---|
|
<tr>
|
||
|
<th><%= l(:label_user) %> / <%= l(:label_group) %></th>
|
||
|
<th><%= l(:label_role_plural) %></th>
|
||
|
<th style="width:15%"></th>
|
||
|
<th class="fit-content-width"></th>
|
||
|
<th class="fit-content-width"></th>
|
||
|
<%= call_hook(:view_projects_settings_members_table_header, :project => @project) %>
|
||
|
</tr>
|
||
|
</thead>
|
||
| ... | ... | |
|
<span id="member-<%= member.id %>-roles"><%= member.roles.sort.collect(&:to_s).join(', ') %></span>
|
||
|
<div id="member-<%= member.id %>-form"></div>
|
||
|
</td>
|
||
|
<td class="buttons">
|
||
|
<td class="buttons edit-button">
|
||
|
<%= link_to l(:button_edit),
|
||
|
edit_membership_path(member),
|
||
|
:remote => true,
|
||
|
:class => 'icon icon-edit' %>
|
||
|
</td>
|
||
|
<td class="buttons delete-button">
|
||
|
<%= delete_link membership_path(member),
|
||
|
:remote => true,
|
||
|
: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 | ||
|---|---|---|
|
table.files tr.file td.digest { font-size: 80%; }
|
||
|
table.members td.roles, table.memberships td.roles { width: 45%; }
|
||
|
table.members th.fit-content-width { width: 1px; white-space: nowrap; }
|
||
|
table.messages td.last_message {text-align:left;}
|
||
|
tr.message { height: 2.6em; }
|
||