forked from Shiloh/githaven
d26d249748
* Remove all CommitStatus when a repo is deleted Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor UI tweaks (#5782) Added 'No License' option Added link and octicon change for external issue trackers Reset password now notifies right away if the code is invalid Signed-off-by: jolheiser <john.olheiser@gmail.com> * More UI tweaks More info in PR * Generate stylesheet for arc-green * Make gofmt work * Change PR integration since the button is changed * Rebase * Generate stylesheet * UI updates Made the PR button a "basic" button Vertically centered the issue checkboxes Labels will update only once after modal is closed * Commit to reference related issues Resolves #5782 Resolves #5861 Addresses original question in #5993 * Change the comment wording since PR button is no longer little and green. * Revert changes that made Windows work * Regenerate stylesheet * Regenerate stylesheets * make generate-stylesheets * Update integration again, changed button style Signed-off-by: jolheiser <john.olheiser@gmail.com> * Added ID to PR button Changed integration to use the ID to avoid breaking in the future * Added missing semi-colons * Added back distinction between issue actions and filters (overlooked it before) Moved action button over next to other action dropdowns * Remove extra tab formatting in list.tmpl * Remove more formatting from GoLand * Replace hardcoded "No License" with i18n license helper.
118 lines
4.2 KiB
Cheetah
118 lines
4.2 KiB
Cheetah
{{template "base/head" .}}
|
|
<div class="repository new repo">
|
|
<div class="ui middle very relaxed page grid">
|
|
<div class="column">
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<h3 class="ui top attached header">
|
|
{{.i18n.Tr "new_repo"}}
|
|
</h3>
|
|
<div class="ui attached segment">
|
|
{{template "base/alert" .}}
|
|
<div class="inline required field {{if .Err_Owner}}error{{end}}">
|
|
<label>{{.i18n.Tr "repo.owner"}}</label>
|
|
<div class="ui selection owner dropdown">
|
|
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
|
|
<span class="text">
|
|
<img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}">
|
|
{{.ContextUser.ShortName 20}}
|
|
</span>
|
|
<i class="dropdown icon"></i>
|
|
<div class="menu">
|
|
<div class="item" data-value="{{.SignedUser.ID}}">
|
|
<img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}">
|
|
{{.SignedUser.ShortName 20}}
|
|
</div>
|
|
{{range .Orgs}}
|
|
<div class="item" data-value="{{.ID}}">
|
|
<img class="ui mini image" src="{{.RelAvatarLink}}">
|
|
{{.ShortName 20}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inline required field {{if .Err_RepoName}}error{{end}}">
|
|
<label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label>
|
|
<input id="repo_name" name="repo_name" value="{{.repo_name}}" autofocus required>
|
|
<span class="help">{{.i18n.Tr "repo.repo_name_helper"}}</span>
|
|
</div>
|
|
<div class="inline field">
|
|
<label>{{.i18n.Tr "repo.visibility"}}</label>
|
|
<div class="ui checkbox">
|
|
{{if .IsForcedPrivate}}
|
|
<input name="private" type="checkbox" checked readonly>
|
|
<label>{{.i18n.Tr "repo.visibility_helper_forced" | Safe}}</label>
|
|
{{else}}
|
|
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
|
|
<label>{{.i18n.Tr "repo.visibility_helper" | Safe}}</label>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
<div class="inline field {{if .Err_Description}}error{{end}}">
|
|
<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label>
|
|
<textarea id="description" name="description">{{.description}}</textarea>
|
|
</div>
|
|
|
|
<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}}">
|
|
<div class="default text">{{.i18n.Tr "repo.repo_gitignore_helper"}}</div>
|
|
<div class="menu">
|
|
{{range .Gitignores}}
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="inline field">
|
|
<label>{{.i18n.Tr "repo.license"}}</label>
|
|
<div class="ui search selection dropdown">
|
|
<input type="hidden" name="license" value="{{.license}}">
|
|
<div class="default text">{{.i18n.Tr "repo.license_helper"}}</div>
|
|
<div class="menu">
|
|
<div class="item" data-value="">{{.i18n.Tr "repo.license_helper"}}</div>
|
|
{{range .Licenses}}
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inline field">
|
|
<label>{{.i18n.Tr "repo.readme"}}</label>
|
|
<div class="ui selection dropdown">
|
|
<input type="hidden" name="readme" value="{{.readme}}">
|
|
<div class="default text">{{.i18n.Tr "repo.readme_helper"}}</div>
|
|
<div class="menu">
|
|
{{range .Readmes}}
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="inline field">
|
|
<div class="ui checkbox" id="auto-init">
|
|
<input class="hidden" name="auto_init" type="checkbox" tabindex="0" {{if .auto_init}}checked{{end}}>
|
|
<label>{{.i18n.Tr "repo.auto_init"}}</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inline field">
|
|
<label></label>
|
|
<button class="ui green button">
|
|
{{.i18n.Tr "repo.create_repo"}}
|
|
</button>
|
|
<a class="ui button" href="{{AppSubUrl}}/">{{.i18n.Tr "cancel"}}</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|