Skip to content

Commit

Permalink
Relint files
Browse files Browse the repository at this point in the history
  • Loading branch information
agjohnson committed Mar 21, 2024
1 parent d83651d commit 58844f2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ commands:
steps:
- checkout
- run: pip install djhtml
- run: djhtml --tabwidth 2 readthedocsext/
- run: djhtml --check --tabwidth 2 readthedocsext/
run-build:
description: "Ensure built assets are up to date"
steps:
Expand Down
16 changes: 8 additions & 8 deletions readthedocsext/theme/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<div
{# The password URL is listed as an additional tab if present #}
class="ui small stackable secondary item menu {% if project_password_url %}three{% else %}two{% endif %}"
data-bind="semanticui: {tabs: {history: true, autoTabActivation: false}}">
class="ui small stackable secondary item menu {% if project_password_url %}three{% else %}two{% endif %}"
data-bind="semanticui: {tabs: {history: true, autoTabActivation: false}}">

{# This is purposely minimal, as the verbiage for "Log in with connected account" is a mountful #}
<a class="item" data-tab="vcs">
Expand All @@ -40,18 +40,18 @@
<a class="item {% if allowed_providers %}disabled{% endif %}"
data-tab="email"
{% if allowed_providers %}
data-content="{{ text_email_disabled }}"
aria-label="{{ text_email_disabled }}"
data-content="{{ text_email_disabled }}"
aria-label="{{ text_email_disabled }}"
{% endif %}>
<i class="fad fa-envelope icon"></i>
{% block authentication_email_text %}{% trans "Log in with email" %}{% endblock %}
</a>

{% if project_password_url %}
<a class="item" href="{{ project_password_url }}">
<i class="fad fa-lock icon"></i>
{% trans "Use a password" %}
</a>
<a class="item" href="{{ project_password_url }}">
<i class="fad fa-lock icon"></i>
{% trans "Use a password" %}
</a>
{% endif %}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
{% for provider in socialaccount_providers %}
{# OpenID is not implemented #}
{% if provider.id != 'bitbucket' %}
{% if allowed_providers and provider.id in allowed_providers or not allowed_providers %}
<li class="item">
<form class="ui form"
method="post"
action="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}">
{% csrf_token %}
<button class="ui button" type="submit" title="{{ provider.name }}">
<i class="fa-brands fa-{{ provider.name|lower }} icon"></i>
{% blocktrans trimmed with provider_name=provider.name verbiage=verbiage|default:'Connect to' %}
{{ verbiage }} {{ provider_name }}
{% endblocktrans %}
</button>
</form>
</li>
{% endif %}
{% if allowed_providers and provider.id in allowed_providers or not allowed_providers %}
<li class="item">
<form class="ui form"
method="post"
action="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}">
{% csrf_token %}
<button class="ui button" type="submit" title="{{ provider.name }}">
<i class="fa-brands fa-{{ provider.name|lower }} icon"></i>
{% blocktrans trimmed with provider_name=provider.name verbiage=verbiage|default:'Connect to' %}
{{ verbiage }} {{ provider_name }}
{% endblocktrans %}
</button>
</form>
</li>
{% endif %}
{% endif %}
{% endfor %}

0 comments on commit 58844f2

Please sign in to comment.