Skip to content

Commit

Permalink
style messages
Browse files Browse the repository at this point in the history
  • Loading branch information
luto committed Nov 23, 2024
1 parent d52fc87 commit 53a7274
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/crowdprinter/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{% include "crowdprinter/head.html" %}
<div class="content">
{% if messages %}
<ul class="messages">
<div class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
<div data-alert class="callout {% if message.tags %}{{ message.tags }}{% endif %}">
{{ message }}
</div>
{% endfor %}
</ul>
</div>
{% endif %}
{% block content %}{% endblock %}
</div>
8 changes: 5 additions & 3 deletions src/crowdprinter/templates/base_eh19.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{% include "crowdprinter/head.html" %}
<div class="content">
{% if messages %}
<ul class="messages">
<div class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
<div data-alert class="callout {% if message.tags %}{{ message.tags }}{% endif %}">
{{ message }}
</div>
{% endfor %}
</ul>
</div>
{% endif %}
{% block content %}{% endblock %}
</div>
Expand Down

0 comments on commit 53a7274

Please sign in to comment.