aw yeah
This commit is contained in:
parent
23fc3009fe
commit
9168d908dd
|
@ -8,12 +8,12 @@
|
||||||
%ul
|
%ul
|
||||||
- @services.each do |service|
|
- @services.each do |service|
|
||||||
%li
|
%li
|
||||||
%strong= service.provider
|
%strong= service.provider.capitalize
|
||||||
(#{service.nickname})
|
(#{service.nickname})
|
||||||
= link_to 'Disconnect', service_path(service), data: { confirm: "Really disconnect service #{service.provider}?" }, method: :delete
|
= link_to 'Disconnect', service_path(service), data: { confirm: "Really disconnect service #{service.provider.capitalize}?" }, method: :delete
|
||||||
- else
|
- else
|
||||||
You have not connected any services yet.
|
You have not connected any services yet.
|
||||||
|
|
||||||
- APP_CONFIG['sharing'].each do |service, service_options|
|
- APP_CONFIG['sharing'].each do |service, service_options|
|
||||||
- if service_options['enabled']
|
- 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}"
|
Loading…
Reference in New Issue