2026-04-08 02:32:14 +02:00
< form hx-boost = "true" hx-target = "this" method = "post" action = " {{ $.RepoLink }} /action/ {{ if $.IsStaringRepo }} un {{ end }} star" hx-on::after-settle = "this.querySelector('button').focus()" >
2024-02-05 11:56:20 +02:00
< div class = "ui labeled button" {{ if not $.IsSigned }} data-tooltip-content = " {{ ctx .Locale.Tr "repo.star_guest_user" }} " {{ end }} >
2026-03-31 23:22:20 +02:00
< button type = "submit" class = "ui compact small basic button" {{ if not $.IsSigned }} disabled {{ end }} aria-label = " {{ if $.IsStaringRepo }}{{ ctx .Locale.Tr "repo.unstar" }}{{ else }}{{ ctx .Locale.Tr "repo.star" }}{{ end }} " >
2024-02-05 11:56:20 +02:00
{{ if $.IsStaringRepo }}
2024-03-27 09:33:06 +01:00
{{ svg "octicon-star-fill" }} < span class = "text not-mobile" > {{ ctx .Locale.Tr "repo.unstar" }} </ span >
2024-02-05 11:56:20 +02:00
{{ else }}
2024-03-27 09:33:06 +01:00
{{ svg "octicon-star" }} < span class = "text not-mobile" > {{ ctx .Locale.Tr "repo.star" }} </ span >
2024-02-05 11:56:20 +02:00
{{ end }}
< / button >
2025-10-19 18:33:26 +02:00
< a hx-boost = "false" class = "ui basic label" href = " {{ $.RepoLink }} /stars"
aria-label="{{ ctx .Locale.TrPluralString .Repository.NumStars "stars.n_stars" ( printf "%d" .Repository.NumStars ) }} "
>
2024-02-05 11:56:20 +02:00
{{ CountFmt .Repository.NumStars }}
< / a >
< / div >
< / form >