diff --git a/tildes/scss/themes/_theme_base.scss b/tildes/scss/themes/_theme_base.scss index de8bbd0..2e9bb08 100644 --- a/tildes/scss/themes/_theme_base.scss +++ b/tildes/scss/themes/_theme_base.scss @@ -516,6 +516,10 @@ .toast { color: map-get($theme, "foreground-highlight"); background-color: map-get($theme, "background-secondary"); + + a { + color: map-get($theme, "link"); + } } // Toasts should have colored border + text for dark themes, instead of a diff --git a/tildes/tildes/request_methods.py b/tildes/tildes/request_methods.py index ce96dcc..61c6900 100644 --- a/tildes/tildes/request_methods.py +++ b/tildes/tildes/request_methods.py @@ -121,7 +121,7 @@ def current_listing_base_url( "bookmarks": ("per_page", "type"), "group": ("order", "period", "per_page", "tag", "unfiltered"), "group_search": ("order", "period", "per_page", "q"), - "home": ("order", "period", "per_page", "tag", "unfiltered"), + "home": ("order", "period", "per_page", "tag", "unfiltered", "view"), "ignored_topics": ("per_page",), "search": ("order", "period", "per_page", "q"), "user": ("order", "per_page", "type"), diff --git a/tildes/tildes/templates/home.jinja2 b/tildes/tildes/templates/home.jinja2 index 84b0411..1b0ac1a 100644 --- a/tildes/tildes/templates/home.jinja2 +++ b/tildes/tildes/templates/home.jinja2 @@ -14,7 +14,25 @@ {% block header_context_link %}{% endblock %} +{% block filter_info %} + {% if view %} +
+ {% if view == "coronavirus-only" %} + Showing only topics related to coronavirus. + {% elif view == "coronavirus-filtered" %} + Showing only topics not related to coronavirus. + {% endif %} + + Back to normal view +
+ {% endif %} +{% endblock %} + {% block content %} + {% if not view %} +
Specialized views: No coronavirus topics / Only coronavirus topics
+ {% endif %} + {% if request.user %} {% if request.user.subscriptions %} {{ super() }} diff --git a/tildes/tildes/templates/topic_listing.jinja2 b/tildes/tildes/templates/topic_listing.jinja2 index 756be14..c963439 100644 --- a/tildes/tildes/templates/topic_listing.jinja2 +++ b/tildes/tildes/templates/topic_listing.jinja2 @@ -49,6 +49,10 @@ {% endif %} + {% if view is defined %} + + {% endif %} +