mirror of
https://github.com/go-gitea/gitea
synced 2025-01-08 00:44:26 +00:00
b7260400f8
1. do not use `{{/* */}}` to remove spaces, use `{{- -}}` 2. fix "blob_excerpt" endpoint, remove the legacy fragile code: have tested commit diff and wiki diff
14 lines
564 B
Handlebars
14 lines
564 B
Handlebars
{{/* Template Attributes:
|
|
* Release: the release
|
|
* IsLatest: boolean indicating whether this is the latest release, optional
|
|
*/}}
|
|
{{if .IsLatest}}
|
|
<span class="ui green label">{{ctx.Locale.Tr "repo.release.latest"}}</span>
|
|
{{else if .Release.IsDraft}}
|
|
<span class="ui yellow label">{{ctx.Locale.Tr "repo.release.draft"}}</span>
|
|
{{else if .Release.IsPrerelease}}
|
|
<span class="ui orange label">{{ctx.Locale.Tr "repo.release.prerelease"}}</span>
|
|
{{else if (not .Release.IsTag)}}
|
|
<span class="ui green label">{{ctx.Locale.Tr "repo.release.stable"}}</span>
|
|
{{end}}
|