2014-12-12 12:54:17 -08:00
|
|
|
.container.j2-page
|
|
|
|
= render 'user/settings_tabs'
|
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
2014-12-13 07:03:18 -08:00
|
|
|
= render 'layouts/messages'
|
2014-12-12 12:54:17 -08:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
|
|
|
- if @services.count > 0
|
|
|
|
Sharing is enabled for the following services:
|
2015-01-13 09:59:58 -08:00
|
|
|
%ul.list-group
|
2014-12-12 12:54:17 -08:00
|
|
|
- @services.each do |service|
|
2015-01-13 09:59:58 -08:00
|
|
|
%li.list-group-item
|
2014-12-12 13:37:52 -08:00
|
|
|
%strong= service.provider.capitalize
|
2014-12-12 12:54:17 -08:00
|
|
|
(#{service.nickname})
|
2014-12-12 13:37:52 -08:00
|
|
|
= link_to 'Disconnect', service_path(service), data: { confirm: "Really disconnect service #{service.provider.capitalize}?" }, method: :delete
|
2014-12-12 12:54:17 -08:00
|
|
|
- else
|
|
|
|
You have not connected any services yet.
|
|
|
|
|
|
|
|
- APP_CONFIG['sharing'].each do |service, service_options|
|
2014-12-12 13:37:52 -08:00
|
|
|
- if service_options['enabled'] and !@services.any? { |x| x.provider == service.to_s }
|
2015-01-13 09:59:58 -08:00
|
|
|
%p=link_to "Connect to #{service.capitalize}", "/auth/#{service}"
|
|
|
|
|
|
|
|
/ Show the list-group here, because it perfectly aligns outside a panel-body
|
|
|
|
- if @services.count > 0
|
|
|
|
%ul.list-group
|
|
|
|
- @services.each do |service|
|
|
|
|
%li.list-group-item
|
2015-01-13 10:04:27 -08:00
|
|
|
%i{class: "fa fa-#{service.provider}"}
|
2015-01-13 09:59:58 -08:00
|
|
|
%strong= service.provider.capitalize
|
|
|
|
(#{service.nickname})
|
|
|
|
= link_to 'Disconnect', service_path(service), data: { confirm: "Really disconnect service #{service.provider.capitalize}?" }, method: :delete
|