From f279e20468fb5323c33cbf43346c35ddef7f96e0 Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 22 Feb 2026 15:25:50 +0100 Subject: Initial commit --- src/cashflow/frontend/navigation.clj | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/cashflow/frontend/navigation.clj (limited to 'src/cashflow/frontend/navigation.clj') diff --git a/src/cashflow/frontend/navigation.clj b/src/cashflow/frontend/navigation.clj new file mode 100644 index 0000000..4c04bfc --- /dev/null +++ b/src/cashflow/frontend/navigation.clj @@ -0,0 +1,13 @@ +(ns cashflow.frontend.navigation) + +(defn gen [current-page] + [:nav {:class "tabbed"} + [:a {:class (when (= current-page :one-time) "active") + :_ "on click go to url /transactions/one-time/"} + [:i "attach_money"] + [:span "einmalige"]] + [:a {:class (when (= current-page :recurring) "active") + :_ "on click go to url /transactions/recurring/"} + [:i "calendar_month"] + [:span "wiederkehrende"]]]) + -- cgit v1.2.3