-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue deadline not showing on issue page #3930
Fixed issue deadline not showing on issue page #3930
Conversation
Should we generally prohibit due dates in the past? What do you say? |
Codecov Report
@@ Coverage Diff @@
## master #3930 +/- ##
=======================================
Coverage 20.27% 20.27%
=======================================
Files 146 146
Lines 29316 29316
=======================================
Hits 5945 5945
Misses 22470 22470
Partials 901 901 Continue to review full report at Codecov.
|
@daviian Speaking from my experience, no. I admit probably noone will set a duedate prior to 1970, but at my company we sometimes have to set deadlines to like yesterday or one wwek ago. |
@kolaente Ok if thats the case then guess the fix is fine for me 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tricky but I don't know anything better to recommend :)
@@ -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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space ;)
{{$.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;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well
<button class="ui green icon button"> | ||
{{if gt .Issue.DeadlineUnix 0}} | ||
{{if ne.Issue.DeadlineUnix 0}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well
Partially fixes #3922.