update indenting for linter

This commit is contained in:
Hugh Rundle 2021-10-04 22:20:02 +11:00
parent 05969c5311
commit 3a90311129
11 changed files with 109 additions and 105 deletions

View file

@ -133,8 +133,10 @@ let BookWyrm = new class {
revealForm(event) { revealForm(event) {
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 // if the form has already been revealed, there is no '.is-hidden' element
// so this doesn't really work as a toggle // 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);
} }
@ -150,6 +152,7 @@ let BookWyrm = new class {
let trigger = event.currentTarget; let trigger = event.currentTarget;
let targetId = trigger.dataset.hides let targetId = trigger.dataset.hides
let visible = document.getElementById(targetId) let visible = document.getElementById(targetId)
this.addRemoveClass(visible, 'is-hidden', true); this.addRemoveClass(visible, 'is-hidden', true);
} }

View file

@ -8,7 +8,7 @@
{% endblock %} {% endblock %}
{% block modal-footer %} {% block modal-footer %}
<div > <div>
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="id" value="{{ group.id }}"> <input type="hidden" name="id" value="{{ group.id }}">
<button class="button is-danger" type="submit"> <button class="button is-danger" type="submit">

View file

@ -1,8 +1,8 @@
{% extends 'groups/group.html' %} {% extends 'groups/group.html' %}
{% block searchresults %} {% block searchresults %}
<h2 class="title is-5"> <h2 class="title is-5">
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

@ -30,7 +30,7 @@
</div> </div>
{% endwith %} {% endwith %}
{% endfor %} {% endfor %}
</div> </div>
{% if group.user != request.user and group|is_member:request.user %} {% if group.user != request.user and group|is_member:request.user %}
<form action="{% url 'remove-group-member' %}" method="POST" class="my-4"> <form action="{% url 'remove-group-member' %}" method="POST" class="my-4">

View file

@ -36,6 +36,7 @@
{% endfor %} {% endfor %}
</div> </div>
{% else %} {% else %}
<p>No potential members found for "{{ query }}"</p><br/> <p>No potential members found for "{{ query }}"</p>
<br/>
{% endif %} {% endif %}

View file

@ -8,13 +8,13 @@
{% endspaceless %}{% endblock %} {% endspaceless %}{% endblock %}
{% block icon %} {% block icon %}
<span class="icon icon-local"></span> <span class="icon icon-local"></span>
{% endblock %} {% endblock %}
{% block description %} {% block description %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
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

@ -8,13 +8,13 @@
{% endspaceless %}{% endblock %} {% endspaceless %}{% endblock %}
{% block icon %} {% block icon %}
<span class="icon icon-local"></span> <span class="icon icon-local"></span>
{% endblock %} {% endblock %}
{% block description %} {% block description %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
has left your group "<a href="{{ group_path }}">{{ group_name }}</a>" has left your group "<a href="{{ group_path }}">{{ group_name }}</a>"
{% endblocktrans %} {% endblocktrans %}
{% endblock %} {% endblock %}

View file

@ -8,7 +8,7 @@
{% endspaceless %}{% endblock %} {% endspaceless %}{% endblock %}
{% block icon %} {% block icon %}
<span class="icon icon-local"></span> <span class="icon icon-local"></span>
{% endblock %} {% endblock %}
{% block description %} {% block description %}
@ -20,9 +20,9 @@ has been removed from your group "<a href="{{ group_path }}">{{ group_name }}</a
{% else %} {% else %}
{% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {% blocktrans with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
You have been removed from the "<a href="{{ group_path }}">{{ group_name }}</a> group" You have been removed from the "<a href="{{ group_path }}">{{ group_name }}</a> group"
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}