Tweak/fix the list template in the admin UI

This commit is contained in:
Thomas Sileo 2019-10-28 22:38:29 +01:00
parent e611d61739
commit 7c4e6732c9
2 changed files with 10 additions and 2 deletions

View file

@ -581,7 +581,11 @@ def admin_list(name: str) -> _Response:
return htmlify( return htmlify(
render_template( render_template(
tpl, inbox_data=inbox_data, older_than=older_than, newer_than=newer_than tpl,
inbox_data=inbox_data,
older_than=older_than,
newer_than=newer_than,
list_name=name,
) )
) )

View file

@ -1,10 +1,14 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% import 'utils.html' as utils %} {% import 'utils.html' as utils %}
{% block title %}{% if request.path == url_for('admin.admin_stream') %}Stream{% elif actor_id %}Profile {{ actor.name }}{% else %}Notifications{% endif %} - {{ config.NAME }}{% endblock %} {% block title %}{% if request.path == url_for('admin.admin_stream') %}Stream{% elif actor_id %}Profile {{ actor.name }}{% elif list_name %}List {{ list_name }}{% else %}Notifications{% endif %} - {{ config.NAME }}{% endblock %}
{% block content %} {% block content %}
<div class="h-feed" id="container"> <div class="h-feed" id="container">
<div id="admin"> <div id="admin">
{% if list_name %}
<h3>{{ list_name }}</h3>
{% endif %}
{% if request.path == url_for('admin.admin_notifications') and unread_notifications_count %} {% if request.path == url_for('admin.admin_notifications') and unread_notifications_count %}
<div style="clear:both;padding-bottom:60px;"> <div style="clear:both;padding-bottom:60px;">
<form action="/api/mark_notifications_as_read" method="POST"> <form action="/api/mark_notifications_as_read" method="POST">