Retrospring/app/views/services/index.html.haml

25 lines
1.1 KiB
Plaintext

- provide(:title, generate_title("Service Settings"))
.container.j2-page
= render 'user/settings_tabs'
.col-md-9.col-xs-12.col-sm-8
= render 'layouts/messages'
.panel.panel-default
.panel-body
- if @services.count > 0
= t 'views.settings.service.enabled'
- else
= t 'views.settings.service.none'
- APP_CONFIG['sharing'].each do |service, service_options|
- if service_options['enabled'] and !@services.any? { |x| x.provider == service.to_s }
%p=link_to t('views.settings.service.connect', service: service.capitalize), "/auth/#{service}"
- if @services.count > 0
%ul.list-group
- @services.each do |service|
%li.list-group-item
%i{class: "fa fa-#{service.provider}"}
%strong= service.provider.capitalize
(#{service.nickname})
= link_to t('views.settings.service.disconnect'), service_path(service), data: { confirm: t('views.settings.service.confirm', service: service.provider.capitalize) }, method: :delete