Skip to content

Commit 12de58f

Browse files
committed
feat: repo status
1 parent 4b3e550 commit 12de58f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

templates/_repo-header.template.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ <h1 class="header-name" style="margin-bottom: 0">
88
</h1>
99

1010
{{if eq .Config.OperationMode "normal"}}
11+
<span class="repo-visibility">{{if eq .Repository.Status 1}}PUBLIC{{else if eq .Repository.Status 2}}PRIVATE{{else if eq .Repository.Status 4}}PUBLIC ARCHIVED{{else if eq .Repository.Status 5}}INTERNAL{{else if eq .Repository.Status 6}}LIMITED{{end}}</span>
1112

1213
{{if .Repository.Owner}}
1314
<span>Owner: <a href="/u/{{.Repository.Owner}}">{{.Repository.Owner}}</a></span>

0 commit comments

Comments
 (0)