{% extends "base.html" %} {% block title %}NSFW content gated{% endblock %} {% block sortstyle %}{% endblock %} {% block content %}

😱 {% if res_type == crate::utils::ResourceType::Subreddit %} r/{{ res }} is a NSFW community! {% else if res_type == crate::utils::ResourceType::User %} u/{{ res }}'s content is NSFW! {% else if res_type == crate::utils::ResourceType::Post %} This post is NSFW! {% endif %}


{% if crate::utils::sfw_only() %} This instance of Libreddit 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 %}. {% endif %}

{% endblock %} {% block footer %} {% endblock %}