mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 04:52:12 +02:00
update sharing settings
This commit is contained in:
parent
65e514c55d
commit
1ed216df25
1 changed files with 13 additions and 3 deletions
|
@ -6,9 +6,9 @@
|
||||||
.panel-body
|
.panel-body
|
||||||
- if @services.count > 0
|
- if @services.count > 0
|
||||||
Sharing is enabled for the following services:
|
Sharing is enabled for the following services:
|
||||||
%ul
|
%ul.list-group
|
||||||
- @services.each do |service|
|
- @services.each do |service|
|
||||||
%li
|
%li.list-group-item
|
||||||
%strong= service.provider.capitalize
|
%strong= service.provider.capitalize
|
||||||
(#{service.nickname})
|
(#{service.nickname})
|
||||||
= link_to 'Disconnect', service_path(service), data: { confirm: "Really disconnect service #{service.provider.capitalize}?" }, method: :delete
|
= link_to 'Disconnect', service_path(service), data: { confirm: "Really disconnect service #{service.provider.capitalize}?" }, method: :delete
|
||||||
|
@ -17,4 +17,14 @@
|
||||||
|
|
||||||
- APP_CONFIG['sharing'].each do |service, service_options|
|
- APP_CONFIG['sharing'].each do |service, service_options|
|
||||||
- if service_options['enabled'] and !@services.any? { |x| x.provider == service.to_s }
|
- if service_options['enabled'] and !@services.any? { |x| x.provider == service.to_s }
|
||||||
%p=link_to "Connect to #{service.capitalize}", "/auth/#{service}"
|
%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
|
||||||
|
%i.fa.fa-#{service.provider}
|
||||||
|
%strong= service.provider.capitalize
|
||||||
|
(#{service.nickname})
|
||||||
|
= link_to 'Disconnect', service_path(service), data: { confirm: "Really disconnect service #{service.provider.capitalize}?" }, method: :delete
|
Loading…
Reference in a new issue