-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't try to keep all on oneline for Jinja
- Loading branch information
1 parent
d302d65
commit f0201ea
Showing
2 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,35 @@ | ||
--- | ||
source: markup_fmt/tests/fmt.rs | ||
--- | ||
<tr {% if targeted_fooo and not foo_bar_bar_bar == mykey %} | ||
class="collapse"{% endif %}> | ||
<tr | ||
{% if targeted_fooo and not foo_bar_bar_bar == mykey %} | ||
class="collapse"{% endif %} | ||
> | ||
</tr> | ||
|
||
<div {% if not line.fields|length_is:'1' %} | ||
class="field-box{% if field.field.name %} | ||
field-{{ field.field.name }}{% endif %}{% | ||
if not field.is_readonly and field.errors | ||
%} | ||
errors{% endif %}{% if field.field.is_hidden %} | ||
hidden{% endif %}"{% elif field.is_checkbox %} | ||
class="checkbox-row" | ||
{% endif %}> | ||
<div | ||
{% if not line.fields|length_is:'1' %} | ||
class="field-box{% if field.field.name %} | ||
field-{{ field.field.name }}{% endif %}{% | ||
if not field.is_readonly and field.errors | ||
%} | ||
errors{% endif %}{% if field.field.is_hidden %} | ||
hidden{% endif %}"{% elif field.is_checkbox %} | ||
class="checkbox-row" | ||
{% endif %} | ||
> | ||
</div> | ||
|
||
<picture {% for key, val in attributes.items %} | ||
{{ key }}="{{ val }}" | ||
{% endfor %}> | ||
<picture | ||
{% for key, val in attributes.items %} | ||
{{ key }}="{{ val }}" | ||
{% endfor %} | ||
> | ||
</picture> | ||
|
||
<div {% if field.field.causes_red_card %}data-red-card{% | ||
elif field.field.causes_yellow_card | ||
%}data-yellow-card{% endif %}> | ||
<div | ||
{% if field.field.causes_red_card %}data-red-card{% | ||
elif field.field.causes_yellow_card | ||
%}data-yellow-card{% endif %} | ||
> | ||
</div> |