diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 43a8aeb08eb1c..2f303ad077f3d 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2331,6 +2331,7 @@ tag.create_success = Tag '%s' has been created. topic.manage_topics = Manage Topics topic.done = Done +topic.delete = Delete topic.count_prompt = You cannot select more than 25 topics topic.format_prompt = Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 82e6626e333a5..d74f8c0efcf84 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -30,7 +30,7 @@
{{range .Topics}}{{.Name}}{{end}} - {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.locale.Tr "repo.topic.manage_topics"}}{{end}} + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.locale.Tr "repo.topic.manage_topics"}}{{end}}
{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} @@ -40,7 +40,7 @@ diff --git a/web_src/js/features/repo-home.js b/web_src/js/features/repo-home.js index c4bdf3d4506dc..4b89dfcc66f1d 100644 --- a/web_src/js/features/repo-home.js +++ b/web_src/js/features/repo-home.js @@ -16,6 +16,12 @@ export function initRepoTopicBar() { viewDiv.hide(); editDiv.css('display', ''); // show Semantic UI Grid }); + mgrBtn.on('keydown', (e) => { + if (e.key === 'Enter' || e.key === ' ') { + viewDiv.hide(); + editDiv.css('display', ''); // show Semantic UI Grid + } + }); function getPrompts() { const hidePrompt = $('div.hide#validate_prompt');