gitea/templates/shared/issue_dependency.tmpl

13 lines
442 B
Handlebars
Raw Normal View History

2024-02-10 00:55:42 +08:00
{{if and .DependenciesMap (index .DependenciesMap .ID)}}
<div class="flex-text-inline gt-gap-0">
<strong class="gt-mr-2">{{.Title}}</strong>
{{$first := true}}
{{range (index .DependenciesMap .ID)}}
{{if not $first}}<span class="gt-mr-2">,</span>{{end}}
{{$first = false}}
<a href="{{.Issue.Link}}" data-tooltip-content="#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}">
#{{.Issue.Index}}
</a>
{{end}}
</div>
{{end}}