rosa-build/app/views/groups/profile/index.html.haml

23 lines
908 B
Plaintext

-set_meta_tags title: t('layout.groups.list_header')
.row.top-space
.col-md-8.col-md-offset-2
%rd-widget
%rd-widget-header{title: t('layout.groups.list_header')}
= link_to t("layout.groups.new"), new_group_path, class: "btn btn-primary pull-right"
%rd-widget-body{class: "no-padding"}
%table.table.table-condensed
%thead
%tr
%th= t 'layout.groups.group'
%th= t 'layout.groups.description'
%th= t 'layout.groups.leave_group'
%tbody
- @groups.each do |group|
%tr
%td= link_to group.name, group_path(group)
%td= group.description
%td
- if group.owner_id != current_user.id
= link_to remove_user_group_path(group), method: :delete do
%span.fa.fa-lg.fa-times.text-danger