From 8f6e4630c353e62367c8879fd1419fbed4b7a2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marian=20Mr=C3=B3zek?= Date: Sat, 12 Nov 2011 10:41:44 +0100 Subject: [PATCH] Fix category in account summary --- app/views/accounts/_sidebar_show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/accounts/_sidebar_show.html.haml b/app/views/accounts/_sidebar_show.html.haml index a8e1dee58b..d62e8c0ac1 100644 --- a/app/views/accounts/_sidebar_show.html.haml +++ b/app/views/accounts/_sidebar_show.html.haml @@ -35,7 +35,7 @@ %dt= lost != 0.0 ? number_to_currency(lost, :precision => 0) : t(:n_a) %tt #{t :lost}: %li - %dt= t(@account.category, :default => :other) + %dt= @account.category ? t(@account.category) : t(:other) %tt #{t :category}: %li %span{:style => "float:right;"}= stars_for(@account)