From 6efab37bfc9cd64a44bf4354392e68430934d337 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 23 Apr 2012 20:49:43 +0200 Subject: [PATCH] Only show linked accounts if exists. --- app/assets/javascripts/app/views/user_info.jst.eco | 4 ++-- app/assets/javascripts/app/views/user_info_small.jst.eco | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/views/user_info.jst.eco b/app/assets/javascripts/app/views/user_info.jst.eco index 1f745adaa..d42f3857e 100644 --- a/app/assets/javascripts/app/views/user_info.jst.eco +++ b/app/assets/javascripts/app/views/user_info.jst.eco @@ -20,7 +20,7 @@ <% end %> <% end %> -<% if @user['accounts']: %> +<% if !_.isEmpty(@user['accounts']): %>
Linked Accounts
@@ -30,7 +30,7 @@
<% end %> -<% if @user['links']: %> +<% if !_.isEmpty(@user['links']): %> <% for link in @user['links']: %>
diff --git a/app/assets/javascripts/app/views/user_info_small.jst.eco b/app/assets/javascripts/app/views/user_info_small.jst.eco index 9826f9a71..ca8a32dc0 100644 --- a/app/assets/javascripts/app/views/user_info_small.jst.eco +++ b/app/assets/javascripts/app/views/user_info_small.jst.eco @@ -5,7 +5,7 @@
<% end %> <% end %> -<% if @user['accounts']: %> +<% if !_.isEmpty(@user['accounts']): %>
Linked Accounts
@@ -15,7 +15,7 @@
<% end %> -<% if @user['links']: %> +<% if !_.isEmpty(@user['links']): %> <% for link in @user['links']: %>