don't display connect to services unless services are configured on that pod

This commit is contained in:
Ilyaaaaaaaaaaaaa Zhitomirskiy 2011-07-27 00:11:24 -07:00
parent 73f9627338
commit 7b572bf40b

View file

@ -75,16 +75,17 @@
= t('.cubbies.explanation') = t('.cubbies.explanation')
= link_to t('.cubbies.learn_more'), token_path = link_to t('.cubbies.learn_more'), token_path
.section - unless AppConfig.configured_services.blank?
.title .section
= image_tag('/images/icons/monotone_wrench_settings.png') .title
%h5 = image_tag('/images/icons/monotone_wrench_settings.png')
= t('.services.heading') %h5
.content = t('.services.heading')
= t('.services.content') .content
- AppConfig.configured_services.each do |service| = t('.services.content')
- unless current_user.services.any?{|x| x.provider == service} - AppConfig.configured_services.each do |service|
%br= link_to service.titleize, "/auth/#{service}" - unless current_user.services.any?{|x| x.provider == service}
%br= link_to service.titleize, "/auth/#{service}"
.section .section
.title .title