2015-08-28 02:44:04 -06:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 15:56:10 -07:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository new repo">
|
2021-09-12 12:24:57 -06:00
|
|
|
<div class="ui middle very relaxed page one column grid">
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="column">
|
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<h3 class="ui top attached header">
|
2022-06-27 14:58:46 -06:00
|
|
|
{{.locale.Tr "new_repo"}}
|
2015-12-07 15:30:52 -07:00
|
|
|
</h3>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
{{template "base/alert" .}}
|
2023-01-24 12:01:39 -07:00
|
|
|
{{template "repo/create_helper" .}}
|
2021-02-21 02:59:31 -07:00
|
|
|
|
2021-01-21 16:44:37 -07:00
|
|
|
{{if not .CanCreateRepo}}
|
|
|
|
<div class="ui negative message">
|
2022-06-27 14:58:46 -06:00
|
|
|
<p>{{.locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimit}}</p>
|
2021-01-21 16:44:37 -07:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="inline required field {{if .Err_Owner}}error{{end}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.owner"}}</label>
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="ui selection owner dropdown">
|
2016-07-23 11:08:22 -06:00
|
|
|
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
|
2021-02-11 18:29:07 -07:00
|
|
|
<span class="text truncated-item-container" title="{{.ContextUser.Name}}">
|
Add context cache as a request level cache (#22294)
To avoid duplicated load of the same data in an HTTP request, we can set
a context cache to do that. i.e. Some pages may load a user from a
database with the same id in different areas on the same page. But the
code is hidden in two different deep logic. How should we share the
user? As a result of this PR, now if both entry functions accept
`context.Context` as the first parameter and we just need to refactor
`GetUserByID` to reuse the user from the context cache. Then it will not
be loaded twice on an HTTP request.
But of course, sometimes we would like to reload an object from the
database, that's why `RemoveContextData` is also exposed.
The core context cache is here. It defines a new context
```go
type cacheContext struct {
ctx context.Context
data map[any]map[any]any
lock sync.RWMutex
}
var cacheContextKey = struct{}{}
func WithCacheContext(ctx context.Context) context.Context {
return context.WithValue(ctx, cacheContextKey, &cacheContext{
ctx: ctx,
data: make(map[any]map[any]any),
})
}
```
Then you can use the below 4 methods to read/write/del the data within
the same context.
```go
func GetContextData(ctx context.Context, tp, key any) any
func SetContextData(ctx context.Context, tp, key, value any)
func RemoveContextData(ctx context.Context, tp, key any)
func GetWithContextCache[T any](ctx context.Context, cacheGroupKey string, cacheTargetID any, f func() (T, error)) (T, error)
```
Then let's take a look at how `system.GetString` implement it.
```go
func GetSetting(ctx context.Context, key string) (string, error) {
return cache.GetWithContextCache(ctx, contextCacheKey, key, func() (string, error) {
return cache.GetString(genSettingCacheKey(key), func() (string, error) {
res, err := GetSettingNoCache(ctx, key)
if err != nil {
return "", err
}
return res.SettingValue, nil
})
})
}
```
First, it will check if context data include the setting object with the
key. If not, it will query from the global cache which may be memory or
a Redis cache. If not, it will get the object from the database. In the
end, if the object gets from the global cache or database, it will be
set into the context cache.
An object stored in the context cache will only be destroyed after the
context disappeared.
2023-02-15 06:37:34 -07:00
|
|
|
{{avatar $.Context .ContextUser 28 "mini"}}
|
2021-02-11 18:29:07 -07:00
|
|
|
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
|
2015-12-07 15:30:52 -07:00
|
|
|
</span>
|
2020-10-31 16:15:11 -06:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="menu">
|
2021-02-11 18:29:07 -07:00
|
|
|
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}">
|
Add context cache as a request level cache (#22294)
To avoid duplicated load of the same data in an HTTP request, we can set
a context cache to do that. i.e. Some pages may load a user from a
database with the same id in different areas on the same page. But the
code is hidden in two different deep logic. How should we share the
user? As a result of this PR, now if both entry functions accept
`context.Context` as the first parameter and we just need to refactor
`GetUserByID` to reuse the user from the context cache. Then it will not
be loaded twice on an HTTP request.
But of course, sometimes we would like to reload an object from the
database, that's why `RemoveContextData` is also exposed.
The core context cache is here. It defines a new context
```go
type cacheContext struct {
ctx context.Context
data map[any]map[any]any
lock sync.RWMutex
}
var cacheContextKey = struct{}{}
func WithCacheContext(ctx context.Context) context.Context {
return context.WithValue(ctx, cacheContextKey, &cacheContext{
ctx: ctx,
data: make(map[any]map[any]any),
})
}
```
Then you can use the below 4 methods to read/write/del the data within
the same context.
```go
func GetContextData(ctx context.Context, tp, key any) any
func SetContextData(ctx context.Context, tp, key, value any)
func RemoveContextData(ctx context.Context, tp, key any)
func GetWithContextCache[T any](ctx context.Context, cacheGroupKey string, cacheTargetID any, f func() (T, error)) (T, error)
```
Then let's take a look at how `system.GetString` implement it.
```go
func GetSetting(ctx context.Context, key string) (string, error) {
return cache.GetWithContextCache(ctx, contextCacheKey, key, func() (string, error) {
return cache.GetString(genSettingCacheKey(key), func() (string, error) {
res, err := GetSettingNoCache(ctx, key)
if err != nil {
return "", err
}
return res.SettingValue, nil
})
})
}
```
First, it will check if context data include the setting object with the
key. If not, it will query from the global cache which may be memory or
a Redis cache. If not, it will get the object from the database. In the
end, if the object gets from the global cache or database, it will be
set into the context cache.
An object stored in the context cache will only be destroyed after the
context disappeared.
2023-02-15 06:37:34 -07:00
|
|
|
{{avatar $.Context .SignedUser 28 "mini"}}
|
2021-02-11 18:29:07 -07:00
|
|
|
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
{{range .Orgs}}
|
2021-02-11 18:29:07 -07:00
|
|
|
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
|
Add context cache as a request level cache (#22294)
To avoid duplicated load of the same data in an HTTP request, we can set
a context cache to do that. i.e. Some pages may load a user from a
database with the same id in different areas on the same page. But the
code is hidden in two different deep logic. How should we share the
user? As a result of this PR, now if both entry functions accept
`context.Context` as the first parameter and we just need to refactor
`GetUserByID` to reuse the user from the context cache. Then it will not
be loaded twice on an HTTP request.
But of course, sometimes we would like to reload an object from the
database, that's why `RemoveContextData` is also exposed.
The core context cache is here. It defines a new context
```go
type cacheContext struct {
ctx context.Context
data map[any]map[any]any
lock sync.RWMutex
}
var cacheContextKey = struct{}{}
func WithCacheContext(ctx context.Context) context.Context {
return context.WithValue(ctx, cacheContextKey, &cacheContext{
ctx: ctx,
data: make(map[any]map[any]any),
})
}
```
Then you can use the below 4 methods to read/write/del the data within
the same context.
```go
func GetContextData(ctx context.Context, tp, key any) any
func SetContextData(ctx context.Context, tp, key, value any)
func RemoveContextData(ctx context.Context, tp, key any)
func GetWithContextCache[T any](ctx context.Context, cacheGroupKey string, cacheTargetID any, f func() (T, error)) (T, error)
```
Then let's take a look at how `system.GetString` implement it.
```go
func GetSetting(ctx context.Context, key string) (string, error) {
return cache.GetWithContextCache(ctx, contextCacheKey, key, func() (string, error) {
return cache.GetString(genSettingCacheKey(key), func() (string, error) {
res, err := GetSettingNoCache(ctx, key)
if err != nil {
return "", err
}
return res.SettingValue, nil
})
})
}
```
First, it will check if context data include the setting object with the
key. If not, it will query from the global cache which may be memory or
a Redis cache. If not, it will get the object from the database. In the
end, if the object gets from the global cache or database, it will be
set into the context cache.
An object stored in the context cache will only be destroyed after the
context disappeared.
2023-02-15 06:37:34 -07:00
|
|
|
{{avatar $.Context . 28 "mini"}}
|
2021-02-11 18:29:07 -07:00
|
|
|
<span class="truncated-item-name">{{.ShortName 40}}</span>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-27 14:58:46 -06:00
|
|
|
<span class="help">{{.locale.Tr "repo.owner_helper"}}</span>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2015-08-28 02:44:04 -06:00
|
|
|
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="inline required field {{if .Err_RepoName}}error{{end}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label for="repo_name">{{.locale.Tr "repo.repo_name"}}</label>
|
2015-12-07 15:30:52 -07:00
|
|
|
<input id="repo_name" name="repo_name" value="{{.repo_name}}" autofocus required>
|
2022-06-27 14:58:46 -06:00
|
|
|
<span class="help">{{.locale.Tr "repo.repo_name_helper"}}</span>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2019-09-05 03:13:51 -06:00
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.visibility"}}</label>
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="ui checkbox">
|
|
|
|
{{if .IsForcedPrivate}}
|
|
|
|
<input name="private" type="checkbox" checked readonly>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.visibility_helper_forced" | Safe}}</label>
|
2015-12-07 15:30:52 -07:00
|
|
|
{{else}}
|
|
|
|
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.visibility_helper" | Safe}}</label>
|
2015-12-07 15:30:52 -07:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2022-06-27 14:58:46 -06:00
|
|
|
<span class="help">{{.locale.Tr "repo.visibility_description"}}</span>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
<div class="inline field {{if .Err_Description}}error{{end}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label for="description">{{.locale.Tr "repo.repo_desc"}}</label>
|
|
|
|
<textarea id="description" name="description" placeholder="{{.locale.Tr "repo.repo_desc_helper"}}">{{.description}}</textarea>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2019-09-08 02:28:40 -06:00
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template"}}</label>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div id="repo_template_search" class="ui search normal selection dropdown">
|
|
|
|
<input type="hidden" id="repo_template" name="repo_template" value="{{.repo_template}}">
|
|
|
|
<div class="default text">{{.repo_template_name}}</div>
|
2019-09-08 02:28:40 -06:00
|
|
|
<div class="menu">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-11-11 08:15:29 -07:00
|
|
|
<div id="template_units" style="display: none;">
|
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template.items"}}</label>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="ui checkbox">
|
2023-02-12 20:16:59 -07:00
|
|
|
<input name="git_content" type="checkbox" tabindex="0" {{if .git_content}}checked{{end}}>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template.git_content"}}</label>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="ui checkbox{{if not .SignedUser.CanEditGitHook}} tooltip{{end}}"{{if not .SignedUser.CanEditGitHook}} data-content="{{.locale.Tr "repo.template.git_hooks_tooltip"}}"{{end}}>
|
2023-02-12 20:16:59 -07:00
|
|
|
<input name="git_hooks" type="checkbox" tabindex="0" {{if .git_hooks}}checked{{end}}>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template.git_hooks"}}</label>
|
2019-11-24 10:57:52 -07:00
|
|
|
</div>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
2019-11-24 10:57:52 -07:00
|
|
|
<div class="ui checkbox">
|
2023-02-12 20:16:59 -07:00
|
|
|
<input name="webhooks" type="checkbox" tabindex="0" {{if .webhooks}}checked{{end}}>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template.webhooks"}}</label>
|
2019-11-24 10:57:52 -07:00
|
|
|
</div>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="ui checkbox">
|
2023-02-12 20:16:59 -07:00
|
|
|
<input name="topics" type="checkbox" tabindex="0" {{if .topics}}checked{{end}}>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template.topics"}}</label>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-24 22:17:51 -07:00
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
|
|
|
<div class="ui checkbox">
|
2023-02-12 20:16:59 -07:00
|
|
|
<input name="avatar" type="checkbox" tabindex="0" {{if .avatar}}checked{{end}}>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template.avatar"}}</label>
|
2019-11-24 22:17:51 -07:00
|
|
|
</div>
|
|
|
|
<div class="ui checkbox">
|
2023-02-12 20:16:59 -07:00
|
|
|
<input name="labels" type="checkbox" tabindex="0" {{if .labels}}checked{{end}}>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template.issue_labels"}}</label>
|
2019-11-24 22:17:51 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2015-08-28 02:44:04 -06:00
|
|
|
|
2019-11-11 08:15:29 -07:00
|
|
|
<div id="non_template">
|
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.issue_labels"}}</label>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="ui search normal selection dropdown">
|
|
|
|
<input type="hidden" name="issue_labels" value="{{.issueLabels}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="default text">{{.locale.Tr "repo.issue_labels_helper"}}</div>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="menu">
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="item" data-value="">{{.locale.Tr "repo.issue_labels_helper"}}</div>
|
2019-12-06 19:13:19 -07:00
|
|
|
{{range $template, $labels := .LabelTemplates}}
|
|
|
|
<div class="item" data-value="{{$template}}">{{$template}}<br/><i>({{$labels}})</i></div>
|
2019-11-11 08:15:29 -07:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-11 08:15:29 -07:00
|
|
|
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
|
|
|
|
<div class="inline field">
|
|
|
|
<label>.gitignore</label>
|
|
|
|
<div class="ui multiple search normal selection dropdown">
|
|
|
|
<input type="hidden" name="gitignores" value="{{.gitignores}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="default text">{{.locale.Tr "repo.repo_gitignore_helper"}}</div>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="menu">
|
|
|
|
{{range .Gitignores}}
|
|
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-27 14:58:46 -06:00
|
|
|
<span class="help">{{.locale.Tr "repo.repo_gitignore_helper_desc"}}</span>
|
2019-11-11 08:15:29 -07:00
|
|
|
</div>
|
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.license"}}</label>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="ui search selection dropdown">
|
|
|
|
<input type="hidden" name="license" value="{{.license}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="default text">{{.locale.Tr "repo.license_helper"}}</div>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="menu">
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="item" data-value="">{{.locale.Tr "repo.license_helper"}}</div>
|
2019-11-11 08:15:29 -07:00
|
|
|
{{range .Licenses}}
|
|
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-27 14:58:46 -06:00
|
|
|
<span class="help">{{.locale.Tr "repo.license_helper_desc" "https://choosealicense.com/" | Str2html}}</span>
|
2019-11-11 08:15:29 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.readme"}}</label>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="ui selection dropdown">
|
|
|
|
<input type="hidden" name="readme" value="{{.readme}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="default text">{{.locale.Tr "repo.readme_helper"}}</div>
|
2019-11-11 08:15:29 -07:00
|
|
|
<div class="menu">
|
|
|
|
{{range .Readmes}}
|
|
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-27 14:58:46 -06:00
|
|
|
<span class="help">{{.locale.Tr "repo.readme_helper_desc"}}</span>
|
2019-11-11 08:15:29 -07:00
|
|
|
</div>
|
|
|
|
<div class="inline field">
|
|
|
|
<div class="ui checkbox" id="auto-init">
|
2023-02-12 20:16:59 -07:00
|
|
|
<input name="auto_init" type="checkbox" tabindex="0" {{if .auto_init}}checked{{end}}>
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.auto_init"}}</label>
|
2019-11-11 08:15:29 -07:00
|
|
|
</div>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
2020-03-26 13:14:51 -06:00
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label for="default_branch">{{.locale.Tr "repo.default_branch"}}</label>
|
2020-06-17 14:53:55 -06:00
|
|
|
<input id="default_branch" name="default_branch" value="{{.default_branch}}" placeholder="{{.default_branch}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
<span class="help">{{.locale.Tr "repo.default_branch_helper"}}</span>
|
2020-03-26 13:14:51 -06:00
|
|
|
</div>
|
2020-09-19 10:44:55 -06:00
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.settings.trust_model"}}</label>
|
2020-09-19 10:44:55 -06:00
|
|
|
<div class="ui selection owner dropdown">
|
2020-09-23 15:53:06 -06:00
|
|
|
<input type="hidden" id="trust_model" name="trust_model" value="default" required>
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="default text">{{.locale.Tr "repo.settings.trust_model"}}</div>
|
2020-10-31 16:15:11 -06:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2020-09-23 15:53:06 -06:00
|
|
|
<div class="menu">
|
2022-06-27 14:58:46 -06:00
|
|
|
<div class="item" data-value="default">{{.locale.Tr "repo.settings.trust_model.default"}}</div>
|
|
|
|
<div class="item" data-value="collaborator">{{.locale.Tr "repo.settings.trust_model.collaborator"}}</div>
|
|
|
|
<div class="item" data-value="committer">{{.locale.Tr "repo.settings.trust_model.committer"}}</div>
|
|
|
|
<div class="item" data-value="collaboratorcommitter">{{.locale.Tr "repo.settings.trust_model.collaboratorcommitter"}}</div>
|
2020-09-23 15:53:06 -06:00
|
|
|
</div>
|
2020-09-19 10:44:55 -06:00
|
|
|
</div>
|
2021-02-21 02:59:31 -07:00
|
|
|
<div class="help">
|
2022-06-27 14:58:46 -06:00
|
|
|
{{.locale.Tr "repo.trust_model_helper"}}
|
2021-02-21 02:59:31 -07:00
|
|
|
<ul>
|
2022-06-27 14:58:46 -06:00
|
|
|
<li>{{.locale.Tr "repo.trust_model_helper_collaborator"}}</li>
|
|
|
|
<li>{{.locale.Tr "repo.trust_model_helper_committer"}}</li>
|
|
|
|
<li>{{.locale.Tr "repo.trust_model_helper_collaborator_committer"}}</li>
|
|
|
|
<li>{{.locale.Tr "repo.trust_model_helper_default"}}</li>
|
2021-02-21 02:59:31 -07:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-09-19 10:44:55 -06:00
|
|
|
</div>
|
2020-09-24 23:18:37 -06:00
|
|
|
<div class="inline field">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template"}}</label>
|
2020-09-24 23:18:37 -06:00
|
|
|
<div class="ui checkbox">
|
2023-02-12 20:16:59 -07:00
|
|
|
<input name="template" type="checkbox" tabindex="0">
|
2022-06-27 14:58:46 -06:00
|
|
|
<label>{{.locale.Tr "repo.template_helper"}}</label>
|
2020-09-24 23:18:37 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-07 15:30:52 -07:00
|
|
|
</div>
|
|
|
|
|
2019-11-11 08:15:29 -07:00
|
|
|
<br/>
|
2015-12-07 15:30:52 -07:00
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
2021-01-21 16:44:37 -07:00
|
|
|
<button class="ui green button{{if not .CanCreateRepo}} disabled{{end}}">
|
2022-06-27 14:58:46 -06:00
|
|
|
{{.locale.Tr "repo.create_repo"}}
|
2015-12-07 15:30:52 -07:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-19 19:45:43 -07:00
|
|
|
</div>
|
2015-12-07 15:30:52 -07:00
|
|
|
{{template "base/footer" .}}
|