I'm looking for ways to use Gitea for the sole purpose(*) of viewing git repositories online. In order to use Gitea this way, I think it would be helpful if the following features could be supported:
Be able to disable/hide the 'Releases' tab. It clutters the UX but also risks users to think that is the goto location for download releases. For example, I'd like to hide https://try.gitea.io/HenrikBengtsson/listenv/releases
Be able to disable/hide the clone URLs and download button on the 'Code' page, e.g. https://try.gitea.io/HenrikBengtsson/listenv/. If there is a way to have the presented SSH and HTTPS clone URLs perfectly reflect the "true" URL (e.g. https://github.com/HenrikBengtsson/listenv.git), then this wish is moot.
Be able to disable/hide the 'Fork' button.
Be able to disable/hide the 'Watch' and 'Star' buttons.
Please let me know if there are existing discussions on 'GItea as a Git Viewer Only' elsewhere. I understand that there exist such projects/tools out there, but I wish to use Gitea because of (*) below.
(*) This could also serve as a "gateway drug" for those who wish to explore the power of Gitea in public but who are not ready to take the step of migrating users from their existing Git server, among other reasons. If successful, more features could be opened up. Please note that I used a GitHub repository as an example above because it was easy - that is not the target audience I'm think of.
You could do all of these by using a custom template:
https://docs.gitea.io/en-us/customizing-gitea/
So for example you can copy the repo/header.tmpl file and remove the release link, watch/star and fork buttons. The clone section is in repo/home.tmpl
There have been discussions that all repo units should be possible to disabled (e..g #7525)
I don't think Gitea should offer an option to hide certain things (e.g. clone URL/button) if it is not also disabled in the backend. It would be a security issue if people think they disabled cloning but it was only hidden in the UI.
Most helpful comment
You could do all of these by using a custom template:
https://docs.gitea.io/en-us/customizing-gitea/
So for example you can copy the repo/header.tmpl file and remove the release link, watch/star and fork buttons. The clone section is in repo/home.tmpl