format balance
This commit is contained in:
parent
f05c25e405
commit
ec2174171d
|
@ -44,7 +44,7 @@ class User < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def debt
|
def balance
|
||||||
@balance || begin
|
@balance || begin
|
||||||
headers = {
|
headers = {
|
||||||
"Authorization" => "Token token=#{Rails.application.secrets.tab_api_key}",
|
"Authorization" => "Token token=#{Rails.application.secrets.tab_api_key}",
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
%li= link_to "Edit avatar", edit_user_path(current_user)
|
%li= link_to "Edit avatar", edit_user_path(current_user)
|
||||||
%li
|
%li
|
||||||
%p.navbar-text
|
%p.navbar-text
|
||||||
Debt: #{euro(current_user.debt)}
|
Balance: #{euro_from_cents(current_user.balance)}
|
||||||
.visible-xs.navbar-form
|
.visible-xs.navbar-form
|
||||||
.form-group
|
.form-group
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
|
|
Loading…
Reference in a new issue