Finished the merge, Disabling comments, Community bans.

This commit is contained in:
some weird guy
2023-08-12 14:55:51 -07:00
parent 46844a7cfb
commit 74ef0db34c
67 changed files with 870 additions and 759 deletions
@@ -28,7 +28,7 @@
<div id="js-main">
<div class="activity-feed content-loading-window">
<div>
{% discordapp_spinner %}
{% loading_spinner %}
<p class="tleft"><span>Loading activity feed...</span></p>
</div>
</div>
@@ -1,5 +1,5 @@
{% extends "closedverse_main/layout.html" %}
{% load closedverse_tags %}{% load closedverse_community %}{% block main-body %}
{% load closedverse_tags %}{% load closedverse_community %}{% load closedverse_user %}{% block main-body %}
<div class="community-main">
<div id="community-eyecatch"></div>
</div>
@@ -7,8 +7,13 @@
<form action="{% url "main:community-search" %}" class="search">
<input maxlength="32" name="query" placeholder="Search all communities" type="text"><input title="Search" type="submit" value="q">
</form>
<!--<div class="close-announce-container">
<div class="close-announce-link">
<a class="title" id="close-text-ann" href="/posts/1186"><b>Closedverse is still in indefinite maintenance.</b></a>
</div>
</div>-->
{% if user.is_warned %}
{% if user.is_warned and user.is_active %}
<div class="notice" style="background-color: #ffc783;border: 1px solid #ffb358;">
<p><b>WARNING</b>: You have been issued a warning by an administrator.
<div>
@@ -18,23 +23,35 @@
</div>
</div>
{% endif %}
{% if not user.is_active and user.is_authenticated %}
<div class="notice" style="background-color: #ff9797;border: 1px solid #ff5252;">
<p><b>Oops</b>: You've been smacked by an admin. Better luck next time.
<div>
{% if user.get_warned_reason %}
<p>Reason: "{{ user.get_warned_reason }}"</p>
{% endif %}
</div>
</div>
{% endif %}
{% if announcements and request.user.is_authenticated %}
<div class="Announcements">
{% for announcements in announcements %}
<div class='Announcement-content'>
{% user_icon_container announcements.creator announcements.feeling %}
<a class='user-name' href={% url "main:user-view" announcements.creator.username %} {% if announcements.creator.color %}style=color:{{ announcements.creator.color }}{% endif %}>{{ announcements.creator }}</a><a class='timestamp"'> - {{ announcements.created }}</a>
<p>{{ announcements.body|linebreaksbr|urlize }}</p>
{% if announcements.screenshot %}<image class='Announcement-image' src={{ announcements.screenshot }}></image>{% endif %}
</div>
{% endfor %}
</div>
<div class="tleft">
<div class="post-list-outline">
<h2 class="label">Latest Announcements</h2>
<div class="post-body">
<div class="list multi-timeline-post-list">
{% for announcement in announcements %}
{% profile_post announcement True %}
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% if WelcomeMSG and not request.user.is_authenticated %}
<div class="post-list-outline index-memo">
<h2 class="label">Welcome to Cedar!</h2>
<h2 class="label">Welcome to {{ brand_name }}!</h2>
{% for WelcomeMSG in WelcomeMSG %}
<h2>{{ WelcomeMSG.Title }}</h2>
<p>{{ WelcomeMSG.message|linebreaksbr|urlize }}</p>
@@ -51,7 +68,7 @@
</div>
{% endif %}
</div>
<div class="community-main">
<div class="community-main" id="communities">
{% if favorites %}
<h3 class="community-title symbol community-favorite-title">Favorite communities</h3>
<div class="card" id="community-favorite">
@@ -74,12 +91,12 @@
{% if feature %}
{% community_page_element feature "Featured Communities" True %}
{% endif %}
{% if general %}{% community_page_element general "General Communities" %}{% endif %}
{% if game %}{% community_page_element game "Game Communities" %}{% endif %}
{% if special %}{% community_page_element special "Special Communities" %}{% endif %}
{% if user_communities %}{% community_page_element user_communities "Popular User-Created Communities" %}{% endif %}
{% if my_communities %}{% community_page_element my_communities "My Communities" %}{% endif %}
<a href="{% url "main:community-viewall" "gen" %}" class="big-button">Show more</a>
{% community_page_element general "General Communities" False "general" %}
{% community_page_element game "Game Communities" False "game" %}
{% community_page_element special "Special Communities" False "special" %}
{% community_page_element user_communities "Popular User-Created Communities" False "usr" %}
{% if user_communities %}<a href="{% url "main:community-viewall" "usr" %}" class="big-button">Show more</a>{% endif %}
{% community_page_element my_communities "My Communities" %}
</div>
<div id="community-guide-footer">
<div id="guide-menu">
@@ -1,18 +1,8 @@
{% extends "closedverse_main/layout.html" %}{% block main-body %}{% load closedverse_community %}
{% community_sidebar community request %}
<div class="main-column">
{% if user.is_warned %}
<div class="notice" style="background-color: #ffc783;border: 1px solid #ffb358;">
<p><b>WARNING</b>: You have been issued a warning by an administrator.
<div>
{% if user.get_warned_reason %}
<p>Reason: "{{ user.get_warned_reason }}"</p>
{% endif %}
</div>
</div>
{% endif %}
<div class="post-list-outline">
<h2 class="label">{{ community.name }}:</h2>
<h2 class="label">{{ community.name }}</h2>
{% if request.user.is_authenticated and community.post_perm %}
{% post_form request.user community %}
{% endif %}
@@ -1,5 +1,4 @@
{% load closedverse_community %}
{% if user.is_active %}
<form id="reply-form" class="for-identified-user" method="post" action="{% url "main:post-comments" post.id %}">
{% csrf_token %}
{% if not user.limit_remaining is False %}
@@ -31,6 +30,8 @@
</div>
{% if user.has_freedom %}
{% file_button %}
<!-- hack to temporarily hide video input, for now... -->
<style>div.file-button-container{display:none;}</style>
{% endif %}
<div class="post-form-footer-options">
@@ -47,8 +48,3 @@
<input type="submit" class="black-button reply-button disabled" value="Send" data-community-id="{{ post.community.unique_id }}" data-url-id="{{ post.id }}" data-post-content-type="text" data-post-with-screenshot="nodata" disabled="">
</div>
</form>
{% endif %}
{% if not user.is_active %}
<p class="center">Your account has been disabled.</p>
{% endif %}
@@ -1,5 +1,6 @@
{% load closedverse_tags %}{% if title %}<h3 class="community-title">{{ title }}</h3>
{% endif %}{% if communities %}
{% load closedverse_tags %}{% if communities %}
{% if title %}<h3 class="community-title">{{ title }}</h3>
{% endif %}
<ul class="list community-list{% if title %} community-card-list {% if feature %}test-community-list-item{% else %}device-new-community-list{% endif %}{% endif %}">
{% for community in communities %}
<li class="trigger" data-href="{% url "main:community-view" community.id %}"{% if not title %} class="test-community-list-item"{% endif %}>
@@ -21,12 +22,15 @@
</li>
{% endfor %}
</ul>
{% if url_name and communities.count >= 12 %}
<a href="{% url "main:community-viewall" url_name %}" class="big-button">Show more</a>
{% endif %}
{% else %}
{% if title %}<div class="post-list-outline">{% endif %}
<!--{% if title %}<div class="post-list-outline">{% endif %}-->
{% if title %}
{% nocontent "No communities of this type have been created yet." %}
<!--{% nocontent "No communities of this type have been created yet." %}-->
{% else %}
{% nocontent "You haven't favorited any communities yet. Use the favorite button in a community to add it here." %}
{% endif %}
{% if title %}</div>{% endif %}
{% endif %}
<!--{% if title %}</div>{% endif %}-->
{% endif %}
@@ -44,7 +44,8 @@
{% endif %}
{% endif %}
{% if post.screenshot %}<a class="screenshot-container still-image" href="{% if post.is_reply %}{% url "main:comment-view" post.id %}{% else %}{% url "main:post-view" post.id %}{% endif %}"><img src="{{ post.screenshot }}"></a>{% endif %}
{% if post.spoils and post.creator.is_active %}
{% if post.video %}<div class="screenshot-container still-image"><video class="vidya" controls src="{{ post.video }}" style="max-width:100%;max-height: 450px;"></video></div>{% endif %}
{% if post.spoils and not post.is_mine and post.creator.is_active %}
<div class="hidden-content"><p>This post contains spoilers.</p>
<button type="button" class="hidden-content-button">View Post</button>
</div>
@@ -1,4 +1,9 @@
<div id="sidebar">
{% if Community_block %}
<div class="notice" style="background-color: #ff9797;border: 1px solid #ff5252;">
<p><b>Oops</b>: You're either blocked by, or blocking {{ community.creator }}, who owns this community. You cannot Yeah, Reply, or Post here.
</div>
{% endif %}
<section class="sidebar-container" id="sidebar-community">
{% if community.banner %}
<span id="sidebar-cover">
@@ -22,8 +27,6 @@
<span class="news-community-badge">Announcement Community</span>
{% elif community.tags == 'changelog' %}
<span class="news-community-badge">Changelog Community</span>
{% elif community.tags == 'general' %}
<span class="news-community-badge">General</span>
{% endif %}
<h1 class="community-name">
<a href="{% url "main:community-view" community.id %}">{{ community.name }}
@@ -1 +0,0 @@
<p>I'm loading it !</p>
@@ -7,10 +7,16 @@
<label class="file-button-container">
<span class="input-label">Image <span id="image-dimensions">PNG and JPEG are allowed.</span></span>
<span class="button file-upload-button">Upload</span>
<input accept="image/gif, image/png, image/jpeg, image/jpg, image/svg+xml, image/bmp" type="file" style="display: none;" id="upload-file">
<input type="hidden" id="upload-input" name="screen">
<input accept="image/gif, image/png, image/jpeg, image/jpg, image/svg+xml, image/bmp" type="file" style="display: none;" id="upload-file" name="screen">
<div id="upload-preview-container" class="screenshot-container still-image" style="display: none;">
<img id="upload-preview">
<!-- not functional currently
<video id="video-upload-preview"></video>
-->
</div>
</label>
<div class="file-button-container">
<span class="input-label">Video <span>MP4s and WEBMs are allowed. (50MB size limit)</span></span>
<input type="file" class="file-button" name="video" accept="video/mp4, video/webm">
</div>
@@ -0,0 +1 @@
<span class="open-spin"></span>
@@ -1,5 +1,4 @@
{% load closedverse_community %}
{% if user.is_active %}
<form id="post-form" method="post" action="{% url "main:messages-view" friend.username %}" class="folded">
{% csrf_token %}
{% feeling_selector %}
@@ -28,15 +27,8 @@
<div class="post-form-footer-options">
</div>
<div class="form-buttons">
<input type="submit" class="black-button post-button disabled" value="Send" data-post-content-type="text" disabled="">
</div>
</form>
{% endif %}
{% if not user.is_active %}
<p class="center">Your account has been disabled.</p>
{% endif %}
</form>
@@ -1,5 +1,4 @@
{% load closedverse_community %}
{% if user.is_active %}
<form id="post-form" method="post" action="{% url "main:post-create" community.id %}" class="folded for-identified-user" data-post-subtype="default" name="test-post-default-form">
{% csrf_token %}
<input type="hidden" name="community" value="{{ community.unique_id }}">
@@ -63,8 +62,3 @@
<input type="submit" class="black-button post-button disabled" value="Send" data-community-id="{{ community.unique_id }}" data-post-content-type="text" data-post-with-screenshot="nodata" disabled="">
</div>
</form>
{% endif %}
{% if not user.is_active %}
<p class="center">Your account has been disabled.</p>
{% endif %}
@@ -1,8 +1,8 @@
{% load closedverse_tags %}<div id="{{ post.unique_id }}" {% if post.spoils and not post.is_mine or not post.creator.is_active %}data-href-hidden{% else %}data-href{% endif %}="{% url "main:post-view" post.id %}" class="post trigger{% if post.screenshot %} with-image{% endif %}{% if post.spoils and not post.is_mine or not post.creator.is_active %} hidden test-hidden{% endif %}" tabindex="0">
{% load closedverse_tags %}<div {% if post.spoils and not post.is_mine or not post.creator.is_active %}data-href-hidden{% else %}data-href{% endif %}="{% url "main:post-view" post.id %}" class="post trigger{% if post.screenshot and not for_announcements %} with-image{% endif %}{% if post.spoils and not post.is_mine or not post.creator.is_active %} hidden test-hidden{% endif %}" tabindex="0">
<p class="community-container"><a {% if post.community.clickable %}href="{% url "main:community-view" post.community_id %}"{% endif %}><img src="{{ post.community.icon }}" class="community-icon">{{ post.community.name }}</a></p>
<div class="body">
<div {% if not for_announcements %}class="body"{% endif %}>
<div class="post-content">
{% user_icon_container post.creator post.feeling %}
@@ -26,7 +26,10 @@
<div class="screenshot-container video"><video src="{{ post.url }}" width="50" height="48"></video></div>
{% endif %}
{% if post.screenshot %}
<a href="{% url "main:post-view" post.id %}" class="screenshot-container still-image"><img src="{{ post.screenshot }}"></a>
<a href="{% url "main:post-view" post.id %}" class="{% if not for_announcements %}screenshot-container {% endif %}still-image"><img src="{{ post.screenshot }}"></a>
{% endif %}
{% if post.video %}
<div class="screenshot-container video"><video src="{{ post.video }}" width="50" height="48"></video></div>
{% endif %}
{% if post.drawing %}
<p class="post-content-memo"><img src="{{ post.drawing }}" class="post-memo"></p>
@@ -50,6 +53,7 @@
<button type="button" class="hidden-content-button">View Anyway</button>
</p></div>
{% endif %}
{% if not for_announcements %}
<div class="post-meta">
<button type="button"{% if not post.can_yeah %} disabled{% endif %} class="symbol submit yeah-button
{% if post.has_yeah %}empathy-added{% endif %}
@@ -60,6 +64,7 @@
<div class="empathy symbol"><span class="symbol-label">Yeahs</span><span class="empathy-count">{{ post.number_yeahs }}</span></div>
<div class="reply symbol"><span class="symbol-label">Comments</span><span class="reply-count">{{ post.number_comments }}</span></div>
</div>
{% endif %}
</div>
</div>
@@ -21,11 +21,16 @@
<li>My notifications: <span> {{ notifications }}
</ul>
<h3>Restrictions:</h3>
{% if request.user.active %}
<ul>
<li>Sending images and creating new accounts: <span> {% if user.has_freedom %}Good standing{% else %}Restricted{% endif %}
<li>Post limit: <span> {% if request.user.profile.limit_post == 0 %}Good standing{% else %}{{ user.profile.limit_post }}{% endif %}
<li>Editing your profile: <span> {% if not user.profile.cannot_edit %}Good standing{% else %}Restricted{% endif %}
<li>Creating invites: <span> {% if user.can_invite %}Good standing{% else %}Restricted{% endif %}
</ul>
{% else %}
<p class='center'>You've been fucking banned lmao</p>
{% endif %}
<h3>Collected data:</h3>
<div class="user-data">
<p class="label">Account login history:</p>
@@ -4,14 +4,14 @@
<head>
<meta charset="utf-8">
{% endif %}
<title>{% if title %}{{ title }} - Cedar{% else %}Cedar{% endif %}</title>
<title>{% if title %}{{ title }} - {{ brand_name }} {% else %}{{ brand_name }}{% endif %}</title>
{% if not request.META.HTTP_X_PJAX %}
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="content-script-type" content="text/javascript">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-title" content="Cedar">
<meta name="description" content="It's Closedverse but Cedar!">
<meta name="apple-mobile-web-app-title" content="{{ brand_name }}">
<meta name="description" content="{{ brand_name }} is a social network: designed by PF2M, programmed by Arian Kordi. With Miiverse DNA, style and familiar assets such as Miiverse's interface and Miis, you're sure to have fun here!">
<meta property="og:locale" content="en_US">
{% if ogdata %}
<meta property="og:title" content="{{ ogdata.title }}">
@@ -19,7 +19,7 @@
<meta property="og:url" content="{{ request.build_absolute_uri }}">
<meta property="og:image" content="{{ ogdata.image }}">
<meta property="og:description" content="{{ ogdata.description|truncatechars:150 }}">
<meta property="og:site_name" content="Cedar">
<meta property="og:site_name" content="{{ brand_name }}">
<meta property="article:published_time" content="{{ ogdata.date }}">
{% endif %}
<link rel="shortcut icon" type="image/png" href="{% static "img/favicon.png" %}">
@@ -62,6 +62,7 @@
document.documentElement.style.setProperty("--theme-slightly-dark", slightlyDarkColor);
document.documentElement.style.setProperty("--theme-darker", darkerColor);
document.documentElement.style.setProperty("--theme-light", lightColor);
{% if not request.user.bg_url %}document.documentElement.style.setProperty("--background", "url('img/indigo-pattern.png')");{% endif %}
}
// hex -> rgb
@@ -80,18 +81,19 @@
}
function toDefault() {
document.documentElement.style.setProperty("--theme", "initial");
document.documentElement.style.setProperty("--theme", "");
document.documentElement.style.setProperty("--theme-dark", "initial");
document.documentElement.style.setProperty("--theme-slightly-dark", "initial");
document.documentElement.style.setProperty("--theme-darker", "initial");
document.documentElement.style.setProperty("--theme-light", "initial");
document.documentElement.style.setProperty("--background", "");
}
changeThemeColor();
</script>{% endif %}
<style>
:root {
{% if request.user.bg_url %}--background: url({{ request.user.bg_url }});{% elif not theme %}--background: url({% static 'img/Background.png' %}){% endif %}
{% if request.user.bg_url %}--background: url({{ request.user.bg_url }});{% endif %}
}
</style>
</head>
@@ -102,12 +104,12 @@
<div id="wrapper"{% if not request.user.is_authenticated %} class="guest"{% endif %}>
<div id="sub-body">
<menu id="global-menu">
<li id="global-menu-logo"><h1><a href="/"><img src="{% static "img/menu-logo.svg" %}" alt="Cedar"></a></h1></li>
<li id="global-menu-logo"><h1><a href="/"><img src="{% static "img/menu-logo.svg" %}" alt="{{ brand_name }}"></a></h1></li>
{% if request.user.unique_id %}
{% invite_only request as inv %}
<li id="global-menu-list">
<ul>
<li id="global-menu-mymenu"><a href="{% url "main:user-view" request.user.username %}"><span class="icon-container {% user_class request.user %}"><img src="{% avatar request.user %}" alt="My Profile"></span><span>My Profile</span></a></li>
<li id="global-menu-mymenu"><a href="{% url "main:user-view" request.user.username %}"><span class="icon-container {% user_class request.user %}"><img src="{% avatar request.user %}" alt="User Page"></span><span>User Page</span></a></li>
<li id="global-menu-feed"><a href="{% url "main:activity" %}" class="symbol"><span>Activity Feed</span></a></li>
<li id="global-menu-community"><a href="/" class="symbol"><span>Communities</span></a></li>
<li id="global-menu-message"><a href="{% url "main:messages" %}" class="symbol"><span>Messages</span></a></li>
@@ -117,9 +119,10 @@
<li><a href="{% url "main:profile-settings" %}" class="symbol my-menu-profile-setting"><span>Profile settings</span></a></li>
<li><a href="#" class="symbol my-menu-account-setting"><span>Account preferences</span></a></li>
{% if inv %}<li><a href="{% url "main:invites" %}" class="symbol my-menu-guide"><span>Invites</span></a></li>{% endif %}
<li><a href="{% url "main:special-community-tag" "announcements" %}" class="symbol my-menu-openman"><span>Cedar Announcements</span></a></li>
<li><a href="{% url "main:special-community-tag" "announcements" %}" class="symbol my-menu-openman"><span>{{ brand_name }} Announcements</span></a></li>
<li><a href="{% url "main:special-community-tag" "changelog" %}" class="symbol my-menu-openman"><span>{{ brand_name }} Changelog</span></a></li>
<li><a href="{% url "main:help-faq" %}" class="symbol my-menu-guide"><span>Frequently Asked Questions (FAQ)</span></a></li>
<li><a href="{% url "main:help-rules" %}" class="symbol my-menu-guide"><span>Cedar Rules</span></a></li>
<li><a href="{% url "main:help-rules" %}" class="symbol my-menu-guide"><span>{{ brand_name }} Rules</span></a></li>
<li><a href="#" class="symbol my-menu-white-power"><span>Feedback/bug report</span></a></li>
<li><a href="{% url "main:server-stat" %}" class="symbol my-menu-openman"><span>Server Statistics</span></a></li>
<li>
@@ -5,7 +5,7 @@
<form method="post">
<img src="{% static "img/menu-logo.svg" %}">
<h1 class="lh">Sign In</h1>
<h2 class="lh">Please sign in to access Cedar.</h2>
<h2 class="lh">Please sign in to access {{ brand_name }}.</h2>
<div class="login-box">
<h3 class="label"><input type="text" class="auth-input" name="username" maxlength="32" placeholder="Username"></h3>
<h3 class="label"><input type="password" class="auth-input" name="password" maxlength="32" placeholder="Password"></h3>
@@ -10,7 +10,6 @@
</h1>
</header>
{% if post.is_mine or post.can_rm %}
{% if user.is_active %}
<div class="edit-buttons-content">
<button type="button" class="symbol button edit-button rm-post-button" data-action="{% url "main:post-rm" post.id %}"><span class="symbol-label">Delete</span></button>
{% if post.is_mine and not post.has_edit %}
@@ -19,8 +18,10 @@
{% if post.is_mine and post.screenshot %}
<button type="button" class="symbol button edit-button profile-post-button{% if post.is_favorite %} done {% endif %}" data-action="{% if post.is_favorite %}{% url "main:post-unset-profile" post.id %}{% else %}{% url "main:post-set-profile" post.id %}{% endif %}"><span class="symbol-label">Set as profile post</span></button>
{% endif %}
{% if post.can_lock_comments %}
<button type="button" class="symbol button edit-button lock-comments-button" data-action="{% url "main:lock-the-comments" post.id %}"><span class="symbol-label">Lock comments</span></button>
{% endif %}
</div>
{% endif %}
{% endif %}
<div class="user-content">
@@ -83,12 +84,14 @@
{% elif post.screenshot %}<div class="screenshot-container still-image"><img src="{{ post.screenshot }}"></div>{% endif %}
{% if post.yt_vid %}
<div class="screenshot-container video"><iframe class="youtube-player" type="text/html" width="490" height="276" src="https://www.youtube.com/embed/{{ post.yt_vid }}?rel=0&modestbranding=1&iv_load_policy=3" frameborder="0"></iframe></div>
{% elif post.discord_vid %}
<div class="DiscordCDN-container video">
<video class="discord-player" src="{{ post.url }}" style='max-width:100%;' controls></video>
</div>
<a>Discord embedded video</a>
<div class="screenshot-container video"><iframe class="youtube-player" type="text/html" style="max-width:100%;max-height: 450px;" src="https://www.youtube.com/embed/{{ post.yt_vid }}?rel=0&modestbranding=1&iv_load_policy=3" frameborder="0"></iframe></div>
{% elif post.video %}
<div class="screenshot-container video"><video class="vidya" controls src="{{ post.video }}" style="max-width:100%;max-height: 450px;"></video></div>
{% elif post.discord_vid %}
<div class="DiscordCDN-container video">
<video class="discord-player" src="{{ post.url }}" style="max-width:100%;max-height: 450px;" controls></video>
</div>
<a>Discord embedded video</a>
{% elif post.url %}
<p class="url-link"><a class="link-confirm" href="{{ post.url }}" target="_blank">{{ post.url }}</a></p>
{% endif %}
@@ -126,13 +129,19 @@
<h2 class="reply-label">Add a Comment</h2>
{% if not request.user.is_authenticated %}
<div class="guest-message">
<p>You must sign in to post a comment.<br><br>Sign in using a Cedar account to make posts and comments, as well as give Yeahs and follow users.</p>
<p>You must sign in to post a comment.<br><br>Sign in using a {{ brand_name }} account to make posts and comments, as well as give Yeahs and follow users.</p>
<a href="{% url "main:signup" %}" class="arrow-button"><span>Create an account</span></a>
<a href="{% url "main:help-faq" %}" class="arrow-button"><span>FAQ/Frequently Asked Questions</span></a>
</div>
{% elif not post.can_comment %}
<div class="cannot-reply"><div>
{% if post.lock_comments == 1 %}
<p>{{ post.creator.nickname }} has locked the comments.</p>
{% elif post.lock_comments == 2 %}
<p>The comments have been locked up tight.</p>
{% else %}
<p>You cannot comment on this post.</p>
{% endif %}
</div></div>
{% else %}
{% comment_form post request.user %}
@@ -22,7 +22,8 @@
<li class="setting-profile-comment">
<p class="settings-label">Profile comment</p>
<textarea class="textarea" name="profile_comment" maxlength="2200" placeholder="Write about yourself here.">{{ profile.comment }}</textarea>
<p class="note">Anything you write here will appear on your profile. Remember to keep it brief. Please don't write anything that'll violate <a href="{% url "main:help-rules" %}">Cedar's rules</a>.</p>
<p class="note">Anything you write here will appear on your profile. Remember to keep it brief. Please don't write anything that'll violate <a href="{% url "main:help-rules" %}">{{ brand_name }}'s rules</a>.</p>
</li>
<!--
<li>
@@ -128,12 +129,12 @@
<div class="select-content">
<div class="select-button">
<select name="pronoun_dot_is" id="pronoun_dot_is">
<option value="0"{% if profile.pronoun_is == 0 %} selected{% endif %}>I don't know</option>
<option value="1"{% if profile.pronoun_is == 1 %} selected{% endif %}>He/him</option>
<option value="2"{% if profile.pronoun_is == 2 %} selected{% endif %}>She/her</option>
<option value="3"{% if profile.pronoun_is == 3 %} selected{% endif %}>He/she</option>
<option value="4"{% if profile.pronoun_is == 4 %} selected{% endif %}>It</option>
<option value="5"{% if profile.pronoun_is == 5 %} selected{% endif %}>They/Them</option>
<option value="0"{% if profile.pronoun_is == 0 %} selected{% endif %}>I don't know</option>
<option value="1"{% if profile.pronoun_is == 1 %} selected{% endif %}>He/him</option>
<option value="2"{% if profile.pronoun_is == 2 %} selected{% endif %}>She/her</option>
<option value="3"{% if profile.pronoun_is == 3 %} selected{% endif %}>He/she</option>
<option value="4"{% if profile.pronoun_is == 4 %} selected{% endif %}>It</option>
<option value="5"{% if profile.pronoun_is == 5 %} selected{% endif %}>They/Them</option>
</select>
</div>
</div>
@@ -5,11 +5,11 @@
<form method="post" onload="">
<img src="{% static "img/menu-logo.svg" %}">
<p class="lh">Sign Up</p>
<p>Create a Cedar account on this instance to access this instance.</p><br>
<p>Create a {{ brand_name }} account to make posts and comments to various communities, give Yeahs to other users' content, and interact with other members of the {{ brand_name }} community.</p><br>
<p>Please follow <a href="{% url "main:help-rules" %}">our rules</a>. If you don't, be careful with your behavior.<br><br>You <strong>must</strong> be {{ age }} years of age or older to join, no exceptions.<br>If you are suspected to be younger than {{ age }} years old, we will ban you until you're {{ age }}.</p>
{% if invite_only %}<h3 class="label"><label><span class="red">*</span> Invite code: <input type="text" class="auth-input" name="invite_code" maxlength="64" minlength="4" placeholder="Invite code"></label></h3>{% endif %}
<h3 class="label"><label><span class="red">*$</span> User ID: <input type="text" class="auth-input" name="username" maxlength="32" minlength="4" placeholder="ID"></label></h3>
<h3 class="label"><label>Nickname: <input type="text" class="auth-input" name="nickname" maxlength="32" placeholder="Nick/Mii name?"></label></h3>
<h3 class="label"><label><span class="red">*$</span> Username: <input type="text" class="auth-input" name="username" maxlength="32" minlength="4" placeholder="Username"></label></h3>
<h3 class="label"><label><span class="red">*</span>Nickname: <input type="text" class="auth-input" name="nickname" maxlength="32" placeholder="Nick/Mii name?"></label></h3>
<h3 class="label nnid"><label>Nintendo Network ID: <input type="text" class="auth-input" name="origin_id" maxlength="16" minlength="6" placeholder="NNID" data-mii-domain="{{ mii_domain }}" data-action="{{ mii_endpoint }}">
<img class="none">
</label></h3>
@@ -1,4 +1,4 @@
{% extends "closedverse_main/layout.html" %}
{% load closedverse_tags %}{% block main-body %}
{% nocontent "Sign Ups are disabled for now. Please contact the administrator using the contact page." %}
{% endblock %}
{% nocontent "Sign ups are disabled for now. Please contact the administrator using the contact page." %}
{% endblock %}