Milestone 2.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<title>{% block title %}PKM{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/app.css') }}" />
|
||||
<!-- Optional: highlight.js for code blocks -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css" integrity="sha512-XJ7Xo4x2XQHkYHqJ8Zg0t8zqOud0a5Cwq3kP2CF0K6Qq6z8w1K9u8Cuo7J8iW0h6Sbp2eC4O8X1cK9w3v8g4WQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<script defer src="{{ url_for('static', filename='js/app.js') }}"></script>
|
||||
</head>
|
||||
<body class="min-h-screen bg-base-200">
|
||||
@@ -31,5 +33,11 @@
|
||||
<p>PKM — Flask + Tailwind + DaisyUI</p>
|
||||
</aside>
|
||||
</footer>
|
||||
|
||||
<!-- highlight.js script (after content) -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js" integrity="sha512-yc6f6QkBqKPNgRr2DscxL8s4nq8kqJxU3K6Q0dZQ9+KNCm+q9bQz7vZ+2b+fS2bQ4pQ9v5g2nV1cQmcvj2Wm+Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script>
|
||||
try { window.hljs && window.hljs.highlightAll(); } catch (e) {}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user