Browse Source

Indent subgroups on group listing page

merge-requests/85/head
deing 5 years ago
committed by Deimos
parent
commit
eb03fdf940
  1. 6
      tildes/scss/modules/_group.scss
  2. 2
      tildes/tildes/templates/groups.jinja2

6
tildes/scss/modules/_group.scss

@ -14,6 +14,12 @@
.group-subscription-count { .group-subscription-count {
margin-bottom: 0.2rem; margin-bottom: 0.2rem;
} }
@for $indent-level from 1 through 4 {
tr.group-level-#{$indent-level} td:first-child {
padding-left: #{$indent-level}rem;
}
}
} }
.group-list-description { .group-list-description {

2
tildes/tildes/templates/groups.jinja2

@ -22,7 +22,7 @@
</thead> </thead>
<tbody> <tbody>
{% for group in groups %} {% for group in groups %}
<tr>
<tr class="group-level-{{ group.path|length - 1 }}">
<td> <td>
{{ group_linked(group.path) }} {{ group_linked(group.path) }}
{% if group.short_description %} {% if group.short_description %}

Loading…
Cancel
Save