mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-03 05:39:55 +08:00
enhancement: shows divider
This commit is contained in:
parent
ad4d893ad5
commit
5c35d88110
@ -226,11 +226,11 @@ func RenderLabels(ctx context.Context, labels []*issues_model.Label, repoLink st
|
||||
}
|
||||
|
||||
func RenderDependencies(ctx context.Context, dependencies []*issues_model.DependencyInfo) template.HTML {
|
||||
if dependencies == nil || len(dependencies) < 1 {
|
||||
if len(dependencies) == 0 {
|
||||
return ""
|
||||
}
|
||||
|
||||
htmlCode := ""
|
||||
htmlCode := "<span>"
|
||||
|
||||
for index, dependency := range dependencies {
|
||||
if index != 0 {
|
||||
@ -240,5 +240,5 @@ func RenderDependencies(ctx context.Context, dependencies []*issues_model.Depend
|
||||
dependency.Issue.Link(), dependency.Issue.Index, RenderEmoji(ctx, dependency.Issue.Title), dependency.Issue.Index)
|
||||
}
|
||||
|
||||
return template.HTML(htmlCode)
|
||||
return template.HTML(htmlCode + "</span>")
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{if .Dependencies}}
|
||||
<div class="flex-text-inline gt-gap-0">
|
||||
<div class="flex-text-inline">
|
||||
{{(ctx.Locale.Tr .TitleKey (RenderDependencies ctx .Dependencies)) | Safe}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
@ -118,12 +118,12 @@
|
||||
</span>
|
||||
</span>
|
||||
{{end}}
|
||||
{{template "shared/issue_dependency" (dict
|
||||
"Dependencies" (index $.BlockingDependenciesMap .ID)
|
||||
"TitleKey" "repo.issues.dependency.blocks_following")}}
|
||||
{{template "shared/issue_dependency" (dict
|
||||
"Dependencies" (index $.BlockedByDependenciesMap .ID)
|
||||
"TitleKey" "repo.issues.dependency.blocked_by_following")}}
|
||||
{{template "shared/issue_dependency" (dict
|
||||
"Dependencies" (index $.BlockingDependenciesMap .ID)
|
||||
"TitleKey" "repo.issues.dependency.blocks_following")}}
|
||||
{{if .IsPull}}
|
||||
{{$approveOfficial := call $approvalCounts .ID "approve"}}
|
||||
{{$rejectOfficial := call $approvalCounts .ID "reject"}}
|
||||
|
@ -82,6 +82,10 @@
|
||||
background-color: var(--color-secondary-dark-4);
|
||||
}
|
||||
|
||||
#issue-list .flex-item-body > .flex-text-inline::before {
|
||||
content: '|';
|
||||
}
|
||||
|
||||
.archived-label-filter {
|
||||
margin-left: 10px;
|
||||
font-size: 12px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user