diff options
author | kolaente <konrad@kola-entertainments.de> | 2018-05-10 06:05:12 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-05-10 07:05:12 +0300 |
commit | 60424b7bad7e4a8cb79b4c1e7c7cfb96efd05b28 (patch) | |
tree | e0a2674a3a30ead98fd87a3ed9cfed50281a5f3d /templates/repo/issue | |
parent | ce791454cba0429c1dc8a55bd167076f16b65068 (diff) | |
download | gitea-60424b7bad7e4a8cb79b4c1e7c7cfb96efd05b28.tar.gz gitea-60424b7bad7e4a8cb79b4c1e7c7cfb96efd05b28.zip |
Fixed issue deadline not showing on issue page (#3930)
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/view_content/sidebar.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index f403fa7cc7..f0e4f96cfa 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -211,7 +211,7 @@ <div class="ui divider"></div> <span class="text"><strong>{{.i18n.Tr "repo.issues.due_date"}}</strong></span> - {{if gt .Issue.DeadlineUnix 0}} + {{if ne .Issue.DeadlineUnix 0}} <p> <span class="octicon octicon-calendar"></span> {{.Issue.DeadlineUnix.FormatShort}} @@ -229,12 +229,12 @@ {{end}} {{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}} <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"> - {{if gt .Issue.DeadlineUnix 0}} + {{if ne .Issue.DeadlineUnix 0}} <i class="edit icon"></i> {{else}} <i class="plus icon"></i> |