Closed
Bug 1209219
Opened 9 years ago
Closed 8 years ago
Add an option to the disable the "X months ago" format for dates
Categories
(bugzilla.mozilla.org :: User Interface, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: botond, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
8.32 KB,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
I'm trying out the experimental user interface activated under General Preferences -> "Use experimental user interface". I like it, except for one thing: the dates have all changed from "2015-09-28 16:02 EDT" format to "a minute ago" / "2 months ago" etc. format, which I really dislike. It would be great to provide an option to use the original date format.
Comment 1•9 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #0) > I'm trying out the experimental user interface activated under General > Preferences -> "Use experimental user interface". I like it, except for one > thing: the dates have all changed from "2015-09-28 16:02 EDT" format to "a > minute ago" / "2 months ago" etc. format, which I really dislike. It would > be great to provide an option to use the original date format. If you mouse over and of the relative dates, it will show the exact timestamp. dkl
Comment 2•9 years ago
|
||
We already have quite a number of preferences, so we are hesitant to add any more, particularly since, as dkl says, you can get the absolute time, even if it's not displayed by default.
Reporter | ||
Comment 3•9 years ago
|
||
I realize you can mouse over it, but it's still not the same as seeing all dates on the page in your preferred format. It's the sort of thing that's very likely to make me (and I'm guessing, at least some others) switch back to the original interface in spite of the other improvements.
i see value in having this preference, but let's tidy up the prefs page first (bug 1209599).
Updated•8 years ago
|
Assignee: nobody → dylan
Comment 5•8 years ago
|
||
- added semicolon to bug-modal.js for consistency/not triggering the linter. - added user pref for toggling between absolute and relative times on the modal page. - removed suppoer for calling rel_time.html.tmpl with WRAPPER. We don't do this and supporting it would be annoying. Relative times are still calculated, and put in the 'title' attribute.
Attachment #8758918 -
Flags: review?(dkl)
Comment 6•8 years ago
|
||
Comment on attachment 8758918 [details] [diff] [review] 1209219_1.patch Review of attachment 8758918 [details] [diff] [review]: ----------------------------------------------------------------- Should we up update these places to do the setting check? Meaning, show the absolute time as the title instead of the relative time like it does now. https://github.com/mozilla/webtools-bmo-bugzilla/blob/master/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl#L88 https://github.com/mozilla/webtools-bmo-bugzilla/blob/master/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl#L161 https://github.com/mozilla/webtools-bmo-bugzilla/blob/master/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl#L72 https://github.com/mozilla/webtools-bmo-bugzilla/blob/master/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl#L249
Updated•8 years ago
|
Flags: needinfo?(dylan)
Comment 7•8 years ago
|
||
Also eventually I would like this to be a global setting now just for show_bug.cgi. We should honor this setting for MyDashboard and other reports that currently show relative times. We can create separate bugs for each of the other pages.
Comment 8•8 years ago
|
||
(In reply to David Lawrence [:dkl] from comment #6) > Comment on attachment 8758918 [details] [diff] [review] > 1209219_1.patch > > Review of attachment 8758918 [details] [diff] [review]: > ----------------------------------------------------------------- > > Should we up update these places to do the setting check? Meaning, show the > absolute time as the title instead of the relative time like it does now. > > https://github.com/mozilla/webtools-bmo-bugzilla/blob/master/extensions/ > BugModal/template/en/default/bug_modal/flags.html.tmpl#L88 > https://github.com/mozilla/webtools-bmo-bugzilla/blob/master/extensions/ > BugModal/template/en/default/bug_modal/activity_stream.html.tmpl#L161 > https://github.com/mozilla/webtools-bmo-bugzilla/blob/master/extensions/ > BugModal/template/en/default/bug_modal/attachments.html.tmpl#L72 > https://github.com/mozilla/webtools-bmo-bugzilla/blob/master/extensions/ > BugModal/template/en/default/bug_modal/edit.html.tmpl#L249 I interpreted this bug narrowly -- and I'd prefer that way in light of the recent additional blocking bugs that have been filed. the decision is yours, as reviewer. :-)
Flags: needinfo?(dylan)
Comment 9•8 years ago
|
||
(In reply to Dylan William Hardison [:dylan] from comment #8) > (In reply to David Lawrence [:dkl] from comment #6) > I interpreted this bug narrowly -- and I'd prefer that way in light of the > recent additional blocking bugs that have been filed. My main reason is we would have a mix of relative and absolute times whereas I would expect when one sets the user preference, all dates would be one or the other. We can work it out as smaller chunks (bugs) if you like. dkl
Updated•8 years ago
|
Attachment #8758918 -
Flags: review?(dkl)
Comment 10•8 years ago
|
||
all relative dates in bug_modal should be absolute with that user pref. note we'll want to figure out how to adjust the times on relative dates when the title= contains more than just a date (right now, they do not update which might be confusing at some point)
Attachment #8758918 -
Attachment is obsolete: true
Attachment #8759850 -
Flags: review?(dkl)
Comment 11•8 years ago
|
||
Comment on attachment 8759850 [details] [diff] [review] 1209219_2.patch Review of attachment 8759850 [details] [diff] [review]: ----------------------------------------------------------------- r=dkl ::: extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl @@ +85,5 @@ > <span > [% END %] > + [% IF user.setting("ui_use_absolute_time") == "on" %] > + class="abs-time-title[% " activity-ref" IF activity_id %]" > + title="[%~ f.creation_date FILTER time('%Y-%m-%d %H:%M %Z') ~%]" omit the '~' at the beginning and end brackets. ::: extensions/BugModal/web/bug_modal.js @@ +149,3 @@ > }); > > // use non-native tooltips for relative times and bug summaries Nit: // use non-native tooltips for relative/absolute times and bug summaries
Attachment #8759850 -
Flags: review?(dkl) → review+
Comment 12•8 years ago
|
||
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git d2507d1..37b2bd1 master -> master
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 13•8 years ago
|
||
See if this is causing a regression with readable statuses.
Flags: needinfo?(ehumphries)
Comment 14•8 years ago
|
||
I think it is, but I need a console log to confirm.
Flags: needinfo?(ehumphries)
See Also: → 1281189
Flags: needinfo?(ehumphries)
Reporter | ||
Comment 16•8 years ago
|
||
Thanks a lot for fixing this!
Updated•5 years ago
|
Assignee: dylan → nobody
Component: User Interface: Modal → User Interface
You need to log in
before you can comment on or make changes to this bug.
Description
•