From fc9d9a4c5595f82f081626df3df99aed8c2cd995 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Thu, 17 Feb 2011 15:58:37 -0500 Subject: [PATCH] make the invite friends dialog more obvious --- app/views/aspects/index.html.haml | 14 ++++++++++---- public/stylesheets/sass/application.sass | 5 +++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 0b15cd10d..64bc11860 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -38,10 +38,16 @@ = new_notification_link(@notification_count) %hr + - if @invites > 0 + .section.invite_friends + %h4= t('shared.invitations.invite_your_friends') + = render "shared/invitations", :invites => @invites + + #aspect_listings.section = render 'aspects/aspect_listings', :aspects => @aspects, :contacts => @contacts - .section - %h4= t('shared.invitations.invite_your_friends') - = render "shared/invitations", :invites => @invites - + - if @invites <= 0 + .section.invite_friends + %h4= t('shared.invitations.invite_your_friends') + = render "shared/invitations", :invites => @invites diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index b3cbcbd8b..31374ec5d 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -2442,3 +2442,8 @@ ul.show_comments .right :right 1em +.invite_friends + :padding 1em + :background + :color #eee + :border 1px solid #ccc