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')
= 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