-
Notifications
You must be signed in to change notification settings - Fork 193
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
feat: split start/end dates into separate columns on main list #11989
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -64,7 +64,8 @@ <h1 class="modal-title fs-5" id="createModalLabel"> | |||||
{% include "nimbus_experiments/table_header.html" with field="Size" up=sort_choices.SIZE_UP down=sort_choices.SIZE_DOWN %} | ||||||
{% include "nimbus_experiments/table_header.html" with field="Features" up=sort_choices.FEATURES_UP down=sort_choices.FEATURES_DOWN %} | ||||||
{% include "nimbus_experiments/table_header.html" with field="Versions" up=sort_choices.VERSIONS_UP down=sort_choices.VERSIONS_DOWN %} | ||||||
{% include "nimbus_experiments/table_header.html" with field="Dates" up=sort_choices.DATES_UP down=sort_choices.DATES_DOWN %} | ||||||
{% include "nimbus_experiments/table_header.html" with field="Start" up=sort_choices.START_DATE_UP down=sort_choices.START_DATE_DOWN %} | ||||||
{% include "nimbus_experiments/table_header.html" with field="End" up=sort_choices.END_DATE_UP down=sort_choices.END_DATE_DOWN %} | ||||||
|
||||||
<th scope="col">Results</th> | ||||||
</tr> | ||||||
|
@@ -110,11 +111,14 @@ <h1 class="modal-title fs-5" id="createModalLabel"> | |||||
</td> | ||||||
<td> | ||||||
{% if experiment.start_date %} | ||||||
{{ experiment.start_date|date:"Y-m-d" }} - | ||||||
<br> | ||||||
{{ experiment.computed_end_date|date:"Y-m-d" }} | ||||||
<br> | ||||||
({{ experiment.computed_duration_days }} days) | ||||||
{{ experiment.start_date|date:"Y-m-d" }} | ||||||
{% else %} | ||||||
N/A | ||||||
{% endif %} | ||||||
</td> | ||||||
<td> | ||||||
{% if experiment.computed_end_date %} | ||||||
{{ experiment.computed_end_date|date:"Y-m-d" }}({{ experiment.computed_duration_days }} days) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just noticed this typo:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's my fork so I could probably do it, but that's fine too -- it's just a space! |
||||||
{% else %} | ||||||
N/A | ||||||
{% endif %} | ||||||
|
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.
Huh! That's really interesting! I've always wondered how to do that, I've never seen this pattern before, but it makes perfect sense. Great job!