= link_to t("layout.groups.new"), new_group_path, :class => "button" %table#myTable.tablesorter.group-list{:cellpadding => "0", :cellspacing => "0"} %thead %tr %th.th1= t("layout.groups.group") %th.th2= t("layout.groups.description") %th= t("layout.groups.leave_group") %tbody - @groups.each do |group| %tr#Row1 %td= link_to group.name, group_path(group) %td.td2= group.description %td.td5 = link_to image_tag('x.png'), '#' unless group.owner_id == current_user.id -#.block -# .secondary-navigation -# %ul.wat-cf -# %li.first.active= link_to t("layout.groups.list"), users_path -# %li= link_to t("layout.groups.new"), new_group_path -# .content -# %h2.title -# = t("layout.groups.list_header") -# .inner -# %table.table -# %tr -# %th.first ID -# %th= t("activerecord.attributes.group.name") -# %th= t("activerecord.attributes.group.owner") -# %th.last   -# - @groups.each do |group| -# %tr{:class => cycle("odd", "even")} -# %td -# = group.id -# %td -# = link_to group.name, group_path(group) -# %td -# = link_to group.owner.name, user_path(group.owner) -# %td.last -# = raw [(link_to t("layout.edit"), edit_group_path(group) if can? :update, group), -# (link_to t("layout.delete"), group_path(group), :method => :delete, :confirm => t("layout.groups.confirm_delete") if can? :destroy, group)].compact.join(' | ') -# .actions-bar.wat-cf -# .actions= will_paginate @groups, :param_name => :group_page -# content_for :sidebar, render('sidebar')