microblog.pub/app/templates/admin_new.html

52 lines
1.9 KiB
HTML
Raw Normal View History

2022-06-22 13:11:22 -05:00
{%- import "utils.html" as utils with context -%}
{% extends "layout.html" %}
2022-07-15 13:01:55 -05:00
{% block head %}
<title>{{ local_actor.display_name }} - New</title>
{% endblock %}
2022-06-22 13:11:22 -05:00
{% block content %}
2022-06-24 04:33:05 -05:00
{% if in_reply_to_object %}
2022-07-09 01:15:33 -05:00
<div class="actor-action">In reply to:</div>
2022-06-24 04:33:05 -05:00
{{ utils.display_object(in_reply_to_object) }}
{% endif %}
2022-07-09 01:15:33 -05:00
<div class="box">
2022-07-03 15:01:47 -05:00
<form class="form" action="{{ request.url_for("admin_actions_new") }}" enctype="multipart/form-data" method="POST">
2022-06-22 13:11:22 -05:00
{{ utils.embed_csrf_token() }}
{{ utils.embed_redirect_url() }}
<p>
<select name="visibility">
{% for (k, v) in visibility_choices %}
<option value="{{ k }}" {% if in_reply_to_object and in_reply_to_object.visibility.name == k %}selected{% endif %}>{{ v }}</option>
{% endfor %}
</select>
</p>
2022-06-27 13:55:44 -05:00
{% for emoji in emojis %}
2022-07-01 12:35:34 -05:00
<span class="ji">{{ emoji | emojify(True) | safe }}</span>
2022-06-27 13:55:44 -05:00
{% endfor %}
{% for emoji in custom_emojis %}
<span class="ji"><img src="{{ emoji.icon.url }}" alt="{{ emoji.name }}" title="{{ emoji.name }}" class="custom-emoji"></span>
{% endfor %}
2022-07-03 15:01:47 -05:00
<textarea name="content" rows="10" cols="50" autofocus="autofocus" designMode="on" placeholder="Hey!" style="font-size:1.2em;width:95%;">{{ content }}</textarea>
2022-06-28 14:10:22 -05:00
<p>
2022-07-03 15:01:47 -05:00
<input type="text" name="content_warning" placeholder="content warning (will mark the post as sensitive)" style="width:95%;">
2022-06-28 14:10:22 -05:00
</p>
<p>
2022-07-03 15:01:47 -05:00
<input type="checkbox" name="is_sensitive" id="is_sensitive"> <label for="is_sensitive">Mark attachment(s) as sensitive</label>
2022-06-28 14:10:22 -05:00
</p>
2022-06-24 04:33:05 -05:00
<input type="hidden" name="in_reply_to" value="{{ request.query_params.in_reply_to }}">
2022-06-26 04:09:43 -05:00
<p>
2022-07-21 15:43:06 -05:00
<input id="files" name="files" type="file" multiple style="width:95%;">
2022-06-26 04:09:43 -05:00
</p>
2022-07-21 15:43:06 -05:00
<div id="alts"></div>
2022-06-26 04:09:43 -05:00
<p>
<input type="submit" value="Publish">
</p>
2022-06-22 13:11:22 -05:00
</form>
2022-07-09 01:15:33 -05:00
</div>
2022-07-18 14:07:36 -05:00
<script src="/static/new.js"></script>
2022-06-22 13:11:22 -05:00
{% endblock %}