From abb364f4427bc84b78e969f005fb5b4338b7d589 Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Fri, 11 Jan 2019 05:25:14 +0100 Subject: [PATCH] allow user fork repo even when as a guest.. This will prompt the user to login and if authentication was successful, the user will be redirected to fork the repo (#5690) --- options/locale/locale_en-US.ini | 1 + templates/repo/header.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 06fe12d10b..db4989cae8 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -561,6 +561,7 @@ migrate.lfs_mirror_unsupported = Mirroring LFS objects is not supported - use 'g mirror_from = mirror of forked_from = forked from fork_from_self = You cannot fork a repository you own. +fork_guest_user = Sign in to fork this repository. copy_link = Copy copy_link_success = Link has been copied copy_link_error = Use ⌘C or Ctrl-C to copy diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index c8ef4bced7..b0ea694ff9 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -32,7 +32,7 @@ {{if and (not .IsBare) ($.Permission.CanRead $.UnitTypeCode)}}
- + {{$.i18n.Tr "repo.fork"}}