2020-04-25 08:04:23 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2020-05-10 01:40:48 -07:00
|
|
|
- if @services.count.positive?
|
2020-04-25 08:04:23 -07:00
|
|
|
= t 'views.settings.service.enabled'
|
|
|
|
- else
|
|
|
|
= t 'views.settings.service.none'
|
|
|
|
|
|
|
|
- APP_CONFIG['sharing'].each do |service, service_options|
|
2020-05-10 01:40:48 -07:00
|
|
|
- if service_options['enabled'] && @services.none? { |x| x.provider == service.to_s }
|
2021-04-25 12:56:37 -07:00
|
|
|
%p= link_to t('views.settings.service.connect', service: service.capitalize), "/auth/#{service}", method: :post
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2020-05-10 01:40:48 -07:00
|
|
|
- if @services.count.positive?
|
2020-04-25 08:04:23 -07:00
|
|
|
%ul.list-group
|
|
|
|
- @services.each do |service|
|
|
|
|
%li.list-group-item
|
2020-05-10 01:40:48 -07:00
|
|
|
%i{ class: "fa fa-#{service.provider}" }
|
2020-04-25 08:04:23 -07:00
|
|
|
%strong= service.provider.capitalize
|
|
|
|
(#{service.nickname})
|
2020-05-10 01:40:48 -07:00
|
|
|
= link_to t('views.settings.service.disconnect'),
|
|
|
|
service_path(service),
|
|
|
|
data: { confirm: t('views.settings.service.confirm', service: service.provider.capitalize) },
|
|
|
|
method: :delete
|