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. 13
      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;
}
}

13
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>
<p class="empty-subtitle">Did you mean one of these groups instead?</p>
<ul class="empty-list">
{% for group in group_suggestions %} {% for group in group_suggestions %}
{{ group_linked(group) }}
<br>
<li>{{ group_linked(group) }}</li>
{% endfor %} {% endfor %}
</p>
</ul>
{% endif %} {% endif %}
<br><br>
<div class="empty-action">
<a href="/groups" class="btn btn-primary">Browse the list of groups</a> <a href="/groups" class="btn btn-primary">Browse the list of groups</a>
</div>
</div> </div>
{% endblock %} {% endblock %}
Loading…
Cancel
Save