linting fixes
This commit is contained in:
parent
f8e0de1ea9
commit
ec7d0db843
@ -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);
|
||||||
|
@ -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 %}
|
||||||
|
|
||||||
|
@ -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 %}
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user