aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authordelvh <dev.lh@web.de>2023-05-31 08:50:18 +0200
committerGitHub <noreply@github.com>2023-05-31 08:50:18 +0200
commitbf27fc35960afe4e949c4b7425139a9f5df12aad (patch)
tree570fe0432c8c8aba9dfd2d5769aaec82bee042a9 /templates/user
parent3a6a6342eaa60751861d08cdc24dfd141d9ea7f5 (diff)
downloadgitea-bf27fc35960afe4e949c4b7425139a9f5df12aad.tar.gz
gitea-bf27fc35960afe4e949c4b7425139a9f5df12aad.zip
Merge `new project` templates into one (#24985)
Additionally simplify the `new project` template slightly. Review hint: Disable whitespace changes. <details><summary>Before</summary> ## New repo project ![grafik](https://github.com/go-gitea/gitea/assets/51889757/4de977e8-3688-45cd-8832-49b001e6f249) ## Edit repo project ![grafik](https://github.com/go-gitea/gitea/assets/51889757/daaf353f-6c99-48bd-b37a-a3bc64459079) ## New user/org project ![grafik](https://github.com/go-gitea/gitea/assets/51889757/6a5a3be5-f51a-4599-b75c-7adb9710d2fa) ## Edit user/org project ![grafik](https://github.com/go-gitea/gitea/assets/51889757/a4768f49-cf46-4773-8a0f-54dfdcc1c1b8) </details> <details><summary>After</summary> ## New repo project ![grafik](https://github.com/go-gitea/gitea/assets/51889757/3d0ac8a0-850a-4743-963c-71c66ef38d07) ## Edit repo project ![grafik](https://github.com/go-gitea/gitea/assets/51889757/6b86a1cd-e360-4a9b-aaf7-af032d0d991a) ## New user/org project ![grafik](https://github.com/go-gitea/gitea/assets/51889757/a7b0964c-e4c7-4924-842a-52a58499bc36) ## Edit user/org project ![grafik](https://github.com/go-gitea/gitea/assets/51889757/0fbc5605-afee-49bd-a44a-8646f8c55681) </details> --------- Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/project.tmpl69
1 files changed, 0 insertions, 69 deletions
diff --git a/templates/user/project.tmpl b/templates/user/project.tmpl
deleted file mode 100644
index b46fa1c779..0000000000
--- a/templates/user/project.tmpl
+++ /dev/null
@@ -1,69 +0,0 @@
-{{template "base/head" .}}
-<div role="main" aria-label="{{.Title}}" class="page-content 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">
- {{.locale.Tr "new_project"}}
- </h3>
- <div class="ui attached segment">
- {{template "base/alert" .}}
- <div class="inline required field {{if .Err_Owner}}error{{end}}">
- <label>{{.locale.Tr "repo.owner"}}</label>
- <div class="ui selection owner dropdown">
- <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
- <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
- {{avatar $.Context .ContextUser 28 "mini"}}
- <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
- </span>
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
- <div class="menu">
- <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}">
- {{avatar $.Context .SignedUser 28 "mini"}}
- <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
- </div>
- {{range .Orgs}}
- <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
- {{avatar $.Context . 28 "mini"}}
- <span class="truncated-item-name">{{.ShortName 40}}</span>
- </div>
- {{end}}
- </div>
- </div>
- </div>
-
- <div class="inline field {{if .Err_Title}}error{{end}}">
- <label>{{.locale.Tr "repo.projects.title"}}</label>
- <input name="title" placeholder="{{.locale.Tr "repo.projects.title"}}" value="{{.title}}" autofocus required>
- </div>
- <div class="inline field">
- <label>{{.locale.Tr "repo.projects.desc"}}</label>
- <textarea name="content">{{.content}}</textarea>
- </div>
-
- <div class="inline field">
- <label>{{.locale.Tr "repo.projects.template.desc"}}</label>
- <div class="ui selection dropdown">
- <input type="hidden" name="board_type" value="{{.type}}">
- <div class="default text">{{.locale.Tr "repo.projects.template.desc_helper"}}</div>
- <div class="menu">
- {{range $element := .BoardTypes}}
- <div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{$.locale.Tr $element.Translation}}</div>
- {{end}}
- </div>
- </div>
- </div>
-
- <div class="inline field">
- <label></label>
- <button class="ui green button">
- {{.locale.Tr "repo.projects.create"}}
- </button>
- </div>
- </div>
- </form>
- </div>
- </div>
-</div>
-{{template "base/footer" .}}