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 trigger = event.currentTarget;
let hidden = trigger.closest('.hidden-form').querySelectorAll('.is-hidden')[0]; 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) { if (hidden) {
this.addRemoveClass(hidden, 'is-hidden', !hidden); this.addRemoveClass(hidden, 'is-hidden', !hidden);

View file

@ -5,4 +5,4 @@
Add new members! Add new members!
</h2> </h2>
{% include 'groups/suggested_users.html' with suggested_users=suggested_users query=query %} {% 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 %} {% if group.user == request.user %}
<section class="column is-one-quarter"> <section class="column is-one-quarter">
<div class="block"> <div class="block">
<h2 class="title is-5">Find new members</h2> <h2 class="title is-5">Find new members</h2>
<form class="field has-addons" method="get" action="{% url 'group-find-users' group.id %}"> <form class="field has-addons" method="get" action="{% url 'group-find-users' group.id %}">
<div class="control"> <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' %}"> <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>
<div class="control"> <div class="control">
<button class="button" type="submit"> <button class="button" type="submit">
<span class="icon icon-search" title="{% trans 'Search' %}"> <span class="icon icon-search" title="{% trans 'Search' %}">
<span class="is-sr-only">{% trans "Search" %}</span> <span class="is-sr-only">{% trans "Search" %}</span>
</span> </span>
</button> </button>
</div> </div>
</form> </form>
</div> </div>
</section> </section>
{% endif %} {% endif %}

View file

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

View file

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

View file

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

View file

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