forked from gitea/gitea

Backport #25320 by @hiifong Fix #25281 When viewing a file, hide the add button   Co-authored-by: hiifong <i@hiif.ong>