A release title should always be a link
This partially reverts c41b2c73ef
: for the
sake of consistency, the title of a release should always be a link,
whether it's a tag-only release or not.
Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
parent
19ff532d42
commit
f9894f4c51
|
@ -18,7 +18,7 @@
|
|||
<div class="ui twelve wide column detail">
|
||||
<div class="gt-df gt-ac gt-sb gt-fw gt-mb-3">
|
||||
<h4 class="release-list-title gt-word-break">
|
||||
{{if $.PageIsSingleTag}}{{$release.Title}}{{else}}<a href="{{$.RepoLink}}/releases/tag/{{$release.TagName | PathEscapeSegments}}">{{$release.Title}}</a>{{end}}
|
||||
<a href="{{$.RepoLink}}/releases/tag/{{$release.TagName | PathEscapeSegments}}">{{$release.Title}}</a>
|
||||
{{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "gt-df"}}
|
||||
{{if $release.IsDraft}}
|
||||
<span class="ui yellow label">{{ctx.Locale.Tr "repo.release.draft"}}</span>
|
||||
|
|
|
@ -59,7 +59,7 @@ func TestTagViewWithoutRelease(t *testing.T) {
|
|||
assert.False(t, releaseLink.HasClass("active"))
|
||||
|
||||
// Test that the title is displayed
|
||||
releaseTitle := strings.TrimSpace(htmlDoc.Find("h4.release-list-title").Text())
|
||||
releaseTitle := strings.TrimSpace(htmlDoc.Find("h4.release-list-title > a").Text())
|
||||
assert.Equal(t, "no-release", releaseTitle)
|
||||
|
||||
// Test that there is no "Stable" link
|
||||
|
|
Loading…
Reference in a new issue