diff options
author | Matt Arnold | 2025-04-15 09:58:58 -0400 |
---|---|---|
committer | Matt Arnold | 2025-04-15 09:58:58 -0400 |
commit | e8880e73a23571acf47845b1e38292239c5d71b2 (patch) | |
tree | 0f12139f68f7dd99646d257bc3519744ba5b2f2e /templates | |
parent | dc557895b1bd517bbdc2821a79f2be12624010d6 (diff) |
finally got different profiles/faccets to work.
Unsure if it was just the typo in the template or we really needed backend changes but belt and suspenders logic applies
Diffstat (limited to 'templates')
-rw-r--r-- | templates/create.html | 5 | ||||
-rw-r--r-- | templates/post.html | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/templates/create.html b/templates/create.html index ccbbc67..8c4ee84 100644 --- a/templates/create.html +++ b/templates/create.html @@ -10,7 +10,6 @@ <h1>Write to yourself </h1> - <div class="tab"> <button type="button" class="tablinks" id="defaultOpen" onclick="openTab(event, 'input-area')">Editor</button> <button type="button" class="tablinks" onclick="openTab(event, 'document-rendered')">Preview</button> @@ -18,7 +17,11 @@ <!-- Textarea for Markdown input --> <div id="input-area" class="tabcontent"> <form method="post" novalidate> + {{ form.hidden_tag() }} + <label for="faccets"> {{form.faccets.label}} </label> + {{form.faccets|safe}} + <p> {{form.title.label}}: {{form.title}} <br> {{ form.content.label }}<br> diff --git a/templates/post.html b/templates/post.html index eef4c93..4d37ed9 100644 --- a/templates/post.html +++ b/templates/post.html @@ -24,11 +24,14 @@ <a href="{{url_for('post', post_id=post.parent)}}"> Previous</a> <hr> {% endif %} +<h2>{{ post.title }}</h2> +<p>{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}</p> + <div class="container"> - <h2>{{ post.title }}</h2> - <p>{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}</p> - <p> Authour: <a href="{{url_for('details', light=post.authour.name)}}"> {{post.authour.name}} </a></p> - <div>{{ post.content|markdown|safe }}</div> + <div class="userbox"> + <p> Authour: <a href="{{url_for('details', light=post.authour.name)}}"> {{post.authour.name}} </a></p> + </div> + <div class="post-content">{{ post.content|markdown|safe }}</div> </div> <div class="post-actions"> <a href="{{ url_for('create', reply=post.id)}}"> Reply</a> ~ |