Skip to content

Commit 5ebc1b5

Browse files
committed
fix
1 parent 445dbda commit 5ebc1b5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

templates/repo/branch/list.tmpl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
<tbody>
2020
<tr>
2121
<td>
22-
{{if .DefaultBranchBranch.IsProtected}}
23-
{{svg "octicon-shield-lock"}}
24-
{{end}}
2522
<div class="gt-df gt-ac">
23+
{{if .DefaultBranchBranch.IsProtected}}
24+
<span class="flex-text-inline gt-pr-2">{{svg "octicon-shield-lock"}}</span>
25+
{{end}}
2626
<a class="gt-ellipsis" href="{{.RepoLink}}/src/branch/{{PathEscapeSegments .DefaultBranchBranch.DBBranch.Name}}">{{.DefaultBranchBranch.DBBranch.Name}}</a>
27-
<button class="btn interact-fg gt-p-3" data-clipboard-text="{{.DefaultBranchBranch.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button>
27+
<button class="btn interact-fg gt-p-3" data-clipboard-text="{{.DefaultBranchBranch.DBBranch.Name}}"><span class="gt-df gt-ac">{{svg "octicon-copy" 14}}</span></button>
2828
{{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DefaultBranchBranch.DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DefaultBranchBranch.DBBranch.CommitID)}}
2929
</div>
3030
<p class="info gt-df gt-ac gt-my-2">{{svg "octicon-git-commit" 16 "gt-mr-2"}}<a href="{{.RepoLink}}/commit/{{PathEscape .DefaultBranchBranch.DBBranch.CommitID}}">{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}}</a> · <span class="commit-message">{{RenderCommitMessage $.Context .DefaultBranchBranch.DBBranch.CommitMessage .RepoLink .Repository.ComposeMetas}}</span> · {{.locale.Tr "org.repo_updated"}} {{TimeSince .DefaultBranchBranch.DBBranch.CommitTime.AsTime .locale}}{{if .DefaultBranchBranch.DBBranch.Pusher}} &nbsp;{{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p>
@@ -86,12 +86,12 @@
8686
</div>
8787
<p class="info">{{$.locale.Tr "repo.branch.deleted_by" .DBBranch.DeletedBy.Name}} {{TimeSinceUnix .DBBranch.DeletedUnix $.locale}}</p>
8888
{{else}}
89-
{{if .IsProtected}}
90-
{{svg "octicon-shield-lock"}}
91-
{{end}}
9289
<div class="gt-df gt-ac">
90+
{{if .IsProtected}}
91+
<span class="flex-text-inline gt-pr-2">{{svg "octicon-shield-lock"}}</span>
92+
{{end}}
9393
<a class="gt-ellipsis" href="{{$.RepoLink}}/src/branch/{{PathEscapeSegments .DBBranch.Name}}">{{.DBBranch.Name}}</a>
94-
<button class="btn interact-fg gt-p-3" data-clipboard-text="{{.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button>
94+
<button class="btn interact-fg gt-p-3" data-clipboard-text="{{.DBBranch.Name}}"><span class="gt-df gt-ac">{{svg "octicon-copy" 14}}</span></button>
9595
{{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DBBranch.CommitID)}}
9696
</div>
9797
<p class="info gt-df gt-ac gt-my-2">{{svg "octicon-git-commit" 16 "gt-mr-2"}}<a href="{{$.RepoLink}}/commit/{{PathEscape .DBBranch.CommitID}}">{{ShortSha .DBBranch.CommitID}}</a> · <span class="commit-message">{{RenderCommitMessage $.Context .DBBranch.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span> · {{$.locale.Tr "org.repo_updated"}} {{TimeSince .DBBranch.CommitTime.AsTime $.locale}}{{if .DBBranch.Pusher}} &nbsp;{{template "shared/user/avatarlink" dict "user" .DBBranch.Pusher}} &nbsp;{{template "shared/user/namelink" .DBBranch.Pusher}}{{end}}</p>

templates/repo/commit_status.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!-- make sure this matches the color logic in web_src/js/components/DashboardRepoList.vue -->
2+
<span class="gt-df gt-ac">
23
{{if eq .State "pending"}}
34
{{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
45
{{end}}
@@ -11,3 +12,4 @@
1112
{{if eq .State "failure"}}
1213
{{svg "octicon-x" 18 "commit-status icon text red"}}
1314
{{end}}
15+
</span>

0 commit comments

Comments
 (0)