Skip to content

Commit

Permalink
🚨 fix djlint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Mar 28, 2024
1 parent db958bd commit 7c882c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion froide/accesstoken/templates/accesstoken/token_widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="col-7">
<input type="text"
{% if widget.token %}value="{{ widget.url }}"{% endif %}
{% if not widget.token %}placeholder="{% trans 'No URL created yet.' %}"{% endif %}
{% if not widget.token %}placeholder="{% trans "No URL created yet." %}"{% endif %}
class="form-control{% if widget.token %} copy-text{% endif %}"
readonly />
</div>
Expand Down
1 change: 1 addition & 0 deletions froide/foirequest/templates/foirequest/body/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ <h5>{% trans "Secret Short URL" %}</h5>
{% endif %}
</div>
</div>
</div>
12 changes: 6 additions & 6 deletions froide/templates/mfa/create_recovery.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
{% load form_helper %}
{% block title %}
{% translate "Setup recovery code" %}
{% endblock %}
{% endblock title %}
{% block mfa_heading %}
{% translate "Setup recovery code" %}
{% endblock %}
{% endblock mfa_heading %}
{% block mfa_inner %}
<p>
{% translate "A recovery code can be used when you lose access to your other two-factor login options. Each recovery code can only be used once." %}
</p>
<p>
{% translate "Make sure to store it in a safe place! If you lose your other two-factor login options and don’t have the recovery codes you will lose access to your account." %}
</p>
<form method="POST">
<form method="post">
{% csrf_token %}
{% include "helper/forms/errors.html" with errors=form.non_field_errors %}
{% render_field form.name %}
Expand All @@ -32,7 +32,7 @@
<div>
<button class="btn btn-outline-secondary"
type="button"
data-downloadtxt="{{ SITE_NAME }} {% translate 'recovery code:' %} {{ mfa_data.code }}">
data-downloadtxt="{{ SITE_NAME }} {% translate "recovery code:" %} {{ mfa_data.code }}">
{% translate "Download as TXT file" %}
</button>
</div>
Expand All @@ -49,8 +49,8 @@
</div>
<button type="submit" class="btn btn-primary">{% translate "Setup code" %}</button>
</form>
{% endblock %}
{% endblock mfa_inner %}
{% block scripts %}
{{ block.super }}
<script src="{% static 'account/mfa.js' %}"></script>
{% endblock %}
{% endblock scripts %}

0 comments on commit 7c882c5

Please sign in to comment.