Skip to content

Commit

Permalink
Software comparison: Add implemented XEP version to tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
cal0pteryx committed Feb 5, 2025
1 parent a651564 commit 7263c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/xmpp.org/layouts/shortcodes/software-comparison.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ <h5 class="mb-0 text-center">
{{- range $xep.implementations -}}
{{- if eq $name .package_name -}}
{{- if eq .implementation_status "complete" -}}
<span class="badge text-bg-success opacity-50" title="{{- .implementation_status | title -}}" data-bs-toggle="tooltip"><i class="fa-solid fa-check text-reset"></i></span>
<span class="badge text-bg-success opacity-50" title="{{- .implementation_status | title -}}{{- if .implemented_version -}}&nbsp;(implemented version:&nbsp;{{- .implemented_version -}}){{- end -}}" data-bs-toggle="tooltip"><i class="fa-solid fa-check text-reset"></i></span>
{{- else if eq .implementation_status "partial" -}}
<span class="badge text-bg-warning opacity-50" title="{{- .implementation_status | title -}}" data-bs-toggle="tooltip"><i class="fa-solid fa-check text-reset"></i></span>
<span class="badge text-bg-warning opacity-50" title="{{- .implementation_status | title -}}{{- if .implemented_version -}}&nbsp;(implemented version:&nbsp;{{- .implemented_version -}}){{- end -}}" data-bs-toggle="tooltip"><i class="fa-solid fa-check text-reset"></i></span>
{{- else if eq .implementation_status "planned" -}}
<span class="badge text-bg-primary opacity-50" title="{{- .implementation_status | title -}}" data-bs-toggle="tooltip"><i class="fa-solid fa-plus text-reset"></i></span>
{{- else if or (eq .implementation_status "wontfix") (eq .implementation_status "removed") (eq .implementation_status "deprecated") -}}
Expand Down

0 comments on commit 7263c71

Please sign in to comment.