- Merge with closedverse-video-support
- user_tools moved to forms.py
- community_tools moved to forms.py
This commit is contained in:
some weird guy
2023-08-19 17:17:00 -07:00
parent 49477bf178
commit 1b33a2aad1
50 changed files with 660 additions and 439 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{% extends "closedverse_main/layout.html" %}
{% load closedverse_tags %}{% block main-body %}
{% nocontent "403 Forbidden" %}
{% endblock %}
{% nocontent "The page could not be displayed." %}
{% endblock %}
@@ -0,0 +1,43 @@
{% extends "closedverse_main/layout.html" %}
{% load static %}{% load closedverse_user %}{% load closedverse_tags %}
{% block main-body %}
{% user_sidebar request user user.profile 0 True %}
<div class="main-column"><div class="post-list-outline">
<h2 class="label">Blocked Users</h2>
{% if blocks %}
<div class="list news-list" id="friend-list-content">
{% for block in blocks %}
<li class="news-list-content trigger" data-href="{% url "main:user-view" block.target.username %}">
{% user_icon_container block.target %}
<div class="body">
<a href="{% url "main:user-view" block.target.username %}" class="nick-name"{% if block.target.color %}style=color:{{ block.target.color }}{% endif %}>{{ block.target.nickname }}</a><br><span class="timestamp"> {% time block.created %}</span>
<button class="button received-request-button" type="button" dataaa="{{ block.target_id }}">Unblock</button>
</div>
</li>
<div class="dialog none" data-modal-types="post-unblock" id="{{ block.target_id }}">
<div class="dialog-inner">
<div class="window">
<h1 class="window-title">Unblock {{ block.target.nickname }}</h1>
<div class="window-body">
{% user_sidebar_info block.target %}
<form method="post" data-action="{% url "main:user-rmblock" block.target.username %}">
<p class="window-body-content">Unblock this user?</p>
<div class="form-buttons">
<input type="button" class="olv-modal-close-button gray-button" value="No">
<input type="submit" value="Yes" class="post-button black-button">
</div>
</form>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class="no-content">
<p>You have not blocked any users.</p>
</div>
{% endif %}
</div></div>
{% endblock %}
@@ -10,7 +10,7 @@
</div>
<div class="post-list-outline more">
<div id="post-content" class="post reply-permalink-post">
<div id="{{ comment.unique_id }}" class="other">
<div class="other">
<p class="community-container"><a {% if comment.community.clickable %}href="{% url "main:community-view" comment.community.id %}"{% endif %}><img src="{{ comment.community.icon }}" class="community-icon">{{ comment.community.name }}</a></p>
{% if comment.is_mine or comment.can_rm %}
{% if user.is_active %}
@@ -85,4 +85,4 @@
</div>
</div>
{% endblock %}
{% endblock %}
@@ -34,6 +34,15 @@
</div>
{% endif %}
{% if settings.memo_title and settings.memo_msg %}
<div class="post-list-outline index-memo">
<h2 class="label">{{ settings.memo_title }}</h2>
<div>
{% autoescape off %}{{ settings.memo_msg }}{% endautoescape %}
</div>
</div>
{% endif %}
{% if announcements and request.user.is_authenticated %}
<div class="tleft">
<div class="post-list-outline">
@@ -48,17 +57,6 @@
</div>
</div>
{% endif %}
{% if WelcomeMSG and not request.user.is_authenticated %}
<div class="post-list-outline index-memo">
<h2 class="label">Welcome to {{ brand_name }}!</h2>
{% for WelcomeMSG in WelcomeMSG %}
<h2>{{ WelcomeMSG.Title }}</h2>
<p>{{ WelcomeMSG.message|linebreaksbr|urlize }}</p>
{% if WelcomeMSG.image %}<image src={{ WelcomeMSG.image.url }}></image>{% endif %}
{% endfor %}
</div>
{% endif %}
{% if request.user.c_tokens > 0 %}<a class="big-button" href={% url "main:community-create" %}><span class="symbol-label">Create a community</span></a>{% endif %}
{% if availableads %}
<div class="adx">
@@ -97,6 +95,12 @@
{% 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" %}
{% if not feature and not game and not special and not user_communities and not my_communities %}
<div class="post-list-outline">
{% nocontent "There are no communities of any kind yet. You can either create one in the admin panel, or make a user-created community once you sign up." %}
</div>
{% endif %}
</div>
<div id="community-guide-footer">
<div id="guide-menu">
@@ -10,7 +10,7 @@
<li class="setting-community-name">
<p class="settings-label">Set name:</p>
<div class="center center-input">
<input type="text" name="community_name" maxlength="32" placeholder="New Name" value="{{ community.name }}">
<input type="text" name="community_name" maxlength="64" placeholder="New Name" value="{{ community.name }}">
</div>
</li>
<li class="setting-community-description">
@@ -32,7 +32,11 @@
<input accept="image/gif, image/png, image/webp, image/jpeg, image/jpg, image/svg+xml, image/bmp" type="file" style="display: none;" name="community_banner" onchange="loadFile(event)" id="upload-file">
</label>
</li>
<<<<<<< Updated upstream
{% endif %}
=======
{% endif %}
>>>>>>> Stashed changes
<li>
<p>&nbsp;</p>
<input type="checkbox" name="force_login" {% if community.require_auth %}checked{% endif %}>Require login:
@@ -1,6 +1,16 @@
{% 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>
{% if request.user.is_authenticated and community.post_perm %}
@@ -1,11 +1,11 @@
{% load closedverse_user %}{% if profile.can_block %}
{% load closedverse_user %}
<div class="dialog none" data-modal-types="post-block">
<div class="dialog-inner">
<div class="window">
<h1 class="window-title">{% if profile.is_blocked %}Unblock{% else %}Block{% endif %} {{ user.nickname }}</h1>
<div class="window-body">
{% user_sidebar_info user profile %}
<form method="post" data-action="{% url "main:user-addblock" user.username %}">
<form method="post" data-action="{% if profile.is_blocked %}{% url "main:user-rmblock" user.username %}{% else %}{% url "main:user-addblock" user.username %}{% endif %}">
<p class="window-body-content">Really {% if profile.is_blocked %}un{% endif %}block this user?{% if not profile.is_blocked %} You won't be able to see each other's posts or profile.{% endif %}</p>
<div class="form-buttons">
<input type="button" class="olv-modal-close-button gray-button" value="No">
@@ -16,4 +16,3 @@
</div>
</div>
</div>
{% endif %}
@@ -45,6 +45,6 @@
<div class="form-buttons">
<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="">
<input type="submit" class="black-button reply-button disabled" value="Send" data-url-id="{{ post.id }}" data-post-content-type="text" data-post-with-screenshot="nodata" disabled="">
</div>
</form>
@@ -1,5 +1,5 @@
{% if not post.is_rm %}
{% 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 %}="{% if post.is_reply %}{% url "main:comment-view" post.id %}{% else %}{% url "main:post-view" post.id %}{% endif %}" class="post post-subtype-default trigger{% if post.spoils and not post.is_mine or not post.creator.is_active or post.user_is_blocked %} hidden test-hidden{% endif %}{% if type == 2 %} post-list-outline{% endif %}" tabindex="0">
{% load closedverse_tags %}<div id="post-{{ post.id }}" {% if post.spoils and not post.is_mine or not post.creator.is_active %}data-href-hidden{% else %}data-href{% endif %}="{% if post.is_reply %}{% url "main:comment-view" post.id %}{% else %}{% url "main:post-view" post.id %}{% endif %}" class="post post-subtype-default trigger{% if post.spoils and not post.is_mine or not post.creator.is_active or post.user_is_blocked %} hidden test-hidden{% endif %}{% if type == 2 %} post-list-outline{% endif %}" tabindex="0">
{% if with_community_container %}
<p class="community-container">
{% if post.is_reply %}
@@ -81,7 +81,7 @@
View all comments ({{ post.number_comments }})
</div>
{% endif %}
<div id="{{ post.recent_comment.unique_id }}" tabindex="0" class="recent-reply trigger">
<div tabindex="0" class="recent-reply trigger">
{% user_icon_container post.recent_comment.creator post.recent_comment.feeling %}
<p class="user-name"><a href="{% url "main:user-view" post.recent_comment.creator.username %}">{{ post.recent_comment.creator.nickname }}</a></p>
<p class="timestamp-container">
@@ -1,6 +1,6 @@
{% load closedverse_tags %}<div id="empathy-content"{% if not yeahs %} class="none"{% endif %}>
{% if myself.is_authenticated %}<a href="{% url "main:user-view" myself.username %}" class="post-permalink-feeling-icon visitor {% user_class myself %}"{% if not has_yeah %} style="display: none;"{% endif %}><img src="{% avatar myself %}" class="user-icon"></a>{% endif %}
{% if myself.is_authenticated %}<a href="{% url "main:user-view" myself.username %}" {% if not has_yeah %} style="display: none;"{% endif %} class="post-permalink-feeling-icon visitor{% if myself.get_class.0 %} official"><img src="{% user_class myself %}" class="official-tag">{% else %}">{% endif %}<img src="{% avatar myself %}" class="user-icon"></a>{% endif %}
{% for yeah in yeahs %}{% if not myself.is_authenticated or not yeah.by == myself %}
<a href="{% url "main:user-view" yeah.by.username %}" class="post-permalink-feeling-icon {% user_class yeah.by %}"><img src="{% avatar yeah.by yeah.feeling %}" class="user-icon"></a>
<a href="{% url "main:user-view" yeah.by.username %}" class="post-permalink-feeling-icon{% if yeah.by.get_class.0 %} official"><img src="{% user_class yeah.by %}" class="official-tag">{% else %}">{% endif %}<img src="{% avatar yeah.by yeah.feeling %}" class="user-icon"></a>
{% endif %}{% endfor %}
</div>
</div>
@@ -1,4 +1,4 @@
{% load closedverse_tags %}{% load closedverse_user %}<div class="dialog none" data-modal-types="accept-friend-request" uuid="{{ fr.unique_id }}" data-screen-name="{{ fr.source.nickname }}" data-reject-action="{% url "main:user-fr-reject" fr.source.username %}" data-action="{% url "main:user-fr-accept" fr.source.username %}">
{% load closedverse_tags %}{% load closedverse_user %}<div class="dialog none" data-modal-types="accept-friend-request" data-screen-name="{{ fr.source.nickname }}" data-reject-action="{% url "main:user-fr-reject" fr.source.username %}" data-action="{% url "main:user-fr-accept" fr.source.username %}">
<div class="dialog-inner">
<div class="window">
<h1 class="window-title">Friend Request from {{ fr.source.nickname }} at {% time fr.created True %}</h1>
@@ -12,4 +12,4 @@
</div>
</div>
</div>
</div>
</div>
@@ -1,8 +1,8 @@
{% load markdown_deux_tags %}{% load closedverse_tags %} <div class="post scroll {% if message.mine %}my{% else %}other{% endif %}" id="{{ message.unique_id }}">
{% load markdown_deux_tags %}{% load closedverse_tags %} <div class="post scroll {% if message.mine %}my{% else %}other{% endif %}" id="message-{{ message.id }}">
{% user_icon_container message.creator message.feeling %}
<p class="timestamp-container">
<span class="timestamp">{% time message.created %}{% if message.read %} - Read{% endif %}</span>
<button type="button" class="symbol button edit-button rm-post-button" data-action="{% url "main:message-delete" message.unique_id %}"><span class="symbol-label">Delete</span></button>
<button type="button" class="symbol button edit-button rm-post-button" data-action="{% url "main:message-delete" message.id %}"><span class="symbol-label">Delete</span></button>
</p>
<div class="post-body">
{% if message.drawing %}
@@ -14,4 +14,4 @@
<div class="screenshot-container still-image"><img src="{{ message.screenshot }}"></div>
{% endif %}
</div>
</div>
</div>
@@ -1,4 +1,4 @@
{% if not comment.is_rm %}{% load closedverse_tags %}<li id="{{ comment.unique_id }}" {% if comment.spoils and not comment.is_mine or not comment.creator.is_active %}data-href-hidden{% else %}data-href{% endif %}="{% url "main:comment-view" comment.id %}" class="post {% if comment.owner_post %}my{% else %}other{% endif %}{% if comment.spoils and not comment.is_mine or not comment.creator.is_active %} hidden{% endif %} trigger">
{% if not comment.is_rm %}{% load closedverse_tags %}<li id="comment-{{ comment.id }}" {% if comment.spoils and not comment.is_mine or not comment.creator.is_active %}data-href-hidden{% else %}data-href{% endif %}="{% url "main:comment-view" comment.id %}" class="post {% if comment.owner_post %}my{% else %}other{% endif %}{% if comment.spoils and not comment.is_mine or not comment.creator.is_active %} hidden{% endif %} trigger">
{% user_icon_container comment.creator comment.feeling %}
<div class="body">
<div class="header">
@@ -1,7 +1,6 @@
{% load closedverse_community %}
<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 }}">
{% if not user.limit_remaining is False %}
<div class="post-count-container">
<span>Remaining posts for today</span>
@@ -59,6 +58,6 @@
<div class="form-buttons">
<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="">
<input type="submit" class="black-button post-button disabled" value="Send" data-post-content-type="text" data-post-with-screenshot="nodata" disabled="">
</div>
</form>
@@ -1 +1 @@
<a href="{% url "main:user-view" user.username %}" class="icon-container {{ uclass }} {% if user.online_status == True %}online{% elif user.online_status == 2 %}afk{% elif user.online_status == False %}offline{% endif %}"><img src="{{ url }}" class="icon"></a>
<a href="{% url "main:user-view" user.username %}" class="icon-container {% if user.online_status == True %}online{% elif user.online_status == 2 %}afk{% elif user.online_status == False %}offline{% endif %}{% if uclass %} official"><img src="{{ uclass }}" class="official-tag">{% else %}">{% endif %}<img src="{{ url }}" class="icon"></a>
@@ -1,5 +1,5 @@
{% load closedverse_tags %}<div id="sidebar-profile-body"{% if profile.favorite %} class="with-profile-post-image"{% endif %}>
<div class="icon-container {% user_class user %} {% if user.online_status == True %}online{% elif user.online_status == 2 %}afk{% elif user.online_status == False %}offline{% endif %}">
<div class="icon-container {% if user.online_status == True %}online{% elif user.online_status == 2 %}afk{% elif user.online_status == False %}offline{% endif %}{% if user.get_class.0 %} official"><img src="{% user_class user %}" class="official-tag">{% else %}">{% endif %}
<a href="{% url "main:user-view" user.username %}">
<img src="{% avatar user %}" alt="{{ user.nickname }}" class="icon">
</a>
@@ -53,8 +53,11 @@
{% if not has_authority and request.user.can_manage %}
<button class="button" data-href="{% url "main:user-tools" user.username %}">User Settings</button>
{% endif %}
{% if not user.is_me and profile.can_block %}
<button type="button" class="button block-button">{% if profile.is_blocked %}Unblock{% else %}Block{% endif %}</button>
{% if not general and not user.is_me and profile.can_block %}
<div class="report-buttons-content">
<!-- for later use <button type="button" class="report-button report-user" data-track-label="user" data-track-action="openReportModal" data-track-category="reportViolator" data-modal-open="#report-violator-page">Report Violation</button> -->
<button type="button" class="report-button block-button">{% if profile.is_blocked %}Unblock{% else %}Block{% endif %}</button>
</div>
{% endif %}
</div>
@@ -175,7 +178,7 @@
{% endif %}
{% if profile.external %}
<div class="data-content">
<h4><span>Discord Tag</span></h4>
<h4><span>Discord</span></h4>
<div class="note">
<span>{{ profile.external }}</span>
</div>
@@ -3,8 +3,9 @@
<div class="main-column center">
<div class="post-list-outline login-page">
<form method="post">
<img src="{% static "img/menu-logo.svg" %}">
<img src="{{ brand_logo }}">
<p class="lh">{{ title }}</p>
{% if reset_supported %}
<p>If you've forgotten your password or need to reset it for some reason, you've come to the right place.<br>Yes, this works.</p>
<h3 class="label"><label>E-mail address: <input type="email" class="auth-input" name="email" placeholder="Email" required></label></h3>
{% csrf_token %}
@@ -14,6 +15,11 @@
<p>Having issues? Want to get back into your account? Try <a href="{% url "main:help-contact" %}">contacting us</a> if you need help with this.</p>
<p>Notice: Your user ID is used to log in, and is sometimes referred to as a username. It is below your nickname in most cases, please make sure you are using your user ID and your password.</p>
</div>
{% else %}
<p>Password resets are not enabled on this instance of {{ brand_name }}.
<p>To remedy this, tell the owner of the service to set up an SMTP server and specify it in their {{ brand_name }} configuration.</p>
<br>
{% endif %}
</form>
</div>
</div>
@@ -3,9 +3,9 @@
<div class="main-column center">
<div class="post-list-outline login-page">
<form method="post">
<img src="{% static "img/menu-logo.svg" %}">
<p class="lh">Reset password</p>
<p>Hello {{ user.username }}, it's time to reset your password.</p>
<img src="{{ brand_logo }}">
<p class="lh">{{ title }}</p>
<p>Welcome back, {{ user.username }}! It's time to reset your password.</p>
<h3 class="label"><label>New password: <input type="password" class="auth-input" name="password" placeholder="Password" required></label></h3>
<h3 class="label"><label>Confirm new password: <input type="password" class="auth-input" name="password_again" placeholder="Password again" required></label></h3>
{% csrf_token %}
@@ -13,7 +13,7 @@
<button type="submit" class="button">Reset</button>
</form>
<div class="ll">
<p>Once finished you can log into your account with your new password.</p>
<p>Having issues? Want to get back into your account? Try <a href="{% url "main:help-contact" %}">contacting us</a> if you need help with this.</p>
</div>
</div>
</div>
@@ -27,7 +27,7 @@
<div class="list news-list">
{% if friendrequests %}
{% for fr in friendrequests %}
<div class="news-list-content trigger" tabindex="0" id="{{ fr.unique_id }}" data-href="{% url "main:user-view" fr.source.username %}">
<div class="news-list-content trigger" tabindex="0" data-action="{% url "main:user-fr-accept" fr.source.username %}" data-href="{% url "main:user-view" fr.source.username %}">
{% user_icon_container fr.source %}
<div class="body">
<a href="{% url "main:user-view" fr.source.username %}" class="nick-name"{% if fr.source.color %}style=color:{{ fr.source.color }}{% endif %}>{{ fr.source.nickname }}</a><br><span class="timestamp"> {% time fr.created %}</span>
@@ -6,7 +6,7 @@
<h2 class="label">Frequently Asked Questions (FAQ)</h2>
<div id="guide" class="help-content">
<div class="faq">
<p>Hey there! If you have any questions about Cedar, this page aims to answer them.</p>
<p>Hey there! If you have any questions about this instance of {{ brand_name }}, this page aims to answer them.</p>
<h2>What is Cedar?</h2>
<p>Cedar is a social network that offers a safe and secure platform for users to connect and share. It is based on the Closedverse project and has some unique features compared to other sites, such as customizable communities and a drawing tool.</p>
<h3>The history of cedar</h3>
@@ -35,4 +35,4 @@
</div>
</div>
</div>
{% endblock %}--
{% endblock %}
@@ -3,7 +3,7 @@
<div class="main-column center">
<div class="post-list-outline login-page">
<form method="post">
<img src="{% static "img/menu-logo.png" %}">
<img src="{{ brand_logo }}">
<p class="lh">Reset password</p>
<p>Welcome back! It appears you've got the email, and now it's time to reset your password.</p>
<form method="post">
@@ -18,4 +18,4 @@
</form>
</div>
</div>
{% endblock %}
{% endblock %}
@@ -1,60 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Legal info</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap for this, why not? -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<center>
<h2>Closedverse - legal info</h2>
<h3>Copyright information</h3>
</center>
<pre style="white-space:pre-wrap;">
This project is not, in any way, associated with Nintendo Co, Ltd. or Hatena Co, Ltd.
Nintendo and Hatena have no involvement with this service, neither company maintains, endorses, sponsors or contributes to this. This is solely maintained, paid for, and created by Arian Kordi et al.
Please do not C&amp;D me, let me know beforehand and I will attempt to solve an issue if there is one.
If anything here infringes on your rights, please contact me:
<a href="mailto:[email protected]">[email protected]</a>
or
<a href="mailto:[email protected]">[email protected]</a>
The specified content that does not belong to Arian Kordi, the owner, is:
* The spinner "spinner-wandering-cubes" seen in Activity Feed loading, scrolling (Autopagerize), and admin management loading, which is owned and designed entirely by <em>Hammer & Chisel (Discord)</em>
* The majority of the JavaScript, CSS and HTML files and the style of <em>Miiverse</em> is owned entirely by <em>Hatena Co, Ltd.</em> and <em>Nintendo Co, Ltd.</em>
* The loading animation, originally taken from <em><a href="https://splatoon.nintendo.net/">SplatNet</a></em> and <em>Splatoon</em> by <em>Nintendo Co, Ltd.</em> and modified
I will take this project and <a href="https://github.com/ariankordi/closedverse">its GitHub repository</a> down under any valid request.
Thank you!
<em>Revision 4, updated October 21 2017</em></pre>
<center>
<h3>User content policy</h3>
</center>
<pre style="white-space:pre-wrap;">
User content is not owned by me or the site. Any users' content (posts, empathies or Yeah!s, follows, friend requests, friendships, private messages, etc..) <strong>is their sole responsibility.</strong>
I am not and do not want to be deemed responsible if any user transmits content that can spawn a legal problem.
I am only a host for the content and so is the image hosting provider(s) if applicable.
If you have a problem that requires attention by <strong>me</strong>, please contact me:
<a href="mailto:[email protected]">[email protected]</a>
or
<a href="mailto:[email protected]">[email protected]</a>
If you feel you have the need to contact law enforcement for any case, please do so. Don't contact me if you have a major legal problem. I will not forward anything to your police department because I don't have the time and I don't know where you live.
Every user must be 13 years of age or older in order to use the site. We do not follow (and personally heavily deplore) any child protection acts, such as COPPA. Any user under 12 years of age is not permitted to use this site.
Thank you!
<em>Revision 3, updated October 6 2017</em></pre>
<button type="button" class="btn btn-primary" onclick="window.history.back();">Go back</button>
{% extends "closedverse_main/layout.html" %}
{% block main-body %}{% load closedverse_user %}
{% user_sidebar request user user.profile 0 True %}
<div class="main-column" id="help">
<div class="post-list-outline">
<h2 class="label">Legal Information</h2>
<div class="help-content">
<h2>Is this actually legal?</h2>
<p>Probably not.</p>
<h2>I'm Nintendo and I want to fucking sue you.</h2>
<p>Please do not do that, I have a waifu and family to feed. <a href="{% url "main:help-contact" %}">Contact me instead.</a></p>
</div>
</div>
</body>
</html>
</div>
{% endblock %}
@@ -7,7 +7,7 @@
<div id="guide" class="help-content">
<div class="faq">
<p>You have issues logging in into your account? Follow this to (maybe) solve this issue...</p>
<h2>It says that my user doesn't exist, but it does.</h2>
<h2>It says that my user doesn't exist, but it does.</h2>
<p>Have you turned on email only login? It can only be on if you have an email address, so if you don't have one, it isn't on.<br>If it is on, please try logging in with your email address. Thank you.</p>
<h2>I forgot my password and I don't have an email address.</h2>
@@ -1,7 +1,7 @@
{% extends "closedverse_main/layout.html" %}
{% block main-body %}{% load closedverse_user %}
{% user_sidebar request user user.profile 0 True %}
<div id="help" class="main-column">
<div class="main-column" id="help">
<div class="post-list-outline">
<h2 class="label">Cedar Rules</h2>
<div class="help-content">
@@ -6,7 +6,6 @@
<h2 class="label">Server statistics</h2>
<div id="guide" class="help-content">
<div class="faq">
<p>These are the current stats of this Cedar instance:</p>
<ul>
<li>Communities: <strong>{{ communities }}</strong></li>
<li>Posts: <strong>{{ posts }}</strong></li>
@@ -104,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="{{ brand_name }}"></a></h1></li>
{% if request.user.unique_id %}
<li id="global-menu-logo"><h1><a href="/"><img src="{{ brand_logo }}" alt="{{ brand_name }}"></a></h1></li>
{% if request.user.is_authenticated %}
{% 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="User Page"></span><span>User Page</span></a></li>
<li id="global-menu-mymenu"><a href="{% url "main:user-view" request.user.username %}"><span class="icon-container {% if request.user.get_class.0 %} official"><img src="{% user_class request.user %}" class="official-tag">{% else %}">{% endif %}<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>
@@ -125,6 +125,7 @@
<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><a href="{% url "main:block-list" %}" class="symbol my-menu-openman"><span>My block list</span></a></li>
<li>
<form action="{% url "main:logout" %}" method="post" id="my-menu-logout" class="symbol">
{% csrf_token %}
@@ -3,9 +3,9 @@
<div class="main-column center">
<div class="post-list-outline login-page">
<form method="post">
<img src="{% static "img/menu-logo.svg" %}">
<h1 class="lh">Sign In</h1>
<h2 class="lh">Please sign in to access {{ brand_name }}.</h2>
<img src="{{ brand_logo }}">
<p class="lh">Log In</p>
<p>Sign in to access this instance of {{ brand_name }}</p>
<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>
@@ -15,18 +15,17 @@
<p class="red" style="margin-bottom:6px"></p>
<button type="submit" class="black-button">Sign In</button>
{% if allow_signups %}
<div class="ll">
<p>Can't remember your password? <a href="{% url "main:forgot-passwd" %}"> Reset it here!</a></a></p>
<p>If you don't have an account, you're in luck! <a href="{% url "main:signup" %}"> You can create an account there.</a></a></p>
</div>
{% endif %}
{% if not allow_signups %}
<div class="ll">
{% if allow_signups %}
<p>If you don't have an account, <a href="{% url "main:signup" %}"><b>sign up</b> here.</a></p>
{% else %}
<p>Signing up is disabled for now, check back later.</p>
{% endif %}
{% if reset_supported %}
<p>If you forgot your password, <a href="{% url "main:forgot-passwd" %}"><b>reset</b> it here.</a></p>
{% endif %}
<br><p>If you need help with logging in, see the <a href="{% url "main:help-login" %}"><b>login help</b></a> page.</p>
</div>
{% endif %}
</form>
</div>
</div>
@@ -3,61 +3,50 @@
<div class="main-column"><div class="post-list-outline">
<h2 class="label">Change settings for {{ user.username }}</h2>
<form class="setting-form" method="post" action={% url "main:user-tools-set" user.username %}>
<p>Yes, this form is now ugly, but it's way more powerful.</p>
<li class="setting">
{% user_sidebar_info user %}
<p class="settings-label">Set Username:</p>
<div class="center center-input">
<input type="text" name="username" maxlength="32" placeholder="New Username" value="{{ user.username }}">
</div>
<p class="note">Change the account username here.<br />If you need to change this, make sure the user is aware of the change, otherwise they won't be able to log in.</p>
{% for field in user_form %}
<li class='setting'>
{% if field.field.widget.input_type == 'checkbox' %}
<p>&nbsp;</p>
{{ field }}{{ field.label_tag }}
{% elif field.field.widget.input_type == 'number' %}
<p class='settings-label'>{{ field.label_tag }}</p>
{{ field }}
{% else %}
<p class='settings-label'>{{ field.label_tag }}</p>
<div class="center-input">{{ field }}</div>
{% endif %}
<p class='note'>{{ field.help_text }}</p>
</li>
{% endfor %}
{% for field in profile_form %}
<li class='setting'>
{% if field.field.widget.input_type == 'checkbox' %}
<p>&nbsp;</p>
{{ field }}{{ field.label_tag }}
{% elif field.field.widget.input_type == 'number' %}
<p class='settings-label'>{{ field.label_tag }}</p>
{{ field }}
{% else %}
<p class='settings-label'>{{ field.label_tag }}</p>
<div class="center-input">{{ field }}</div>
{% endif %}
<p class='note'>{{ field.help_text }}</p>
</li>
{% endfor %}
</li>
</li>
<li class="setting-profile-comment">
<p class="settings-label">Profile comment:</p>
<textarea class="textarea" name="profile_comment" maxlength="2200" placeholder="Profile comment">{{ profile.comment }}</textarea>
<p class="note">In case you need to change something in this person's profile comment, you can do so here.</p>
</li>
<li class="setting">
<p class="settings-label">Set Nickname:</p>
<div class="center center-input">
<input type="text" name="nickname" maxlength="32" placeholder="New Username" value="{{ user.nickname }}">
</div>
<p class="note">Change the account nickname here</p>
</li>
<li class="setting">
<p class="settings-label">Specify warning or ban reason:</p>
<div class="center center-input">
<input type="text" name="warned_reason" maxlength="400" placeholder="Reason" value="{% if user.warned_reason %}{{ user.warned_reason }}{% endif %}">
</div>
<p class="note">If you are going to warn or disable someone, PLEASE SPECIFY WHY HERE!<br />Nothing feels worse than to get banned or warned without knowing why.</p>
<input type="checkbox" name="warned" {% if user.warned %}checked{% endif %}>Show warning
</li>
<li class="setting">
<p class="settings-label">Account restrictions:</p>
<input type="checkbox" name="active" {% if not user.active %}checked{% endif %}>Disable account:
<p class="note">Check this setting to disable the account and prevent new accounts from being made. This is basically the main way to ban people. Remember to specify a reason for doing this.</p>
<p>&nbsp;</p>
<input type="checkbox" name="cannot_edit" {% if profile.cannot_edit %}checked{% endif %}>Lock user settings:
<p class="note">If you need to lock someone's profile settings, you can do that here!</p>
<input type="number" name="post_limit" min="0" max="999" value="{{ profile.limit_post }}"> Post limit:
<p class="note">If you need to set a post limit for someone, you can do that here, Set this back to "0" to remove the restriction.</p>
<input type="checkbox" name="let_freedom" {% if not profile.let_freedom %}checked{% endif %}>Restrict image posting:
<p class="note">If you need to prevent someone from posting images and URLs, you can do that here. This will also prevent this user from making new accounts on the same IP address.</p>
<input type="checkbox" name="can_invite" {% if not user.can_invite %}checked{% endif %}>Restrict invite creation:
<p class="note">This site has an invitation function. If this invite function is active, users will need a code to sign up. Every user can make a code as long as they are allowed to do so. Check this box to prevent this user from making invites.</p>
</li>
<ul>
<li class="setting">
<p class="settings-label">Purge content:</p>
<input name="purge_posts" type="checkbox" />Purge posts:
<p class="note">Remove all posts from this user.</p>
<input name="purge_comments" type="checkbox" />Purge comments:
<p class="note">Remove all comments from this user.</p>
<p>&nbsp;</p>
<input name="restore_content" type="checkbox" />Restore comments and posts:
<p class="note">Restore purged comments and posts from this user.</p>
{% for field in purge_form %}
{{ field }}{{ field.label_tag }}
<p class='note'>{{ field.help_text }}</p>
{% endfor %}
</li>
</ul>
<li class="setting">
<div class="center center-input">
<p class="settings-label">Metadata:</p>
@@ -70,6 +59,7 @@
<a class='button' href="{% url "main:user-tools-meta" user.username %}">View private info</a>
{% endif %}
</div>
</li>
{% if accountmatch %}
<h3>Account(s) found with the same IP address.</h3>
<div class="user-data">
@@ -82,6 +72,7 @@
</table>
</div>
{% endif %}
{% if seen_by %}
<h3>Account viewed by:</h3>
<div class="user-data">
@@ -99,6 +90,7 @@
</table>
</div>
{% endif %}
{% if has_seen %}
<h3>This user has viewed:</h3>
<div class="user-data">
@@ -116,11 +108,11 @@
</table>
</div>
{% endif %}
</li>
{% csrf_token %}
<div class="form-buttons">
<input type="submit" class="black-button apply-button" value="Save">
<p class="note">More settings will be added soon!</p>
</div>
</form></div></div>
{% endblock %}
@@ -10,6 +10,7 @@
</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 %}
@@ -22,6 +23,7 @@
<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">
@@ -70,7 +72,7 @@
{% endif %}
{% if post.poll %}
<div class="post-poll{% if post.poll.has_vote %} selected{% endif %}" data-action="{% url "main:poll-vote" post.poll.unique_id %}" data-action-unvote="{% url "main:poll-unvote" post.poll.unique_id %}">
<div class="post-poll{% if post.poll.has_vote %} selected{% endif %}" data-action="{% url "main:poll-vote" post.poll.id %}" data-action-unvote="{% url "main:poll-unvote" post.poll.id %}">
<a class="poll-votes">{{ post.poll.num_votes }} vote{% if not post.poll.num_votes == 1 %}s{% endif %}</a>
<div class="poll-options{% if post.screenshot %} with-background" style="background-image:url('{{ post.screenshot }}')"
<div class="poll-background" style="width:50%"></div>{% else %}">{% endif %}
@@ -76,11 +76,11 @@
<p class="note">If you want to advertise a URL of some sorts on your profile, this is where it goes.</p>
</li>
<li class="setting-website">
<p class="settings-label">Discord Tag</p>
<p class="settings-label">Discord Username</p>
<div class="center center-input">
<input type="text" name="external" maxlength="255" placeholder="Discord Tag" value="{{ profile.external }}">
</div>
<p class="note">Actually, you don't have to put a Discord Tag here, you can put anything here, such as your PlayStation Network account. Discord sure is popular though.</p>
<p class="note">Actually, you don't have to put a Discord username here, you can put anything here, such as your Threads username or X username. Discord sure is popular though.</p>
</li>
<li class="setting-website">
<p class="settings-label">What are you?</p>
@@ -3,7 +3,7 @@
<div class="main-column center">
<div class="post-list-outline login-page">
<form method="post" onload="">
<img src="{% static "img/menu-logo.svg" %}">
<img src="{{ brand_logo }}">
<p class="lh">Sign Up</p>
<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>
@@ -5,7 +5,7 @@
<div class="main-column"><div class="post-list-outline">
<h2 class="label">Search Users</h2>
<form class="search user-search" action="{% url "main:user-search" %}">
<input type="text" name="query" value="{{ query }}" placeholder="SMF9, Robby, etc." minlength="1" maxlength="16">
<input type="text" name="query" value="{{ query }}" placeholder="Arian K, PF2M, etc." minlength="1" maxlength="16">
<input type="submit" value="q" title="Search">
</form>
{% if users %}
@@ -22,4 +22,4 @@ Try searching for something different.</p>
</div>
{% endif %}
</div></div>
{% endblock %}
{% endblock %}
@@ -1,6 +1,6 @@
{% extends "closedverse_main/layout.html" %}
{% block main-body %}{% load closedverse_user %}
<div class="no-content"><div class="window-create-new-topic"><p>This user is blocked.</p>
{% if profile.can_block %}<div class="post-buttons-content"><button type="button" class="button block-button">Unblock</button></div>{% endif %}
<div class="post-buttons-content"><button type="button" class="button block-button">Unblock</button></div>
{% block_modal user profile %}
{% endblock %}