Skip to content

Commit 071363a

Browse files
author
Nils Hillmann
committed
Merge branch 'main' of https://github.com/go-gitea/gitea into feature/oauth_userinfo
2 parents d255628 + a961335 commit 071363a

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@
3333
{{range $commit.Refs}}
3434
{{$refGroup := .RefGroup}}
3535
{{if eq $refGroup "pull"}}
36-
{{if $.HidePRRefs}}
37-
{{if (containGeneric $.SelectedBranches .Name) }}
38-
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
39-
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
40-
</a>
41-
{{end}}
42-
{{else}}
43-
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
36+
{{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}}
37+
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
4438
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
4539
</a>
4640
{{end}}

templates/shared/issuelist.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ $approvalCounts := .ApprovalCounts}}
33
{{range .Issues}}
44
<li class="item df py-3">
5-
<div class="issue-item-left df py-1">
5+
<div class="issue-item-left df">
66
{{if $.CanWriteIssuesOrPulls}}
77
<div class="ui checkbox issue-checkbox">
88
<input type="checkbox" data-issue-id={{.ID}}></input>

web_src/less/shared/issuelist.less

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
.issue-item-icon svg {
1515
margin-right: .75rem;
16+
margin-top: 1px;
1617
}
1718

1819
.issue-item-icons-right > * + * {
@@ -29,10 +30,11 @@
2930
font-size: 16px;
3031
min-width: 0;
3132
font-weight: 600;
33+
}
3234

33-
> * {
34-
vertical-align: middle;
35-
}
35+
.labels-list {
36+
position: relative;
37+
top: -1.5px;
3638
}
3739

3840
.issue-item-bottom-row {

0 commit comments

Comments
 (0)