[lint] Fix white spaces in HTML.

This commit is contained in:
Fabien Basmaison 2021-03-04 19:42:23 +01:00
parent 1cb84b0f62
commit c370cad7f9
3 changed files with 18 additions and 13 deletions

View file

@ -11,16 +11,16 @@
{% csrf_token %} {% csrf_token %}
<label class="label" for="source"> <label class="label" for="source">
<p>{% trans "Data source" %}</p> <p>{% trans "Data source" %}</p>
<div class="select {{ class }}"> <div class="select {{ class }}">
<select name="source" id="source"> <select name="source" id="source">
<option value="GoodReads" {% if current == 'GoodReads' %}selected{% endif %}> <option value="GoodReads" {% if current == 'GoodReads' %}selected{% endif %}>
GoodReads GoodReads
</option> </option>
<option value="LibraryThing" {% if current == 'LibraryThing' %}selected{% endif %}> <option value="LibraryThing" {% if current == 'LibraryThing' %}selected{% endif %}>
LibraryThing LibraryThing
</option> </option>
</select> </select>
</div> </div>
</label> </label>

View file

@ -67,7 +67,7 @@
</div> </div>
<div class="navbar-end"> <div class="navbar-end">
{% if request.user.is_authenticated %} {% if request.user.is_authenticated %}
<div class="navbar-item has-dropdown is-hoverable"> <div class="navbar-item has-dropdown is-hoverable">
<div class="navbar-link pulldown-menu" role="button" aria-expanded="false" tabindex="0" aria-haspopup="true" aria-controls="navbar-dropdown"><p> <div class="navbar-link pulldown-menu" role="button" aria-expanded="false" tabindex="0" aria-haspopup="true" aria-controls="navbar-dropdown"><p>
{% include 'snippets/avatar.html' with user=request.user %} {% include 'snippets/avatar.html' with user=request.user %}

View file

@ -7,9 +7,14 @@
<div class="field has-addons mb-0"> <div class="field has-addons mb-0">
<div class="control"> <div class="control">
<input <input
aria-label="{% if readthrough.progress_mode == 'PG' %}Current page{% else %}Percent read{% endif %}" class="input is-small"
class="input is-small" type="number" min="0" type="number"
name="progress" size="3" value="{{ readthrough.progress|default:'' }}"> name="progress"
value="{{ readthrough.progress|default:'' }}"
min="0"
size="3"
aria-label="{% if readthrough.progress_mode == 'PG' %}Current page{% else %}Percent read{% endif %}"
/>
</div> </div>
<div class="control select is-small"> <div class="control select is-small">
<select name="progress_mode" aria-label="Progress mode"> <select name="progress_mode" aria-label="Progress mode">