IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit b4f53f5d authored by Emi Simpson's avatar Emi Simpson
Browse files

Add support for displaying generic error messages

parent 55baa8cf
......@@ -8,7 +8,7 @@ body {
font-family: "Helvetica Neue","Helvetica","Roboto","Arial",sans-serif;
display: grid;
min-height: 100vh;
grid-template-rows: 0fr 0fr auto 0fr;
grid-template-rows: 0fr 0fr 0fr auto 0fr;
}
nav {
......@@ -331,3 +331,15 @@ svg {
max-width: 80%;
}
}
/* Error flashing */
.generic-error {
color: #DA291C;
font-weight: bold;
padding: 10px;
justify-self: center;
display: grid;
grid-template-columns: 30px 1fr;
align-items: center;
}
......@@ -50,7 +50,12 @@
</form>
<a href="{{login[1]}}" {% if selected is sameas "login" %} class='selected'{% endif %}>{{login[0]}}</a>
</nav>
<!-- TODO: Display generic notifications -->
{% call(message) utils.check_for_error("generic", "generic") %}
<div class=generic-error>
{{ utils.show_icon("alert-triangle", "error") }}
<span>{{message}}</span>
</div>
{%- endcall %}
<main>
{% block main %}{% endblock %}
</main>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment