format balance
This commit is contained in:
parent
f05c25e405
commit
ec2174171d
2 changed files with 2 additions and 2 deletions
|
@ -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}",
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue