Add thread building support.
This commit is contained in:
parent
7ca62bfbb3
commit
e6260faaeb
7 changed files with 145 additions and 27 deletions
|
|
@ -19,11 +19,11 @@
|
|||
</div>
|
||||
</header>
|
||||
<main class="container">
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% with messages = get_flashed_messages(with_categories=True) %}
|
||||
{% if messages %}
|
||||
<div class="flash-messages">
|
||||
{% for message in messages %}
|
||||
<div class="flash">{{ message }}</div>
|
||||
{% for category, message in messages %}
|
||||
<div class="flash {% if category %}flash-{{ category }}{% endif %}">{{ message|safe }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,23 @@
|
|||
{% endif %}
|
||||
|
||||
<form method="post" class="compose-form">
|
||||
{% if latest_status %}
|
||||
<section class="latest-status">
|
||||
<h3>Most recent Mastodon post</h3>
|
||||
<input type="hidden" name="latest_status_id" value="{{ latest_status.id }}">
|
||||
{% if latest_status.created_display %}
|
||||
<p class="date">Posted {{ latest_status.created_display }}</p>
|
||||
{% endif %}
|
||||
<div class="status-content">{{ latest_status.content|safe }}</div>
|
||||
<label class="reply-checkbox">
|
||||
<input type="hidden" name="reply_to_latest" value="0">
|
||||
<input type="checkbox" name="reply_to_latest" value="1" {% if reply_to_latest %}checked{% endif %} {% if not mastodon_ready %}disabled{% endif %}>
|
||||
Reply to this post to continue the thread
|
||||
</label>
|
||||
</section>
|
||||
{% elif latest_status_error %}
|
||||
<div class="warning">{{ latest_status_error }}</div>
|
||||
{% endif %}
|
||||
<div class="asset-list">
|
||||
{% for asset in assets %}
|
||||
<article class="compose-asset" data-asset-id="{{ asset.id }}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue