Milestone 2.

This commit is contained in:
2025-08-18 21:40:41 +02:00
parent 1646d7b827
commit e283e9f696
13 changed files with 615 additions and 107 deletions

View File

@@ -22,20 +22,15 @@
{% endif %}
</div>
<div class="mt-4">
<h2 class="text-lg font-medium mb-2">Body (raw Markdown)</h2>
<pre class="p-4 bg-base-200 rounded overflow-x-auto whitespace-pre-wrap">{{ note.body }}</pre>
</div>
{% if unresolved_wikilinks and unresolved_wikilinks|length > 0 %}
<div class="mt-4 alert alert-warning">
<span>{{ unresolved_wikilinks|length }} unresolved link{{ 's' if unresolved_wikilinks|length != 1 else '' }}.</span>
</div>
{% endif %}
<div class="mt-6">
<h3 class="font-medium mb-2">Quick edit</h3>
<form method="post" action="{{ url_for('notes.notes_update_body', note_id=note.id) }}">
<textarea name="body" rows="10" class="textarea textarea-bordered w-full">{{ note.body }}</textarea>
<div class="mt-2">
<button class="btn btn-primary btn-sm" type="submit">Save</button>
</div>
</form>
</div>
<article class="prose max-w-none mt-6">
{{ rendered_html|safe }}
</article>
<div class="mt-6 opacity-70 text-sm">
<div>File: <code class="kbd kbd-sm">{{ note.rel_path }}</code></div>