linting fixes

This commit is contained in:
Hugh Rundle 2021-10-05 21:48:59 +11:00
parent f8e0de1ea9
commit ec7d0db843
7 changed files with 24 additions and 22 deletions

View file

@ -134,8 +134,10 @@ let BookWyrm = new class {
let trigger = event.currentTarget;
let hidden = trigger.closest('.hidden-form').querySelectorAll('.is-hidden')[0];
// if the form has already been revealed, there is no '.is-hidden' element
// so this doesn't really work as a toggle
/**
* if the form has already been revealed, there is no '.is-hidden' element
* so this doesn't really work as a toggle
*/
if (hidden) {
this.addRemoveClass(hidden, 'is-hidden', !hidden);

View file

@ -5,4 +5,4 @@
Add new members!
</h2>
{% include 'groups/suggested_users.html' with suggested_users=suggested_users query=query %}
{% endblock %}
{% endblock %}

View file

@ -64,21 +64,21 @@
{% if group.user == request.user %}
<section class="column is-one-quarter">
<div class="block">
<h2 class="title is-5">Find new members</h2>
<form class="field has-addons" method="get" action="{% url 'group-find-users' group.id %}">
<div class="control">
<input type="text" name="query" value="{{ request.GET.query }}" class="input" placeholder="{% trans 'Search to add a user' %}" aria-label="{% trans 'Search to add a user' %}">
</div>
<div class="control">
<button class="button" type="submit">
<span class="icon icon-search" title="{% trans 'Search' %}">
<span class="is-sr-only">{% trans "Search" %}</span>
</span>
</button>
</div>
</form>
</div>
<div class="block">
<h2 class="title is-5">Find new members</h2>
<form class="field has-addons" method="get" action="{% url 'group-find-users' group.id %}">
<div class="control">
<input type="text" name="query" value="{{ request.GET.query }}" class="input" placeholder="{% trans 'Search to add a user' %}" aria-label="{% trans 'Search to add a user' %}">
</div>
<div class="control">
<button class="button" type="submit">
<span class="icon icon-search" title="{% trans 'Search' %}">
<span class="is-sr-only">{% trans "Search" %}</span>
</span>
</button>
</div>
</form>
</div>
</section>
{% endif %}

View file

@ -45,4 +45,4 @@
{% endif %}
</button>
</form>
{% endif %}
{% endif %}

View file

@ -17,4 +17,4 @@
accepted your invitation to join group "<a href="{{ group_path }}">{{ group_name }}</a>"
{% endblocktrans %}
{% endblock %}
{% endblock %}

View file

@ -4,7 +4,7 @@
{% load utilities %}
{% block primary_link %}{% spaceless %}
{{ notification.related_group.local_path }}
{{ notification.related_group.local_path }}
{% endspaceless %}{% endblock %}
{% block icon %}

View file

@ -4,7 +4,7 @@
{% load utilities %}
{% block primary_link %}{% spaceless %}
{{ notification.related_group.local_path }}
{{ notification.related_group.local_path }}
{% endspaceless %}{% endblock %}
{% block icon %}