プロジェクト

全般

プロフィール

Vote #76551

未完了

Ability to switch date format (from relative into absolute) in issue notes titles

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
0
issue_org_id:
20310
author_id:
131920
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

On Issue page, if there are some notes, every note has its own title, like "Updated by %USERNAME% about 1 month ago".

If hover "about 1 month ago" with mouse, there is HTML title (hovering tooltip) with absolute date of this note.

I ask an option to turn relative-style "about 1 month ago" titles into absolute-style "2015-06-09 16:56" titles by default. So admin (or even user for himself) could switch between this two modes.

I'm sorry if there is already such functionality, but I didn't find it.


journals

Antonio Kless wrote:
> I ask an option to turn relative-style "about 1 month ago" titles into absolute-style "2015-06-09 16:56" titles by default. [...]

Almost the same result can be achieved using some custom CSS that would change every individual datetime link to activity pages, so that these lines will be shown (note that I use parentheses to indicate a link), instead of like this:
<pre>Updated by (USERNAME) (about 1 month) ago</pre>now like the following:
<pre>Updated by (USERNAME) ([2015-06-09 16:56] about 1 month) ago</pre>

See the message#45157 thread in the forums for the details.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Mischa The Evil wrote:
> Almost the same result can be achieved using some custom CSS

"This code":https://www.redmine.org/boards/2/topics/45157
<pre>
a[href*="activity"][title*=":"]:before {
content: ' [' attr(title) '] ';
}</pre>used to provide a mostly acceptable workaround, but in Redmine 4.1.1 with jQuery title, hovering the dates has a very bad flickering effect. :(

This may work in application.js:
<pre>
$(document).ready(function() {
$('a[href*="activity"][title*=":"]').prepend(function() {
var ret= '['+this.title+'] ';
this.removeAttribute("title");
return ret;
});
});</pre>

Relative time should only be an option, though.
--------------------------------------------------------------------------------


related_issues

relates,New,3148,Dates formatted as ages are too vague

Admin Redmine さんが約2年前に更新

  • カテゴリIssues_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0