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 %} diff --git a/tildes/tildes/templates/topic.jinja2 b/tildes/tildes/templates/topic.jinja2 index 467f339..7ed3755 100644 --- a/tildes/tildes/templates/topic.jinja2 +++ b/tildes/tildes/templates/topic.jinja2 @@ -26,7 +26,11 @@ {% endblock %} {% block header_context_link %} -~{{ topic.group.path }} + {# Split the link out for each "segment" of the group path #} + ~{{ topic.group.path[0:1] }} + {% for i in range(1, topic.group.path|length) %} + .{{ topic.group.path[i:i+1] }} + {% endfor %} {% endblock %} {% block content %} 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 %}