From 9168d908dde9aaf0d5e05a0bdc4d1cec34927218 Mon Sep 17 00:00:00 2001 From: nilsding Date: Fri, 12 Dec 2014 22:37:52 +0100 Subject: [PATCH] aw yeah --- app/views/services/index.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/services/index.html.haml b/app/views/services/index.html.haml index 66cf366e..74969555 100644 --- a/app/views/services/index.html.haml +++ b/app/views/services/index.html.haml @@ -8,12 +8,12 @@ %ul - @services.each do |service| %li - %strong= service.provider + %strong= service.provider.capitalize (#{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 You have not connected any services yet. - 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}" \ No newline at end of file