Skip to content

On the file page, the repository's description, website link, topics list, and statistics bar should be gone #21406

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

Closed
ell1e opened this issue Oct 11, 2022 · 1 comment
Labels
good first issue Likely to be an easy fix type/bug

Comments

@ell1e
Copy link

ell1e commented Oct 11, 2022

Description

On the file page, the repository's description, website link, topics list, and statistics bar should be gone to make space for the actual file. For example, this is what I expect when I'm linked a license file to read (this was edited/not how it looks like):

fileviewgiteaexpected

Instead, my screen is mostly filled with generic info on the repository that I expect on its main page, not when I'm trying to look at a file of which I can just see a single line of its content:

fileviewgiteaactual
Oh and I forgot to mention, GitHub does this too. So it's not just some weird idea I came up with myself.

Gitea Version

1.17.2+75-g67c091c

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?

I'm not, I tested this on others' instances

Database

No response

@ell1e ell1e added the type/bug label Oct 11, 2022
@zeripath zeripath added the good first issue Likely to be an easy fix label Oct 11, 2022
neel1996 added a commit to neel1996/gitea that referenced this issue Oct 11, 2022
- Hide repository's description, website link, topics list, and statistics bar while viewing or blaming a file from the repo
- Resolves go-gitea#21406
neel1996 added a commit to neel1996/gitea that referenced this issue Oct 12, 2022
- Asserts that repo description, topics and summary are not displayed in file view / blame mode
- Resolves go-gitea#21406
@neel1996
Copy link
Contributor

Hi, The fix for this issue has been raised as #21420

The repo description, topics and stats are conditionally hidden when the user is in file view or blame mode

neel1996 added a commit to neel1996/gitea that referenced this issue Oct 12, 2022
- Asserts if repo description, topics and summary are displayed in the repo home page
- Test enhancement for go-gitea#21406
neel1996 added a commit to neel1996/gitea that referenced this issue Oct 12, 2022
- The repo description, topics and summary will not be displayed within a directory
- The repo home page will still display the repo info
- Resolves go-gitea#21406
zjjhot added a commit to zjjhot/gitea that referenced this issue Oct 14, 2022
* upstream/main:
  Add cynkra bronze sponsor (go-gitea#21325)
  Run `make fmt` (go-gitea#21437)
  Remove useless `appVer` from JS `window.config` (go-gitea#21445)
  Add support for Chocolatey/NuGet v2 API (go-gitea#21393)
  Fix go-gitea#21406: Hide repo information from file view/blame mode (go-gitea#21420)
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Likely to be an easy fix type/bug
Projects
None yet
Development

No branches or pull requests

3 participants