Skip to content
Snippets Groups Projects
Commit 2c879c1e authored by Roang's avatar Roang
Browse files

Fix T028 djLint rule

Use spaceless tags for arguments to remove whitespace.
parent a00a9ffb
Branches
Tags release/calendar/4.5.1
No related merge requests found
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
name="q" name="q"
type="text" type="text"
placeholder="{{ _('search') }}" placeholder="{{ _('search') }}"
value="{% if search_query is defined %}{{ search_query }}{% endif %}"> value="{%- if search_query is defined -%}{{ search_query }}{%- endif -%}">
</form> </form>
{% endif %} {% endif %}
<div class="hub-top-nav__buttons"> <div class="hub-top-nav__buttons">
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
name="q" name="q"
type="text" type="text"
placeholder="{{ _('search') }}" placeholder="{{ _('search') }}"
value="{% if search_query is defined %}{{ search_query }}{% endif %}"> value="{%- if search_query is defined -%}{{ search_query }}{%- endif -%}">
</form> </form>
</div> </div>
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
name="set" name="set"
value="t{{ t.slug if t != track else '' }}" value="t{{ t.slug if t != track else '' }}"
class=" hub-tag {% if not t.color %}{{ 'hub-tag--secondary-outline' if t != track else 'hub-tag--secondary' }}{% endif %} " class=" hub-tag {% if not t.color %}{{ 'hub-tag--secondary-outline' if t != track else 'hub-tag--secondary' }}{% endif %} "
style="{% if t.color %} color: {{ calculate_text_colour(t.color) if t == track else ('#eeeeee' if calculate_luminance(t.color) < 140 else t.color) }}; style="{%- if t.color -%} color: {{ calculate_text_colour(t.color) if t == track else ('#eeeeee' if calculate_luminance(t.color) < 140 else t.color) }};
background-color: {{ t.color if t == track else 'transparent' }}; background-color: {{ t.color if t == track else 'transparent' }};
border: {{ 'none' if t == track else '1px solid ' + t.color }}; border: {{ 'none' if t == track else '1px solid ' + t.color }};
{% endif %}">{{ t.name }}</button> {%- endif -%}">{{ t.name }}</button>
{% endmacro %} {% endmacro %}
{% block title %} {% block title %}
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
name="q" name="q"
type="text" type="text"
placeholder="{{ _('search') }}" placeholder="{{ _('search') }}"
value="{% if search_query is defined %} {{ search_query }} {% endif %}"> value="{%- if search_query is defined -%} {{ search_query }} {%- endif -%}">
</form> </form>
</li> </li>
<li class="nav-item dropdown">{{ hbtns.globe() }}</li> <li class="nav-item dropdown">{{ hbtns.globe() }}</li>
......
...@@ -13,12 +13,20 @@ ...@@ -13,12 +13,20 @@
gap: 10px"> gap: 10px">
{% for item in items %} {% for item in items %}
<!-- {{ item.slug }} [enabled={{ item.enabled }}] --> <!-- {{ item.slug }} [enabled={{ item.enabled }}] -->
<a href="{% if item.enabled %}{{ item.url }}{% endif %}" <a href="{%- if item.enabled -%}{{ item.url }}{%- endif -%}" title="{{ item.title }}" {% if not item.enabled %}disabled aria-disabled="true"{% endif %} style="
{% if not item.enabled %}disabled aria-disabled="true"{% endif %} {%- filter trim -%}
title="{{ item.title }}" {%- if not item.enabled -%}
style="{% filter trim %} {% if not item.enabled %}cursor: not-allowed; cursor:
pointer-events: none; not-allowed
{% endif %} {% if active_item == item.slug %}background-color: yellow;{% endif %} {% endfilter %}"> pointer-events:
none
{%- endif -%}
{%- if active_item == item.slug -%}
background-color:
yellow
{%- endif -%}
{%- endfilter -%}
">
{% if active_theme() != "dark" %} {% if active_theme() != "dark" %}
{{ item.graphic_light|safe }} {{ item.graphic_light|safe }}
{% else %} {% else %}
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
{%- endif %} {%- endif %}
</div> </div>
<div class="col d-flex justify-content-end"> <div class="col d-flex justify-content-end">
<a href="{{ url('plainui:static_page', page_slug=page_slug) }}{% if lock_id %}?release={{ lock_id }}{% endif %}" <a href="{{ url('plainui:static_page', page_slug=page_slug) }}{%- if lock_id -%}?release={{ lock_id }}{%- endif -%}"
class="btn btn-dark">{{ _("Cancel") if writeable else _("Back") }}</a> class="btn btn-dark">{{ _("Cancel") if writeable else _("Back") }}</a>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment