add panel-footer to inbox panel

This commit is contained in:
Andreas N 2015-01-27 18:13:24 +01:00
parent 8ff92dca15
commit ddbff78926
1 changed files with 17 additions and 5 deletions

View File

@ -23,8 +23,20 @@
Answer
%button.btn.btn-danger{name: 'ib-destroy', data: { ib_id: i.id }}
Delete
- current_user.services.each do |service|
%label
%input{type: 'checkbox', name: 'ib-share', checked: :checked, data: { ib_id: i.id, service: service.provider }}
Post to
= service.provider.capitalize
%button.btn.btn-default
Options
.panel-footer
%h4 Sharing
- if @services.count > 0
.row
- current_user.services.each do |service|
.col-md-2.col-sm-4.col-xs-6
%label
%input{type: 'checkbox', name: 'ib-share', checked: :checked, data: { ib_id: i.id, service: service.provider }}
Post to
= service.provider.capitalize
- else
%p
You have not connected any services yet. Visit your
= link_to "service settings", services_path
to connect one.