Skip to content

Commit 96b99ca

Browse files
fix: display when primary channel was evaluated
1 parent bfd02dd commit 96b99ca

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/webview/templates/components/nixpkgs_package.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ <h3 class="bold"><span class="dimmed">pkgs.</span>{{ attribute_name }}</h3>
1212
<summary>
1313
<div class="inline-row gap-small">
1414
<span class="w-12">{{ major_channel }}</span>
15-
{% if major_version %}
16-
<a class="{% if major_version.status == 'affected' %}hl-red{% elif major_version.status == 'unaffected' %}hl-green{% endif %}" target="_blank" href="{{ major_version.src_position }}">
17-
{% if major_version.major_version %}
18-
{{ major_version.major_version }}
19-
{% else %}
20-
???
21-
{% endif %}
15+
{% if major_version.major_version %}
16+
<a
17+
class="{% if major_version.status == 'affected' %}hl-red{% elif major_version.status == 'unaffected' %}hl-green{% endif %}"
18+
target="_blank"
19+
href="{{ major_version.src_position }}"
20+
title="evaluated {{ major_version.updated|iso }}"
21+
>
22+
{{ major_version.major_version }}
2223
</a>
2324
{% else %}
24-
???
25+
-
2526
{% endif %}
2627
</div>
2728
</summary>

0 commit comments

Comments
 (0)