Skip to content

Commit

Permalink
use variable for closing tag
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Sep 22, 2024
1 parent fc2d4e6 commit 6514a79
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions templates/crate/builds.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@

<ul>
{%- for build in builds -%}
{% set close_tag %}
<li>
{%- if build.build_status != "in_progress" %}
<a href="/crate/{{ metadata.name }}/{{ metadata.version }}/builds/{{ build.id }}" class="release">
{% set close_tag = "a" %}
{%- else -%}
<div class="build-in-progress">
{% set close_tag = "div" %}
{%- endif %}
<div class="pure-g">
<div class="pure-u-1 pure-u-sm-1-24 build">
Expand Down Expand Up @@ -72,11 +75,7 @@
{%- endif -%}
</div>
</div>
{%- if build.build_status != "in_progress" %}
</a>
{%- else -%}
</div>
{%- endif %}
</{{ close_tag }}>
</li>
{%- endfor -%}
</ul>
Expand Down

0 comments on commit 6514a79

Please sign in to comment.