From c0e1aac8f0d1e34f0515f6f18a17da35aa621031 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 8 Sep 2023 14:31:42 +0800 Subject: [PATCH 01/10] fix --- templates/repo/sub_menu.tmpl | 68 ++++++++--------- web_src/css/repo.css | 106 ++++++--------------------- web_src/js/features/common-global.js | 10 +-- web_src/js/features/repo-common.js | 12 +-- web_src/js/features/repo-legacy.js | 2 - 5 files changed, 59 insertions(+), 139 deletions(-) diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl index da5f37fa05765..044d5637d9bba 100644 --- a/templates/repo/sub_menu.tmpl +++ b/templates/repo/sub_menu.tmpl @@ -1,48 +1,44 @@ {{if and (not .HideRepoInfo) (not .IsBlame)}} -
+
{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) .LanguageStats}}