|
|
|
@ -105,7 +105,16 @@
|
|
|
|
|
<span class="only-mobile">{{ctx.Locale.Tr "create_new"}}</span>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="menu">
|
|
|
|
|
<a class="item" href="{{AppSubUrl}}/repo/create">
|
|
|
|
|
<a
|
|
|
|
|
{{if not .SignedUser.CanCreateRepo}}
|
|
|
|
|
class="disabled-with-tooltip item"
|
|
|
|
|
data-tooltip-content="{{ctx.Locale.TrN .SignedUser.MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .SignedUser.MaxCreationLimit}}"
|
|
|
|
|
href="/"
|
|
|
|
|
onclick="event.stopPropagation(); event.preventDefault()"
|
|
|
|
|
{{else}}
|
|
|
|
|
class="item" href="{{AppSubUrl}}/repo/create"
|
|
|
|
|
{{end}}
|
|
|
|
|
>
|
|
|
|
|
{{svg "octicon-plus"}} {{ctx.Locale.Tr "new_repo"}}
|
|
|
|
|
</a>
|
|
|
|
|
{{if not .DisableMigrations}}
|
|
|
|
|