Skip to content

Commit

Permalink
Linter and formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
puni9869 committed Jul 10, 2023
1 parent adb743c commit 25760b3
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions templates/repo/issue/milestone_new.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,29 @@
{{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}}
{{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>
{{.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>
{{.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" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<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">
<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>
Expand Down

0 comments on commit 25760b3

Please sign in to comment.