- Added list_filter in admin.py for more models.
- IP bans now work when not signed in
- Invites are void if you are banned or disabled.
- Removed Discord video support (it was a pointless feature)
- Various HTML changes
- Made the theme much darker.
- Changed the color of the logo and favicon.

Too lazy to change the rest of the assets for now.
This commit is contained in:
some weird guy
2023-09-29 14:41:44 -07:00
parent 85047883cc
commit e572f997d2
17 changed files with 315 additions and 339 deletions
@@ -7,7 +7,7 @@
<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" name="screen">
<input accept="image/gif, image/png, image/jpeg, image/jpg, image/svg+xml, image/webp, 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
@@ -40,7 +40,7 @@
</div>
{% if user.has_freedom %}
<input type="text" class="textarea-line url-form" name="url" placeholder="URL/YT/Discord video" maxlength="1024">
<input type="text" class="textarea-line url-form" name="url" placeholder="URL / YouTube Video" maxlength="1024">
{% file_button %}
{% endif %}
@@ -20,16 +20,14 @@
<span class="spoiler">(handwritten)</span>
{% endif %}
</p>
{% if post.yt_vid %}
<a href="{% url "main:post-view" post.id %}" class="screenshot-container video"><img height="48" src="https://i.ytimg.com/vi/{{ post.yt_vid }}/default.jpg"></a>
{% elif post.discord_vid %}
<div class="screenshot-container video"><video src="{{ post.url }}" width="50" height="48"></video></div>
{% if post.yt_vid %}
<a href="{% url "main:post-view" post.id %}" class="{% if not for_announcements %}screenshot-container {% else %}announcement-container {% endif %}video"><img height="48" src="https://i.ytimg.com/vi/{{ post.yt_vid }}/default.jpg"></a>
{% endif %}
{% if post.screenshot %}
<a href="{% url "main:post-view" post.id %}" class="{% if not for_announcements %}screenshot-container {% endif %}still-image"><img src="{{ post.screenshot }}"></a>
<a href="{% url "main:post-view" post.id %}" class="{% if not for_announcements %}screenshot-container {% else %}announcement-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>
<div class="{% if not for_announcements %}screenshot-container {% else %}announcement-container {% endif %} 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>
@@ -4,17 +4,27 @@
{% if user.banned %}
<div class="notice" style="background-color: #ff9797;border: 1px solid #ff5252;">
<b>Notice</b>: This user is banned.
<div>
{% if user.active_ban.reason %}
<p>Reason: "{{ user.active_ban.reason }}"</p>
{% endif %}
</div>
{% endif %}
{% if not user.is_active %}
<div class="notice" style="background-color: #ff9797;border: 1px solid #ff5252;">
<b>Notice</b>: This account has been disabled indefinitely.
</div>
{% endif %}
{% if profile.limit_post and user.limit_remaining <= 0 and not user.active_ban %}
<div class="notice">
<b>Notice</b>: This user is out of posts for today.
</div>
{% endif %}
<div class="sidebar-container">
{% if profile.favorite.screenshot %}
<a href="{% url "main:post-view" profile.favorite_id %}" id="sidebar-cover" style="background-image:url({{ profile.favorite.screenshot }})">
<a href="{% url "main:post-view" profile.favorite_id %}" id="sidebar-cover">
<img src="{{ profile.favorite.screenshot }}" class="sidebar-cover-image">
</a>
{% endif %}
@@ -158,6 +168,14 @@
<span>#{{ user.id }}</span>
</div>
</div>
{% if profile.limit_post and request.user.can_manage %}
<div class="data-content">
<h4><span>Post Limit</span></h4>
<div class="note">
<span>{{ profile.limit_post }} ({{ user.limit_remaining }} left)</span>
</div>
</div>
{% endif %}
<div class="data-content">
<h4><span>Date Joined</span></h4>
<div class="note">
@@ -20,7 +20,7 @@
{% endfor %}
</p>
<button type="submit" class="black-button">Sign In</button>
<button type="submit" class="button">Sign In</button>
<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>
@@ -31,9 +31,6 @@
<div class="user-name-content">
{% if post.creator.get_class.1 %}<p class="user-organization">{% user_level post.creator %}</p>{% endif %}
{% p_username post.creator %}
{% if not post.creator.is_active %}
<p style="color: #f00;">Banned</p>
{% endif %}
<p class="timestamp-container">
<span class="timestamp">{% time post.created %}</span>
{% if post.drawing %}
@@ -7,7 +7,7 @@
<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>
{% 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 %}
{% if invite_only %}<h3 class="label"><label><span class="red">*</span> Invite key: <input type="text" class="auth-input" name="invite_code" maxlength="64" minlength="4" placeholder="Invite key"></label></h3>{% endif %}
<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 }}">
@@ -26,6 +26,7 @@
<button type="submit" class="button" onclick="event.preventDefault();cac();">Create account</button>
<div class="ll">
<p>All fields with a red asterisk (<span class="red">*</span>) are required.</p>
{% if invite_only %}<p>You need an invite key to sign up to {{ brand_name }}. If you don't have one, you're out of luck.</p>{% endif %}
<p>NNIDs are only required for getting a Mii from.</p>
<p>You will be able to change your avatar (or use a custom one) after you sign up.</p>
<p><span class="red">%</span>: If you don't fill in your email address, you can't reset your password until you have one.</p>