diff --git a/tildes/tildes/templates/bookmarks.jinja2 b/tildes/tildes/templates/bookmarks.jinja2 index 24f552c..af645df 100644 --- a/tildes/tildes/templates/bookmarks.jinja2 +++ b/tildes/tildes/templates/bookmarks.jinja2 @@ -1,7 +1,7 @@ {% extends 'base_user_menu.jinja2' %} {% from 'macros/comments.jinja2' import render_single_comment with context %} -{% from 'macros/links.jinja2' import group_linked %} +{% from 'macros/links.jinja2' import link_to_group %} {% from 'macros/topics.jinja2' import render_topic_for_listing with context %} {% block title %}Bookmarks{% endblock %} @@ -28,7 +28,7 @@ {% if post is topic %} {{ render_topic_for_listing(post, show_group=True) }} {% elif post is comment %} -
Did you mean one of these groups instead?
{{ group.short_description }}
{% endif %} diff --git a/tildes/tildes/templates/macros/links.jinja2 b/tildes/tildes/templates/macros/links.jinja2 index 710dfa9..e583224 100644 --- a/tildes/tildes/templates/macros/links.jinja2 +++ b/tildes/tildes/templates/macros/links.jinja2 @@ -9,6 +9,6 @@ {% endif %} {%- endmacro %} -{% macro group_linked(group_path) -%} - ~{{ group_path }} +{% macro link_to_group(group) -%} + ~{{ group.path }} {%- endmacro %} diff --git a/tildes/tildes/templates/macros/topics.jinja2 b/tildes/tildes/templates/macros/topics.jinja2 index f950315..b05b95d 100644 --- a/tildes/tildes/templates/macros/topics.jinja2 +++ b/tildes/tildes/templates/macros/topics.jinja2 @@ -2,7 +2,7 @@ {# SPDX-License-Identifier: AGPL-3.0-or-later #} {% from 'macros/datetime.jinja2' import adaptive_date_responsive %} -{% from 'macros/links.jinja2' import group_linked, link_to_user %} +{% from 'macros/links.jinja2' import link_to_group, link_to_user %} {% from 'utils.jinja2' import pluralize %} {% macro render_topic_for_listing(topic, show_group=False, rank=None) %} @@ -31,7 +31,7 @@