From 032c90e7c5ff9daa052b890cf52c61cd57c98c5c Mon Sep 17 00:00:00 2001 From: Mura Li Date: Tue, 3 Sep 2019 06:29:04 +0800 Subject: [PATCH] Add tooltip for the visibility checkbox in /repo/create (#8025) * Add tooltip for the visibility checkbox in /repo/create * Change the tooltip wording * Update options/locale/locale_en-US.ini Co-Authored-By: Lauris BH --- options/locale/locale_en-US.ini | 1 + templates/repo/create.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 3e793bef96..4d2031c5de 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -567,6 +567,7 @@ owner = Owner repo_name = Repository Name repo_name_helper = Good repository names use short, memorable and unique keywords. visibility = Visibility +visibility.tooltip = Only the owner or the organization members if they have rights, will be able to see it. visibility_helper = Make Repository Private visibility_helper_forced = Your site administrator forces new repositories to be private. visibility_fork_helper = (Changing this will affect all forks.) diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 53a97f559d..46289719e8 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -38,7 +38,7 @@ {{.i18n.Tr "repo.repo_name_helper"}} -
+
{{if .IsForcedPrivate}}