From f5816d5a1587bdc5dc8015abbf35af0e429d47b0 Mon Sep 17 00:00:00 2001 From: Mura Li Date: Thu, 29 Aug 2019 10:40:24 +0800 Subject: [PATCH 1/3] Add tooltip for the visibility checkbox in /repo/create --- 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 d6d54a22492cb..6c400416fdc4e 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -562,6 +562,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 and the members (of organizations) of the repository can 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 53a97f559d899..46289719e8ed2 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -38,7 +38,7 @@ {{.i18n.Tr "repo.repo_name_helper"}} -
+
{{if .IsForcedPrivate}} From e47917be9268b8f610e737f97fa7693895158f58 Mon Sep 17 00:00:00 2001 From: Mura Li Date: Thu, 29 Aug 2019 11:57:00 +0800 Subject: [PATCH 2/3] Change the tooltip wording --- options/locale/locale_en-US.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 6c400416fdc4e..c3199c410a099 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -562,7 +562,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 and the members (of organizations) of the repository can see it +visibility.tooltip = Only the owner, or the members if it belongs to an organization, 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.) From 9175ea4d0ccb10958ffc43b93a787d1e9fdc6495 Mon Sep 17 00:00:00 2001 From: Mura Li Date: Thu, 29 Aug 2019 20:26:51 +0800 Subject: [PATCH 3/3] Update options/locale/locale_en-US.ini Co-Authored-By: Lauris BH --- options/locale/locale_en-US.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index c3199c410a099..c998f8b808a1c 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -562,7 +562,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 members if it belongs to an organization, will be able to see it. +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.)