Browse Source

Tweak "group not found" HTML/CSS

merge-requests/32/head
Deimos 6 years ago
parent
commit
7186cfc525
  1. 8
      tildes/scss/modules/_empty.scss
  2. 19
      tildes/tildes/templates/error_group_not_found.jinja2

8
tildes/scss/modules/_empty.scss

@ -2,3 +2,11 @@
background: inherit; background: inherit;
color: inherit; color: inherit;
} }
.empty-list {
list-style-type: none;
li {
max-width: unset;
}
}

19
tildes/tildes/templates/error_group_not_found.jinja2

@ -11,17 +11,16 @@ Group not found
<div class="empty"> <div class="empty">
<h2 class="empty-title">No group named '{{ supplied_name }}'</h2> <h2 class="empty-title">No group named '{{ supplied_name }}'</h2>
{% if group_suggestions %} {% if group_suggestions %}
<p class="empty-subtitle">
Did you mean one of these groups instead?
<br><br>
{% for group in group_suggestions %}
{{ group_linked(group) }}
<br>
{% endfor %}
</p>
<p class="empty-subtitle">Did you mean one of these groups instead?</p>
<ul class="empty-list">
{% for group in group_suggestions %}
<li>{{ group_linked(group) }}</li>
{% endfor %}
</ul>
{% endif %} {% endif %}
<br><br>
<a href="/groups" class="btn btn-primary">Browse the list of groups</a>
<div class="empty-action">
<a href="/groups" class="btn btn-primary">Browse the list of groups</a>
</div>
</div> </div>
{% endblock %} {% endblock %}
Loading…
Cancel
Save