Adds admin view for individual announcement
This commit is contained in:
23
bookwyrm/templates/settings/announcement.html
Normal file
23
bookwyrm/templates/settings/announcement.html
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends 'settings/admin_layout.html' %}
|
||||
{% load i18n %}
|
||||
{% block title %}{% trans "Announcement" %} - {{ announcement.preview }}{% endblock %}
|
||||
|
||||
{% block header %}{% trans "Announcement" %}{% endblock %}
|
||||
|
||||
{% block edit-button %}
|
||||
{% trans "Edit Announcement" as button_text %}
|
||||
{% include 'snippets/toggle/open_button.html' with controls_text="create-announcement" icon_with_text="plus" text=button_text focus="create-announcement-header" %}
|
||||
</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block panel %}
|
||||
|
||||
<div class="block">
|
||||
{% include 'settings/announcement_form.html' with controls_text="create-announcement" %}
|
||||
</div>
|
||||
|
||||
<div class="block content">
|
||||
{% include 'snippets/announcement.html' with announcement=announcement pressed=True %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -45,5 +45,5 @@
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% include 'snippets/pagination.html' with page=servers path=request.path %}
|
||||
{% include 'snippets/pagination.html' with page=announcements path=request.path %}
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user