forked from gitea/gitea

Backport #25748 by @hiifong I think hiding the add file button for mirror repositories that can keep the ui clean. Before:  After:  Co-authored-by: hiifong <i@hiif.ong>