{% extends "base.html" %} {% block title %}NSFW content gated{% endblock %} {% block sortstyle %}{% endblock %} {% block content %}
{% if crate::utils::sfw_only() %} This instance of Redlib is SFW-only.
{% else %} Enable "Show NSFW posts" in settings to view this {% if res_type == crate::utils::ResourceType::Subreddit %}subreddit{% else if res_type == crate::utils::ResourceType::User %}user's posts or comments{% else if res_type == crate::utils::ResourceType::Post %}post{% endif %}.