Skip to content

Show the commit hash on the right side when visualizing a file content #29793

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

Open
joseluisq opened this issue Mar 14, 2024 · 3 comments
Open
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@joseluisq
Copy link

joseluisq commented Mar 14, 2024

Feature Description

In Gitea 1.21.8, it displays the following information when visualizing a file such as its commit and date-time but it seems very constrained.

image

Source: https://gitea.com/builderdotnet/rpp/src/branch/main/.gitignore

Screenshots

However, it would be great to show the short commit hash on the right side like the date-time, leaving just the author and the commit message on the left. Similar to how GitHub for example does it. Below is an example:

image

@joseluisq joseluisq added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Mar 14, 2024
@silverwind
Copy link
Member

silverwind commented Mar 14, 2024

I agree that commit hash can be moved to right side. This goes not only for that box, but also for the repo commits table and last commit header in the repo files table.

It also ties in with #29641 which aims to de-emphasize commit hashes to a styling similar to GitHub.

@joseluisq joseluisq changed the title Show the date-time and short commit hash to the right side when visualizing a file content Show the date-time and short commit hash on the right side when visualizing a file content Mar 14, 2024
@silverwind silverwind changed the title Show the date-time and short commit hash on the right side when visualizing a file content Show the commit hash on the right side when visualizing a file content Mar 14, 2024
@silverwind
Copy link
Member

Edited the title: Date is already on right side, so this is only about moving the hash.

@joseluisq
Copy link
Author

The description is also updated accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants