module

Finfry::Web::Helpers

Helpers available inside every template.

Instance methods

account_options(names : Array(String), selected : String | Nil = nil) : String

Account names as <option>s for a select/datalist.

Source
budget_bar(row : BudgetRow) : String

Spent-of-limit as a ruled bar; red once over.

Source
cadence_options(selected : String | Nil = nil) : String
Source
h(value) : String
Source
home(path : String) : String

The ledger path for the sidebar: $HOME shortened, and only the tail if it's still long (the full path is in the title attribute).

Source
money(cents : Int64) : String

An amount cell: monospace, signed, red when negative.

Source
money(cents : Float64) : String
Source
next_month(month : String) : String
Source
prev_month(month : String) : String
Source
reconcilable?(account : String) : Bool

Accounts that have statements to reconcile against.

Source
url(path : String, **query) : String
Source