From ddbff78926e329bf1d9b79eaa2fb7cccbc1a51e8 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Tue, 27 Jan 2015 18:13:24 +0100 Subject: [PATCH] add panel-footer to inbox panel --- app/views/inbox/_entry.html.haml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/app/views/inbox/_entry.html.haml b/app/views/inbox/_entry.html.haml index fb65cce2..8acac5fa 100644 --- a/app/views/inbox/_entry.html.haml +++ b/app/views/inbox/_entry.html.haml @@ -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 \ No newline at end of file + %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. \ No newline at end of file