From d941206d410fef6d4d3bcc65e50cf363da9756f3 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Fri, 13 May 2022 09:24:55 +0800 Subject: [PATCH] fix issue --- templates/repo/home.tmpl | 445 +++++++------ templates/repo/view_list.tmpl | 531 ++++----------- web_src/js/features/contexmenu.js | 153 +++++ web_src/js/index.js | 1034 +++++++++++++++-------------- 4 files changed, 1050 insertions(+), 1113 deletions(-) create mode 100644 web_src/js/features/contexmenu.js diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 6857cbef7..7c44aa147 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -1,102 +1,114 @@ {{template "base/head" .}}
{{template "repo/header" .}}
+ {{template "base/alert" .}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} - - {{end}} -
- {{.i18n.Tr "repo.topic.count_prompt"}} - {{.i18n.Tr "repo.topic.format_prompt"}} -
+ {{end}} +
+ {{.i18n.Tr "repo.topic.count_prompt"}} + {{.i18n.Tr "repo.topic.format_prompt"}} +
{{if .RepoSearchEnabled}} - {{if .Repository.IsArchived}} -
- {{.i18n.Tr "repo.archive.title"}} -
+
+ {{.i18n.Tr "repo.archive.title"}} +
{{end}} {{template "repo/sub_menu" .}}