aboutsummaryrefslogtreecommitdiff
path: root/src/cashflow/frontend/navigation.clj
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2026-02-22 15:25:50 +0100
committerTim <contact@bytim.eu>2026-02-22 15:25:50 +0100
commitf279e20468fb5323c33cbf43346c35ddef7f96e0 (patch)
treec488ee2791296917367f704524fa8e41a0b518ea /src/cashflow/frontend/navigation.clj
Initial commit
Diffstat (limited to 'src/cashflow/frontend/navigation.clj')
-rw-r--r--src/cashflow/frontend/navigation.clj13
1 files changed, 13 insertions, 0 deletions
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"]]])
+