Fixed issue deadline not showing on issue page (#3930)
This commit is contained in:
parent
ce791454cb
commit
60424b7bad
|
@ -211,7 +211,7 @@
|
||||||
|
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<span class="text"><strong>{{.i18n.Tr "repo.issues.due_date"}}</strong></span>
|
<span class="text"><strong>{{.i18n.Tr "repo.issues.due_date"}}</strong></span>
|
||||||
{{if gt .Issue.DeadlineUnix 0}}
|
{{if ne .Issue.DeadlineUnix 0}}
|
||||||
<p>
|
<p>
|
||||||
<span class="octicon octicon-calendar"></span>
|
<span class="octicon octicon-calendar"></span>
|
||||||
{{.Issue.DeadlineUnix.FormatShort}}
|
{{.Issue.DeadlineUnix.FormatShort}}
|
||||||
|
@ -229,12 +229,12 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if and .IsSigned .IsRepositoryWriter}}
|
{{if and .IsSigned .IsRepositoryWriter}}
|
||||||
<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">
|
<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">
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<div class="ui fluid action input">
|
<div class="ui fluid action input">
|
||||||
<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;">
|
<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;">
|
||||||
<button class="ui green icon button">
|
<button class="ui green icon button">
|
||||||
{{if gt .Issue.DeadlineUnix 0}}
|
{{if ne .Issue.DeadlineUnix 0}}
|
||||||
<i class="edit icon"></i>
|
<i class="edit icon"></i>
|
||||||
{{else}}
|
{{else}}
|
||||||
<i class="plus icon"></i>
|
<i class="plus icon"></i>
|
||||||
|
|
Loading…
Reference in New Issue