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

23 lines
908 B
Plaintext
Raw Normal View History

2014-01-21 04:51:49 +00:00
-set_meta_tags title: t('layout.groups.list_header')
2016-05-22 13:25:00 +01:00
.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