mirror of
https://github.com/go-gitea/gitea
synced 2025-01-19 14:14:26 +00:00
Backport #33269 by wxiaoguang Fix #33266 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
b4e2d5e8ee
commit
3b4af01633
@ -24,7 +24,7 @@
|
|||||||
{{if $data.OpenMilestones}}
|
{{if $data.OpenMilestones}}
|
||||||
<div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_open"}}</div>
|
<div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_open"}}</div>
|
||||||
{{range $data.OpenMilestones}}
|
{{range $data.OpenMilestones}}
|
||||||
<a class="item muted" data-value="{{.ID}}" href="{{$pageMeta.RepoLink}}/issues?milestone={{.ID}}">
|
<a class="item muted" data-value="{{.ID}}" href="{{$pageMeta.RepoLink}}/milestone/{{.ID}}">
|
||||||
{{svg "octicon-milestone" 18}} {{.Name}}
|
{{svg "octicon-milestone" 18}} {{.Name}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
@ -33,7 +33,7 @@
|
|||||||
{{if $data.ClosedMilestones}}
|
{{if $data.ClosedMilestones}}
|
||||||
<div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_closed"}}</div>
|
<div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_closed"}}</div>
|
||||||
{{range $data.ClosedMilestones}}
|
{{range $data.ClosedMilestones}}
|
||||||
<a class="item muted" data-value="{{.ID}}" href="{{$pageMeta.RepoLink}}/issues?milestone={{.ID}}">
|
<a class="item muted" data-value="{{.ID}}" href="{{$pageMeta.RepoLink}}/milestone/{{.ID}}">
|
||||||
{{svg "octicon-milestone" 18}} {{.Name}}
|
{{svg "octicon-milestone" 18}} {{.Name}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
@ -43,10 +43,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui list">
|
<div class="ui list muted-links flex-items-block">
|
||||||
<span class="item empty-list {{if $issueMilestone}}tw-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_milestone"}}</span>
|
<span class="item empty-list {{if $issueMilestone}}tw-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_milestone"}}</span>
|
||||||
{{if $issueMilestone}}
|
{{if $issueMilestone}}
|
||||||
<a class="item muted" href="{{$pageMeta.RepoLink}}/milestone/{{$issueMilestone.ID}}">
|
<a class="item" href="{{$pageMeta.RepoLink}}/milestone/{{$issueMilestone.ID}}">
|
||||||
{{svg "octicon-milestone" 18}} {{$issueMilestone.Name}}
|
{{svg "octicon-milestone" 18}} {{$issueMilestone.Name}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -39,10 +39,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui list">
|
<div class="ui list muted-links flex-items-block">
|
||||||
<span class="item empty-list {{if $issueProject}}tw-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_projects"}}</span>
|
<span class="item empty-list {{if $issueProject}}tw-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_projects"}}</span>
|
||||||
{{if $issueProject}}
|
{{if $issueProject}}
|
||||||
<a class="item muted" href="{{$issueProject.Link ctx}}">
|
<a class="item" href="{{$issueProject.Link ctx}}">
|
||||||
{{svg $issueProject.IconName 18}} {{$issueProject.Title}}
|
{{svg $issueProject.IconName 18}} {{$issueProject.Title}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -51,9 +51,9 @@
|
|||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="flex-text-inline tw-flex-1">
|
<div class="flex-text-inline tw-flex-1">
|
||||||
{{if .User}}
|
{{if .User}}
|
||||||
<a class="muted flex-text-inline" href="{{.User.HomeLink}}">{{ctx.AvatarUtils.Avatar .User 20}} {{.User.GetDisplayName}}</a>
|
<a class="muted flex-text-inline tw-gap-2" href="{{.User.HomeLink}}">{{ctx.AvatarUtils.Avatar .User 20}} {{.User.GetDisplayName}}</a>
|
||||||
{{else if .Team}}
|
{{else if .Team}}
|
||||||
{{svg "octicon-people" 20}} {{$repoOwnerName}}/{{.Team.Name}}
|
<span class="flex-text-inline tw-gap-2">{{svg "octicon-people" 20}} {{$repoOwnerName}}/{{.Team.Name}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-text-inline">
|
<div class="flex-text-inline">
|
||||||
@ -92,7 +92,7 @@
|
|||||||
<div class="flex-text-inline tw-flex-1">
|
<div class="flex-text-inline tw-flex-1">
|
||||||
{{$originalURLHostname := $pageMeta.Repository.GetOriginalURLHostname}}
|
{{$originalURLHostname := $pageMeta.Repository.GetOriginalURLHostname}}
|
||||||
{{$originalURL := $pageMeta.Repository.OriginalURL}}
|
{{$originalURL := $pageMeta.Repository.OriginalURL}}
|
||||||
<a class="muted flex-text-inline" href="{{$originalURL}}" data-tooltip-content="{{ctx.Locale.Tr "repo.migrated_from_fake" $originalURLHostname}}">
|
<a class="muted flex-text-inline tw-gap-2" href="{{$originalURL}}" data-tooltip-content="{{ctx.Locale.Tr "repo.migrated_from_fake" $originalURLHostname}}">
|
||||||
{{svg (MigrationIcon $originalURLHostname) 20}} {{.OriginalAuthor}}
|
{{svg (MigrationIcon $originalURLHostname) 20}} {{.OriginalAuthor}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user