diff options
author | Ilyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com> | 2011-07-27 11:11:24 +0400 |
---|---|---|
committer | Ilyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com> | 2011-07-27 11:11:24 +0400 |
commit | 7b572bf40b27995df146ab251f79faf714fe3d14 (patch) | |
tree | c41c81bc299800876b2ce329e1d1335942af3630 /app | |
parent | 73f96273385e1f0cb325ce27c506de021af3547e (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.haml | 21 |
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 |