Skip to content

Show latest release details in branch index#41

Merged
manuq merged 2 commits intomainfrom
push-orxwultsvmxv
Jul 7, 2025
Merged

Show latest release details in branch index#41
manuq merged 2 commits intomainfrom
push-orxwultsvmxv

Conversation

@wjt
Copy link
Member

@wjt wjt commented Jul 7, 2025

This also fixes a minor formatting issue from #39.

Before:

image

After:

image

wjt added 2 commits July 7, 2025 13:58
Annoyingly trailing whitespace after a tag in a link is significant and
shows up underlined like the rest of the link.

Reformat the template slightly to avoid this.
This is a bit semantically dubious for a page titled "branches" but it
is useful and there is no other place to show it.
@wjt wjt requested a review from manuq July 7, 2025 13:01
branch.build.artifact["expires_at"] | pretty_datetime_from_iso8601
}}</time>
</a>
}}</time></a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +72 to +87
{% if latest_release %}
<li>
<b><a href="../">Latest release: {{ latest_release.data.name }}</a></b>
<br/>
<span class="build">
Built on
<time datetime="{{ latest_release.asset.updated_at }}">{{
latest_release.asset.updated_at | pretty_datetime_from_iso8601
}}</time>
from tag
<a href="{{ latest_release.data.html_url }}">{{
latest_release.data.tag_name
}}</a>
</span>
</li>
{% endif %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wondered if this had to be a conditional of the whole <li> element, or for each sentence. It looks like it's simpler this way so 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made it conditional around the whole element because there isn't the same variety of choices as for branches: either there is a release asset, or there isn't

@manuq manuq merged commit e6023e9 into main Jul 7, 2025
1 check passed
@manuq manuq deleted the push-orxwultsvmxv branch July 7, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments