Use icon for content warning

This creates consistency between the compose box and the status display
This commit is contained in:
Mouse Reeve 2021-09-19 09:30:06 -07:00
parent f772210d05
commit 7c23d687b1

View file

@ -67,9 +67,12 @@
{% endif %} {% endif %}
{% if status.content_warning %} {% if status.content_warning %}
<div class="notification pt-2 pb-2 is-clearfix is-warning is-light"> <div class="notification p-2 is-clearfix is-warning is-light">
<p class="is-pulled-left"> <p class="is-pulled-left is-flex">
<strong>{% trans "Content warning:" %}</strong> {% trans "Content warning" as text %}
<span class="icon icon-warning" title="{{ text }}">
<span class="is-sr-only">{{ text }}</span>
</span>
{{ status.content_warning }} {{ status.content_warning }}
</p> </p>