Skip to content

Commit db4c7dc

Browse files
authored
Put buttons back in org dashboard (#18817) (#18825)
Backport #18817 Fix #18523
1 parent bec5662 commit db4c7dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates/org/home.tmpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@
2929
</div>
3030

3131
<div class="ui five wide column">
32+
{{if .CanCreateOrgRepo}}
33+
<div class="center aligned">
34+
<a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}">{{.i18n.Tr "new_repo"}}</a>
35+
{{if not .DisableNewPullMirrors}}
36+
<a class="ui green button" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{.i18n.Tr "new_migrate"}}</a>
37+
{{end}}
38+
</div>
39+
<div class="ui divider"></div>
40+
{{end}}
3241
<h4 class="ui top attached header df">
3342
<strong class="f1">{{.i18n.Tr "org.people"}}</strong>
3443
{{if .IsOrganizationMember}}

0 commit comments

Comments
 (0)