Skip to content
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

viewing dates requires mouse hover #22493

Closed
Spongman opened this issue Jan 17, 2023 · 8 comments · Fixed by #28657
Closed

viewing dates requires mouse hover #22493

Spongman opened this issue Jan 17, 2023 · 8 comments · Fixed by #28657
Labels

Comments

@Spongman
Copy link

Spongman commented Jan 17, 2023

Description

  • the commits page shows all dates as "1 month ago"
    image

  • requiring mouse hover to see the actual dates is a severe usability issue:

    • it's impossible to scan the whole page of dates
    • it's impossible to select/copy a date from a tooltip
    • tooltips don't work on mobile
  • there needs to be a configurable option to display full timestamps instead of these useless relative dates/tooltips.

Gitea Version

1.17.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

systemd

Database

MySQL

@bkraul
Copy link

bkraul commented Mar 16, 2023

Second this. Very critical for audits.

@Spongman
Copy link
Author

also, why are some of the tooltips custom html:
image

and some of them just browser tooltips:
image

@lunny
Copy link
Member

lunny commented Mar 17, 2023

Is there any better solution or suggestion?

@bkraul
Copy link

bkraul commented Mar 17, 2023

there needs to be a configurable option to display full timestamps instead of these useless relative dates/tooltips.

That would probably be best...but in its absence, is there documentation we are missing that shows us how to properly template this in such a way that it does what we are asking?

@yp05327
Copy link
Contributor

yp05327 commented Apr 25, 2023

tooltips don't work on mobile

If click it, tooltips will display on my phone

@wxiaoguang
Copy link
Contributor

tooltips don't work on mobile

If click it, tooltips will display on my phone

Maybe because we have a general "tippy tooltip" now (before, the "title" didn't work)

@lunny
Copy link
Member

lunny commented Jun 20, 2023

How should this be resolved?

@bkraul
Copy link

bkraul commented Jun 20, 2023

Using full dates is far more functional than relative dates. But, a setting to alternate between the two would probably work best. The referenced PR (now closed) seemed like it would have addressed.

lunny pushed a commit that referenced this issue Jan 2, 2024
- Resolves #22493
- Related to #4520

Some admins prefer all timestamps to display the full date instead of
relative time. They can do that now by setting

```ini
[ui]
PREFERRED_TIMESTAMP_TENSE = absolute
```

This setting is set to `mixed` by default, allowing dates to render as
"5 hours ago". Here are some screenshots of the UI with this setting set
to `absolute`:

![image](https://github.com/go-gitea/gitea/assets/20454870/f496457f-6afa-44be-a1e7-249ee5fe0706)

![image](https://github.com/go-gitea/gitea/assets/20454870/c03b14f5-063d-4e13-9780-76ab002d76a9)

![image](https://github.com/go-gitea/gitea/assets/20454870/f4b34e28-1546-4374-9199-c43348844edd)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: delvh <dev.lh@web.de>
fuxiaohei pushed a commit to fuxiaohei/gitea that referenced this issue Jan 17, 2024
- Resolves go-gitea#22493
- Related to go-gitea#4520

Some admins prefer all timestamps to display the full date instead of
relative time. They can do that now by setting

```ini
[ui]
PREFERRED_TIMESTAMP_TENSE = absolute
```

This setting is set to `mixed` by default, allowing dates to render as
"5 hours ago". Here are some screenshots of the UI with this setting set
to `absolute`:

![image](https://github.com/go-gitea/gitea/assets/20454870/f496457f-6afa-44be-a1e7-249ee5fe0706)

![image](https://github.com/go-gitea/gitea/assets/20454870/c03b14f5-063d-4e13-9780-76ab002d76a9)

![image](https://github.com/go-gitea/gitea/assets/20454870/f4b34e28-1546-4374-9199-c43348844edd)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: delvh <dev.lh@web.de>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2024
silverwind pushed a commit to silverwind/gitea that referenced this issue Feb 20, 2024
- Resolves go-gitea#22493
- Related to go-gitea#4520

Some admins prefer all timestamps to display the full date instead of
relative time. They can do that now by setting

```ini
[ui]
PREFERRED_TIMESTAMP_TENSE = absolute
```

This setting is set to `mixed` by default, allowing dates to render as
"5 hours ago". Here are some screenshots of the UI with this setting set
to `absolute`:

![image](https://github.com/go-gitea/gitea/assets/20454870/f496457f-6afa-44be-a1e7-249ee5fe0706)

![image](https://github.com/go-gitea/gitea/assets/20454870/c03b14f5-063d-4e13-9780-76ab002d76a9)

![image](https://github.com/go-gitea/gitea/assets/20454870/f4b34e28-1546-4374-9199-c43348844edd)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: delvh <dev.lh@web.de>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
5 participants