2015-05-13 15:02:19 -07:00
|
|
|
- provide(:title, generate_title("Service Settings"))
|
2014-12-12 12:54:17 -08:00
|
|
|
.container.j2-page
|
|
|
|
= render 'user/settings_tabs'
|
2015-08-28 07:29:02 -07:00
|
|
|
.col-md-9.col-xs-12.col-sm-8
|
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
|
2015-06-07 07:24:41 -07:00
|
|
|
= t 'views.settings.service.enabled'
|
2014-12-12 12:54:17 -08:00
|
|
|
- else
|
2015-06-07 07:24:41 -07:00
|
|
|
= t 'views.settings.service.none'
|
2014-12-12 12:54:17 -08:00
|
|
|
|
|
|
|
- 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-06-07 07:24:41 -07:00
|
|
|
%p=link_to t('views.settings.service.connect', service: service.capitalize), "/auth/#{service}"
|
2015-01-13 09:59:58 -08:00
|
|
|
|
2015-01-13 10:06:26 -08: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})
|
2015-06-07 07:24:41 -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
|