From e704b88fd2eafb39fe3dec22fe8de8a5b5419ccb Mon Sep 17 00:00:00 2001 From: deing Date: Fri, 6 Sep 2019 16:34:50 +0200 Subject: [PATCH 1/3] Indent subgroups on group listing (fixes #381) --- tildes/scss/modules/_group.scss | 6 ++++++ tildes/tildes/templates/groups.jinja2 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tildes/scss/modules/_group.scss b/tildes/scss/modules/_group.scss index cea0e25..2765678 100644 --- a/tildes/scss/modules/_group.scss +++ b/tildes/scss/modules/_group.scss @@ -14,6 +14,12 @@ .group-subscription-count { 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 { diff --git a/tildes/tildes/templates/groups.jinja2 b/tildes/tildes/templates/groups.jinja2 index 102095a..02cca0d 100644 --- a/tildes/tildes/templates/groups.jinja2 +++ b/tildes/tildes/templates/groups.jinja2 @@ -22,7 +22,7 @@ {% for group in groups %} - + {{ group_linked(group.path) }} {% if group.short_description %} From ad4859dac1a040fc2a5e9cc7115c6959ca0abf55 Mon Sep 17 00:00:00 2001 From: deing Date: Fri, 6 Sep 2019 16:43:44 +0200 Subject: [PATCH 2/3] Add subgroups list in group sidebar (fixes #567) --- tildes/tildes/templates/topic_listing.jinja2 | 11 +++++++++++ tildes/tildes/views/topic.py | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/tildes/tildes/templates/topic_listing.jinja2 b/tildes/tildes/templates/topic_listing.jinja2 index 7eec9fd..37d3fec 100644 --- a/tildes/tildes/templates/topic_listing.jinja2 +++ b/tildes/tildes/templates/topic_listing.jinja2 @@ -224,6 +224,17 @@ {{ group.sidebar_rendered_html|safe }} {% endif %} + {% if subgroups %} + + {% endif %} + {% if wiki_pages or wiki_has_index %}