From 7d01deb99d06d50b84f1ef1d7fa0a782926ea276 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Wed, 3 Aug 2011 15:41:52 -0700 Subject: [PATCH] don't show connect to cubbies in right bar if user is already connected --- app/views/shared/_right_sections.html.haml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/shared/_right_sections.html.haml b/app/views/shared/_right_sections.html.haml index 6f1641e78..891cb510f 100644 --- a/app/views/shared/_right_sections.html.haml +++ b/app/views/shared/_right_sections.html.haml @@ -3,14 +3,15 @@ -# the COPYRIGHT file. -.section - .title - = image_tag('/images/icons/cubbies.png') - %h5 - = t('aspects.index.cubbies.heading') - .content - = t('aspects.index.cubbies.explanation') - = link_to t('aspects.index.cubbies.learn_more'), token_path +- unless has_connected_cubbies? + .section + .title + = image_tag('/images/icons/cubbies.png') + %h5 + = t('aspects.index.cubbies.heading') + .content + = t('aspects.index.cubbies.explanation') + = link_to t('aspects.index.cubbies.learn_more'), token_path - unless AppConfig.configured_services.blank? .section