Only show linked accounts if exists.

This commit is contained in:
Martin Edenhofer 2012-04-23 20:49:43 +02:00
parent d91c5a9304
commit 6efab37bfc
2 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@
</div> </div>
<% end %> <% end %>
<% end %> <% end %>
<% if @user['accounts']: %> <% if !_.isEmpty(@user['accounts']): %>
<div class="row"> <div class="row">
<div class="customer-info"> <div class="customer-info">
<strong>Linked Accounts</strong><br/> <strong>Linked Accounts</strong><br/>
@ -30,7 +30,7 @@
</div> </div>
</div> </div>
<% end %> <% end %>
<% if @user['links']: %> <% if !_.isEmpty(@user['links']): %>
<% for link in @user['links']: %> <% for link in @user['links']: %>
<div class="row"> <div class="row">
<div class="customer-info"> <div class="customer-info">

View file

@ -5,7 +5,7 @@
</div> </div>
<% end %> <% end %>
<% end %> <% end %>
<% if @user['accounts']: %> <% if !_.isEmpty(@user['accounts']): %>
<div class="row"> <div class="row">
<div class="customer-info"> <div class="customer-info">
<strong>Linked Accounts</strong><br/> <strong>Linked Accounts</strong><br/>
@ -15,7 +15,7 @@
</div> </div>
</div> </div>
<% end %> <% end %>
<% if @user['links']: %> <% if !_.isEmpty(@user['links']): %>
<% for link in @user['links']: %> <% for link in @user['links']: %>
<div class="row"> <div class="row">
<div class="customer-info"> <div class="customer-info">