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

26 lines
1.1 KiB
Plaintext
Raw Normal View History

- provide(:title, generate_title("Service Settings"))
2014-12-12 12:54:17 -08:00
.container.j2-page
2020-04-19 14:09:41 -07:00
.row
= render 'user/settings_tabs'
.col-md-9.col-xs-12.col-sm-8
= render 'layouts/messages'
2020-04-19 14:31:24 -07:00
.card
2020-04-19 14:09:41 -07:00
.card-body
- if @services.count > 0
= t 'views.settings.service.enabled'
- else
= t 'views.settings.service.none'
2014-12-12 12:54:17 -08:00
2020-04-19 14:09:41 -07:00
- 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}"
2015-01-13 09:59:58 -08:00
2020-04-19 14:09:41 -07:00
- 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