26 lines
1.3 KiB
HTML
26 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<div class="page-header">
|
|
<h1 class="page-title">Notes<span class="page-count">{{ items|length }}</span></h1>
|
|
<a href="/notes/create" class="btn btn-primary">+ New Note</a>
|
|
</div>
|
|
{% if items %}
|
|
<div class="card">
|
|
{% for item in items %}
|
|
<div class="list-row">
|
|
{% if item.domain_color %}<span class="row-domain-tag" style="background:{{ item.domain_color }}22;color:{{ item.domain_color }}">{{ item.domain_name }}</span>{% endif %}
|
|
<span class="row-title"><a href="/notes/{{ item.id }}">{{ item.title }}</a></span>
|
|
{% if item.project_name %}<span class="row-tag">{{ item.project_name }}</span>{% endif %}
|
|
<span class="row-meta">{{ item.updated_at.strftime('%Y-%m-%d') if item.updated_at else '' }}</span>
|
|
<div class="row-actions">
|
|
<a href="/notes/{{ item.id }}/edit" class="btn btn-ghost btn-xs">Edit</a>
|
|
<form action="/notes/{{ item.id }}/delete" method="post" data-confirm="Delete?" style="display:inline"><button class="btn btn-ghost btn-xs" style="color:var(--red)">Del</button></form>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div class="empty-state"><div class="empty-state-icon">📄</div><div class="empty-state-text">No notes yet</div><a href="/notes/create" class="btn btn-primary">Create Note</a></div>
|
|
{% endif %}
|
|
{% endblock %}
|