FIx HTML issues found by djLint (#409)
This commit is contained in:
parent
9876b81f66
commit
3679448cdf
|
@ -238,7 +238,7 @@ urlpatterns = [
|
|||
# Identity selection
|
||||
path("@<handle>/activate/", identity.ActivateIdentity.as_view()),
|
||||
path("identity/select/", identity.SelectIdentity.as_view(), name="identity_select"),
|
||||
path("identity/create/", identity.CreateIdentity.as_view()),
|
||||
path("identity/create/", identity.CreateIdentity.as_view(), name="identity_create"),
|
||||
# Flat pages
|
||||
path("about/", core.About.as_view(), name="about"),
|
||||
path(
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
|
||||
{% if current_page == "home" %}
|
||||
<h2>Compose</h2>
|
||||
<form action="/compose/" method="POST" class="compose">
|
||||
<form action="{% url "compose" %}" method="POST" class="compose">
|
||||
{% csrf_token %}
|
||||
{{ form.text }}
|
||||
{{ form.content_warning }}
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
<h3 style="display: none;">Options: {% if post.type_data.mode == "oneOf" %}<small>(choose one)</small>{% endif %}</h3>
|
||||
{% for item in post.type_data.options %}
|
||||
{% if forloop.first %}<ul>{% endif %}{% widthratio item.votes post.type_data.voter_count 100 as item_percent %}
|
||||
<li><label class="poll-option">
|
||||
<li>
|
||||
<label class="poll-option">
|
||||
<input style="display:none" name="vote-options" type="{% if post.type_data.mode == "oneOf" %}radio{% else %}checkbox{% endif %}" value="0">
|
||||
<span class="poll-number" title="{{ item.votes }} votes">{{ item_percent }}%</span>
|
||||
<span class="poll-option-text">{{ item.name }}</span>
|
||||
</label>
|
||||
</li>
|
||||
{% if forloop.last %}</ul>{% endif %}
|
||||
{% endfor %}
|
||||
<div class="poll-footer">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block content %}
|
||||
<h1>Confirm Delete</h1>
|
||||
<section class="">
|
||||
<section>
|
||||
<form action="." method="POST">
|
||||
{% csrf_token %}
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
|||
<a class="button" href="javascript:history.back()">Cancel</a>
|
||||
<button class="delete">Delete</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<small>
|
||||
{% if announcement.service_announcement %}{{ domain.service_domain }}{% endif %}
|
||||
</small>
|
||||
</span>
|
||||
</td>
|
||||
<td class="stat">
|
||||
{% if not announcement.published %}
|
||||
Draft
|
||||
|
|
|
@ -24,5 +24,5 @@
|
|||
<button class="delete">Confirm Deletion</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<small>
|
||||
{% if domain.service_domain %}{{ domain.service_domain }}{% endif %}
|
||||
</small>
|
||||
</span>
|
||||
</td>
|
||||
<td class="stat">
|
||||
{% if domain.public %}Public{% else %}Private{% endif %}
|
||||
{% if domain.default %}(Default){% endif %}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
</table>
|
||||
{% endif %}
|
||||
{% empty %}
|
||||
<p class="help"></p>Hashtag is either not used or stats have not been computed yet.</p>
|
||||
<p class="help">Hashtag is either not used or stats have not been computed yet.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<legend>Stats</legend>
|
||||
<table class="metadata">
|
||||
<tr>
|
||||
<th>Status</td>
|
||||
<th>Status</th>
|
||||
<td>
|
||||
{% if identity.limited %}
|
||||
Limited
|
||||
|
@ -23,37 +23,37 @@
|
|||
</tr>
|
||||
{% if identity.local %}
|
||||
<tr>
|
||||
<th>Type</td>
|
||||
<th>Type</th>
|
||||
<td>Local Identity</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Followers</td>
|
||||
<th>Followers</th>
|
||||
<td>{{ identity.inbound_follows.count }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Following</td>
|
||||
<th>Following</th>
|
||||
<td>{{ identity.outbound_follows.count }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<th>Type</td>
|
||||
<th>Type</th>
|
||||
<td>Remote Identity</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Local Followers</td>
|
||||
<th>Local Followers</th>
|
||||
<td>{{ identity.inbound_follows.count }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Following Locals</td>
|
||||
<th>Following Locals</th>
|
||||
<td>{{ identity.outbound_follows.count }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th>Posts</td>
|
||||
<th>Posts</th>
|
||||
<td>{{ identity.posts.count }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>First Seen</td>
|
||||
<th>First Seen</th>
|
||||
<td>{{ identity.created|timesince }} ago</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -73,23 +73,23 @@
|
|||
<table class="metadata">
|
||||
{% if not identity.local %}
|
||||
<tr>
|
||||
<th>Last Fetched</td>
|
||||
<th>Last Fetched</th>
|
||||
<td>{{ identity.fetched|timesince }} ago</td>
|
||||
</tr>
|
||||
{% if identity.state == "outdated" %}
|
||||
<tr>
|
||||
<th>Attempting Fetch Since</td>
|
||||
<th>Attempting Fetch Since</th>
|
||||
<td>{{ identity.state_changed|timesince }} ago</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th>Actor URI</td>
|
||||
<th>Actor URI</th>
|
||||
<td>{{ identity.actor_uri }}</td>
|
||||
</tr>
|
||||
{% if not identity.local %}
|
||||
<tr>
|
||||
<th>Inbox URI</td>
|
||||
<th>Inbox URI</th>
|
||||
<td>{{ identity.inbox_uri }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
@ -101,17 +101,17 @@
|
|||
</fieldset>
|
||||
<div class="buttons">
|
||||
{% if not identity.local %}
|
||||
<button class="left" name="fetch">Force Fetch</a>
|
||||
<button class="left" name="fetch">Force Fetch</button>
|
||||
{% endif %}
|
||||
{% if identity.limited %}
|
||||
<button class="left delete" name="unlimit">Unlimit</a>
|
||||
<button class="left delete" name="unlimit">Unlimit</button>
|
||||
{% else %}
|
||||
<button class="left delete" name="limit">Limit</a>
|
||||
<button class="left delete" name="limit">Limit</button>
|
||||
{% endif %}
|
||||
{% if identity.blocked %}
|
||||
<button class="left delete" name="unblock">Unblock</a>
|
||||
<button class="left delete" name="unblock">Unblock</button>
|
||||
{% else %}
|
||||
<button class="left delete" name="block">Block</a>
|
||||
<button class="left delete" name="block">Block</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="buttons">
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<span class="bad">Expired</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</time>
|
||||
</td>
|
||||
<td class="stat">
|
||||
{% if invite.uses %}
|
||||
{{ invite.uses }}
|
||||
|
@ -41,7 +41,7 @@
|
|||
Infinite
|
||||
{% endif %}
|
||||
<small>use{{ invite.uses|pluralize }} left</small>
|
||||
</time>
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr class="empty">
|
||||
|
|
|
@ -8,15 +8,15 @@
|
|||
<legend>{{ model }}</legend>
|
||||
<table class="metadata">
|
||||
<tr>
|
||||
<th>Pending</td>
|
||||
<th>Pending</th>
|
||||
<td>{{ stats.most_recent_queued }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Processed today</td>
|
||||
<th>Processed today</th>
|
||||
<td>{{ stats.most_recent_handled.1 }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>This month</td>
|
||||
<th>This month</th>
|
||||
<td>{{ stats.most_recent_handled.2 }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<small>
|
||||
identit{{ user.num_identities|pluralize:"y,ies" }}
|
||||
</small>
|
||||
</span>
|
||||
</td>
|
||||
<td class="actions">
|
||||
{% if user.banned %}
|
||||
<span class="bad">Banned</span>
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<fieldset>
|
||||
<legend>Password Set</legend>
|
||||
<p>
|
||||
Your password for <tt>{{ email }}</tt> has been set. You can
|
||||
now <a href="/auth/login/">login</a>.
|
||||
Your password for <code>{{ email }}</code> has been set. You can
|
||||
now <a href="{% url "login" %}">login</a>.
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<fieldset>
|
||||
<legend>Email Sent</legend>
|
||||
<p>
|
||||
An email has been sent to <tt>{{ email }}</tt> - please follow
|
||||
An email has been sent to <code>{{ email }}</code> - please follow
|
||||
the link inside to finish creating your account.
|
||||
</p>
|
||||
</fieldset>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<fieldset>
|
||||
<legend>Password Reset Sent</legend>
|
||||
<p>
|
||||
Please check your email at <tt>{{ email }}</tt> for the reset link.
|
||||
Please check your email at <code>{{ email }}</code> for the reset link.
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
{% block custom_head %}{% if config.custom_head %}{{ config.custom_head|safe }}{% endif %}{% endblock %}
|
||||
</head>
|
||||
<body class="{% block body_class %}{% endblock %}" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
|
||||
<a id='skip-to-main' class='screenreader-text' href='#main-content'>Skip to Content</a>
|
||||
<a id='skip-to-nav' class='screenreader-text' href='#side-navigation'>Skip to Navigation</a>
|
||||
<a id="skip-to-main" class="screenreader-text" href="#main-content">Skip to Content</a>
|
||||
<a id="skip-to-nav" class="screenreader-text" href="#side-navigation">Skip to Navigation</a>
|
||||
<main>
|
||||
{% block body_main %}
|
||||
<header>
|
||||
|
@ -67,13 +67,13 @@
|
|||
</a>
|
||||
{% else %}
|
||||
<div class="gap"></div>
|
||||
<a href="/auth/login/" role="menuitem" class="identity"><i class="fa-solid fa-right-to-bracket"></i> Login</a>
|
||||
<a href="{% url "login" %}" role="menuitem" class="identity"><i class="fa-solid fa-right-to-bracket"></i> Login</a>
|
||||
{% endif %}
|
||||
</menu>
|
||||
</header>
|
||||
|
||||
{% block full_content %}
|
||||
{% include 'activities/_image_viewer.html' %}
|
||||
{% include "activities/_image_viewer.html" %}
|
||||
{% block pre_content %}
|
||||
{% endblock %}
|
||||
<div class="columns">
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<header>
|
||||
<menu>
|
||||
{% if not request.user.is_authenticated and current_page == "about" and config.signup_allowed %}
|
||||
<a href="/auth/signup/">Sign Up</a>
|
||||
<a href="{% url "signup" %}">Sign Up</a>
|
||||
{% else %}
|
||||
<a href="/">Home</a>
|
||||
{% endif %}
|
||||
|
@ -21,7 +21,7 @@
|
|||
{% if request.user.is_authenticated %}
|
||||
<a href="javascript:history.back()">Back</a>
|
||||
{% else %}
|
||||
<a href="/auth/login/">Login</a>
|
||||
<a href="{% url "login" %}">Login</a>
|
||||
{% endif %}
|
||||
</menu>
|
||||
</header>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<nav>
|
||||
<a href="/identity/select/" {% if identities %}class="selected"{% endif %} title="Select Identity">
|
||||
<a href="{% url "identity_select" %}" {% if identities %}class="selected"{% endif %} title="Select Identity">
|
||||
<i class="fa-solid fa-users-viewfinder"></i> Select Identity
|
||||
</a>
|
||||
<a href="/identity/create/" {% if form %}class="selected"{% endif %} title="Create Identity">
|
||||
<a href="{% url "identity_create" %}" {% if form %}class="selected"{% endif %} title="Create Identity">
|
||||
<i class="fa-solid fa-plus"></i> Create Identity
|
||||
</a>
|
||||
<a href="/auth/logout/" title="Logout">
|
||||
<a href="{% url "logout" %}" title="Logout">
|
||||
<i class="fa-solid fa-right-from-bracket"></i> Logout
|
||||
</a>
|
||||
{% if request.user.admin %}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{% empty %}
|
||||
<p class="option empty">You have no identities.</p>
|
||||
{% endfor %}
|
||||
<a href="/identity/create/" class="option new">
|
||||
<a href="{% url "identity_create" %}" class="option new">
|
||||
<i class="fa-solid fa-plus"></i> Create a new identity
|
||||
</a>
|
||||
</section>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %} title="Login & Security">
|
||||
<i class="fa-solid fa-key"></i> Login & Security
|
||||
</a>
|
||||
<a href="/auth/logout/">
|
||||
<a href="{% url "logout" %}">
|
||||
<i class="fa-solid fa-right-from-bracket" title="Logout"></i> Logout
|
||||
</a>
|
||||
{% if request.user.moderator or request.user.admin %}
|
||||
|
|
|
@ -23,12 +23,12 @@ class Announcement(models.Model):
|
|||
start = models.DateTimeField(
|
||||
null=True,
|
||||
blank=True,
|
||||
help_text="When the announcement will start appearing.\nLeave blank to have it begin as soon as it is published.\nFormat: <tt>2023-01-01</tt> or <tt>2023-01-01 12:30:00</tt>",
|
||||
help_text="When the announcement will start appearing.\nLeave blank to have it begin as soon as it is published.\nFormat: <code>2023-01-01</code> or <code>2023-01-01 12:30:00</code>",
|
||||
)
|
||||
end = models.DateTimeField(
|
||||
null=True,
|
||||
blank=True,
|
||||
help_text="When the announcement will stop appearing.\nLeave blank to have it display indefinitely.\nFormat: <tt>2023-01-01</tt> or <tt>2023-01-01 12:30:00</tt>",
|
||||
help_text="When the announcement will stop appearing.\nLeave blank to have it display indefinitely.\nFormat: <code>2023-01-01</code> or <code>2023-01-01 12:30:00</code>",
|
||||
)
|
||||
|
||||
include_unauthenticated = models.BooleanField(default=False)
|
||||
|
|
Loading…
Reference in New Issue