aboutsummaryrefslogtreecommitdiff
path: root/src/cashflow/frontend/navigation.clj
diff options
context:
space:
mode:
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"]]])
+