Add Pagy gem, config, styles

This commit is contained in:
Râu Cao
2023-03-01 17:08:24 +08:00
parent 7cff849d79
commit 3aad27c7bd
7 changed files with 302 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
module ApplicationHelper
include Pagy::Frontend
def sats_to_btc(sats)
sats.to_f / 100000000
end
@@ -16,6 +18,4 @@ module ApplicationHelper
def badge(text, color)
tag.span text, class: "inline-flex items-center rounded-full bg-#{color}-100 px-2.5 py-0.5 text-xs font-medium text-#{color}-800"
end
end