mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 19:31:21 +01:00
64f2d70262
Should look exactly like before for normal dividers. "Horizontal" ones look better because they no longer use image backgrounds. <img width="917" alt="Screenshot 2023-06-27 at 19 07 56" src="https://github.com/go-gitea/gitea/assets/115237/d97d8dec-6859-44a8-85ba-e4549b4dd9df"> <img width="914" alt="Screenshot 2023-06-27 at 19 05 58" src="https://github.com/go-gitea/gitea/assets/115237/8bf98544-2d82-4ebf-ac68-d6dc237bd6b2"> <img width="1246" alt="Screenshot 2023-06-27 at 19 00 42" src="https://github.com/go-gitea/gitea/assets/115237/36a6bb21-6029-4f53-8bee-535f55c66fed"> <img width="344" alt="Screenshot 2023-06-27 at 18 58 15" src="https://github.com/go-gitea/gitea/assets/115237/a9e70aee-8e6b-4ea1-9e93-19c9f96aec6e"> <img width="823" alt="Screenshot 2023-06-27 at 18 56 22" src="https://github.com/go-gitea/gitea/assets/115237/e7a497cd-f262-4683-8872-23c3c8cce32f"> <img width="330" alt="Screenshot 2023-06-27 at 19 21 11" src="https://github.com/go-gitea/gitea/assets/115237/42f24149-a655-4c7e-bd26-8ab52db6446b">
63 lines
2.3 KiB
Handlebars
63 lines
2.3 KiB
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository new milestone">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
<div class="navbar">
|
|
{{template "repo/issue/navbar" .}}
|
|
{{if and (or .CanWriteIssues .CanWritePulls) .PageIsEditMilestone}}
|
|
<div class="ui right floated secondary menu">
|
|
<a class="ui green button" href="{{$.RepoLink}}/milestones/new">{{.locale.Tr "repo.milestones.new"}}</a>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
<div class="divider"></div>
|
|
<h2 class="ui dividing header">
|
|
{{if .PageIsEditMilestone}}
|
|
{{.locale.Tr "repo.milestones.edit"}}
|
|
<div class="sub header">{{.locale.Tr "repo.milestones.edit_subheader"}}</div>
|
|
{{else}}
|
|
{{.locale.Tr "repo.milestones.new"}}
|
|
<div class="sub header">{{.locale.Tr "repo.milestones.new_subheader"}}</div>
|
|
{{end}}
|
|
</h2>
|
|
{{template "base/alert" .}}
|
|
<form class="ui form grid" action="{{.Link}}" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<div class="twelve wide column">
|
|
<div class="field {{if .Err_Title}}error{{end}}">
|
|
<label>{{.locale.Tr "repo.milestones.title"}}</label>
|
|
<input name="title" placeholder="{{.locale.Tr "repo.milestones.title"}}" value="{{.title}}" autofocus required maxlength="50">
|
|
</div>
|
|
<div class="field {{if .Err_Deadline}}error{{end}}">
|
|
<label>
|
|
{{.locale.Tr "repo.milestones.due_date"}}
|
|
<a id="clear-date">{{.locale.Tr "repo.milestones.clear"}}</a>
|
|
</label>
|
|
<input type="date" id="deadline" name="deadline" value="{{.deadline}}" placeholder="{{.locale.Tr "repo.issues.due_date_form"}}">
|
|
</div>
|
|
<div class="field">
|
|
<label>{{.locale.Tr "repo.milestones.desc"}}</label>
|
|
<textarea name="content">{{.content}}</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="ui container">
|
|
<div class="divider"></div>
|
|
<div class="ui right">
|
|
{{if .PageIsEditMilestone}}
|
|
<a class="ui primary basic button" href="{{.RepoLink}}/milestones">
|
|
{{.locale.Tr "repo.milestones.cancel"}}
|
|
</a>
|
|
<button class="ui green button">
|
|
{{.locale.Tr "repo.milestones.modify"}}
|
|
</button>
|
|
{{else}}
|
|
<button class="ui green button">
|
|
{{.locale.Tr "repo.milestones.create"}}
|
|
</button>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|