summaryrefslogtreecommitdiffstats
path: root/app/views/groups
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-10 08:42:26 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-10 08:42:26 +0000
commitad478329606a7202d0e81ca99361ebf25ee28ade (patch)
tree7270834fff73a1cf73b4e663e09721f72f2bc060 /app/views/groups
parente5b2be3b3dcbd4126ab7f68c00750b277a67cbfd (diff)
downloadredmine-ad478329606a7202d0e81ca99361ebf25ee28ade.tar.gz
redmine-ad478329606a7202d0e81ca99361ebf25ee28ade.zip
code layout clean up app/views/groups/_memberships.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8609 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/groups')
-rw-r--r--app/views/groups/_memberships.html.erb22
1 files changed, 17 insertions, 5 deletions
diff --git a/app/views/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erb
index 73a156faa..9346e1021 100644
--- a/app/views/groups/_memberships.html.erb
+++ b/app/views/groups/_memberships.html.erb
@@ -22,14 +22,26 @@
<label><%= check_box_tag 'membership[role_ids][]', role.id, membership.roles.include?(role) %> <%=h role %></label><br />
<% end %></p>
<p><%= submit_tag l(:button_change) %>
- <%= link_to_function l(:button_cancel), "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;" %></p>
+ <%= link_to_function(
+ l(:button_cancel),
+ "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;"
+ ) %></p>
<% end %>
</td>
<td class="buttons">
- <%= link_to_function l(:button_edit), "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %>
- <%= link_to_remote l(:button_delete), { :url => { :controller => 'groups', :action => 'destroy_membership', :id => @group, :membership_id => membership },
- :method => :post },
- :class => 'icon icon-del' %>
+ <%= link_to_function(
+ l(:button_edit),
+ "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;",
+ :class => 'icon icon-edit'
+ ) %>
+ <%= link_to_remote(
+ l(:button_delete),
+ { :url => { :controller => 'groups',
+ :action => 'destroy_membership',
+ :id => @group,
+ :membership_id => membership },
+ :method => :post },
+ :class => 'icon icon-del' ) %>
</td>
</tr>
<% end; reset_cycle %>