format balance

This commit is contained in:
benji 2015-09-21 12:48:30 +02:00
parent f05c25e405
commit ec2174171d
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ class User < ActiveRecord::Base
end
end
def debt
def balance
@balance || begin
headers = {
"Authorization" => "Token token=#{Rails.application.secrets.tab_api_key}",

View file

@ -42,7 +42,7 @@
%li= link_to "Edit avatar", edit_user_path(current_user)
%li
%p.navbar-text
Debt: #{euro(current_user.debt)}
Balance: #{euro_from_cents(current_user.balance)}
.visible-xs.navbar-form
.form-group
- if user_signed_in?