Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorIlyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com>2011-07-27 11:11:24 +0400
committerIlyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com>2011-07-27 11:11:24 +0400
commit7b572bf40b27995df146ab251f79faf714fe3d14 (patch)
treec41c81bc299800876b2ce329e1d1335942af3630 /app
parent73f96273385e1f0cb325ce27c506de021af3547e (diff)
don't display connect to services unless services are configured on that pod
Diffstat (limited to 'app')
-rw-r--r--app/views/aspects/index.html.haml21
1 files changed, 11 insertions, 10 deletions
diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml
index 067c26a77..3d5ee3b2c 100644
--- a/app/views/aspects/index.html.haml
+++ b/app/views/aspects/index.html.haml
@@ -75,16 +75,17 @@
= t('.cubbies.explanation')
= link_to t('.cubbies.learn_more'), token_path
- .section
- .title
- = image_tag('/images/icons/monotone_wrench_settings.png')
- %h5
- = t('.services.heading')
- .content
- = t('.services.content')
- - AppConfig.configured_services.each do |service|
- - unless current_user.services.any?{|x| x.provider == service}
- %br= link_to service.titleize, "/auth/#{service}"
+ - unless AppConfig.configured_services.blank?
+ .section
+ .title
+ = image_tag('/images/icons/monotone_wrench_settings.png')
+ %h5
+ = t('.services.heading')
+ .content
+ = t('.services.content')
+ - AppConfig.configured_services.each do |service|
+ - unless current_user.services.any?{|x| x.provider == service}
+ %br= link_to service.titleize, "/auth/#{service}"
.section
.title