74 lines
3.6 KiB
HTML
74 lines
3.6 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
<meta name="robots" content="noindex">
|
|
<title>{% block title %}Finance{% endblock %} · Finance</title>
|
|
<script>try{var t=localStorage.getItem("theme");if(t==="dark"||t==="light")document.documentElement.dataset.theme=t;}catch(e){}</script>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
<script src="/static/chart.umd.min.js" defer></script>
|
|
<script src="/static/app.js" defer></script>
|
|
</head>
|
|
<body>
|
|
{% include "_icons.svg" %}
|
|
{% set path = request.url.path %}
|
|
{% macro navlink(href, ico, label, active, count=0) -%}
|
|
<a href="{{ href }}" class="nav-link {{ 'active' if active }}">{{ icon(ico) }}<span>{{ label }}</span>{% if count %}<span class="nav-count">{{ count }}</span>{% endif %}</a>
|
|
{%- endmacro %}
|
|
|
|
<div class="layout">
|
|
<nav class="side" aria-label="Main">
|
|
<div class="brand"><span class="logo">{{ icon('wallet') }}</span> Finance</div>
|
|
|
|
<div class="nav-section">Overview</div>
|
|
{{ navlink('/', 'layout-dashboard', 'Dashboard', path == '/') }}
|
|
{{ navlink('/transactions', 'receipt', 'Transactions', path.startswith('/transactions')) }}
|
|
{{ navlink('/recurring', 'repeat', 'Recurring', path.startswith('/recurring'), nav_missed) }}
|
|
|
|
<div class="nav-section">Wealth</div>
|
|
{{ navlink('/investments', 'trending-up', 'Investments', path.startswith('/investments')) }}
|
|
{{ navlink('/gold', 'gem', 'Gold', path.startswith('/gold')) }}
|
|
{{ navlink('/debts', 'handshake', 'Debts', path.startswith('/debts')) }}
|
|
|
|
<div class="nav-section">Data</div>
|
|
{{ navlink('/import', 'upload', 'Import', path.startswith('/import')) }}
|
|
{{ navlink('/settings', 'settings', 'Settings', path.startswith('/settings')) }}
|
|
|
|
<div class="nav-foot">
|
|
<div class="theme-toggle" role="group" aria-label="Theme">
|
|
<button type="button" data-theme-set="auto" title="Follow system">{{ icon('monitor', 'sm') }}</button>
|
|
<button type="button" data-theme-set="light" title="Light">{{ icon('sun', 'sm') }}</button>
|
|
<button type="button" data-theme-set="dark" title="Dark">{{ icon('moon', 'sm') }}</button>
|
|
</div>
|
|
<div class="user-chip">
|
|
<span class="avatar">{{ (user or 'Me')[:1]|upper }}</span>
|
|
<span class="who">{{ user or 'Signed in' }}</span>
|
|
<a href="/outpost.goauthentik.io/sign_out" title="Sign out">{{ icon('log-out', 'sm') }}</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div class="scrim" data-nav-close></div>
|
|
|
|
<div style="min-width:0">
|
|
<header class="topbar">
|
|
<button class="icon-btn" data-nav-toggle aria-label="Menu">{{ icon('menu') }}</button>
|
|
<div class="brand"><span class="logo">{{ icon('wallet', 'sm') }}</span> Finance</div>
|
|
</header>
|
|
<main>
|
|
{% if msg %}<div class="flash">{{ icon('circle-alert') }}<span>{{ msg }}</span></div>{% endif %}
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</div>
|
|
</div>
|
|
|
|
<nav class="tabbar" aria-label="Quick">
|
|
<a href="/" class="{{ 'active' if path == '/' }}">{{ icon('layout-dashboard') }}Home</a>
|
|
<a href="/transactions" class="{{ 'active' if path.startswith('/transactions') }}">{{ icon('receipt') }}Activity</a>
|
|
<a href="/recurring" class="{{ 'active' if path.startswith('/recurring') }}">{{ icon('repeat') }}Recurring{% if nav_missed %}<span class="dot-count"></span>{% endif %}</a>
|
|
<a href="/investments" class="{{ 'active' if path.startswith('/investments') or path.startswith('/gold') }}">{{ icon('trending-up') }}Wealth</a>
|
|
<a href="/debts" class="{{ 'active' if path.startswith('/debts') }}">{{ icon('handshake') }}Debts</a>
|
|
</nav>
|
|
</body>
|
|
</html>
|