{% 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 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 %}.
Alternatively enable NSFW posts now and view this {% if res_type == crate::utils::ResourceType::Subreddit %}subreddit{% else if res_type == crate::utils::ResourceType::User %}profile{% else if res_type == crate::utils::ResourceType::Post %}post{% endif %} immediately
{% if res_type == crate::utils::ResourceType::Post %} You can also temporarily bypass this gate and view the post by clicking on this link.{% endif %} {% endif %}

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