File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
templates/repo/issue/view_content Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 211
211
212
212
<div class="ui divider"></div>
213
213
<span class="text"><strong>{{.i18n.Tr "repo.issues.due_date"}}</strong></span>
214
- {{if gt .Issue.DeadlineUnix 0}}
214
+ {{if ne .Issue.DeadlineUnix 0}}
215
215
<p>
216
216
<span class="octicon octicon-calendar"></span>
217
217
{{.Issue.DeadlineUnix.FormatShort}}
229
229
{{end}}
230
230
231
231
{{if and .IsSigned .IsRepositoryWriter}}
232
- <form method="POST"{{if gt .Issue.DeadlineUnix 0}}style="display: none;"{{end} }} id="add_deadline_form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/deadline/update" class="ui action input fluid">
232
+ <form method="POST" {{if ne .Issue.DeadlineUnix 0}}style="display: none;"{{end}} id="add_deadline_form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/deadline/update" class="ui action input fluid">
233
233
{{$.CsrfTokenHtml}}
234
234
<div class="ui fluid action input">
235
- <input required placeholder="{{.i18n.Tr "repo.issues.due_date_form"}}" {{if gt .Issue.DeadlineUnix 0}}value="{{.Issue.DeadlineUnix.Format "2006-01-02"}}"{{end}} type="date" name="date" style="min-width: 13.9rem;border-radius: 4px 0 0 4px;border-right: 0;white-space: nowrap;">
235
+ <input required placeholder="{{.i18n.Tr "repo.issues.due_date_form"}}" {{if ne .Issue.DeadlineUnix 0 }}value="{{.Issue.DeadlineUnix.Format "2006-01-02"}}"{{end}} type="date" name="date" style="min-width: 13.9rem;border-radius: 4px 0 0 4px;border-right: 0;white-space: nowrap;">
236
236
<button class="ui green icon button">
237
- {{if gt .Issue.DeadlineUnix 0}}
237
+ {{if ne .Issue.DeadlineUnix 0}}
238
238
<i class="edit icon"></i>
239
239
{{else}}
240
240
<i class="plus icon"></i>
You can’t perform that action at this time.
0 commit comments