From 3f7ac380f4fbb1f00966a2fd1419b2ed67d2f363 Mon Sep 17 00:00:00 2001 From: puni9869 Date: Wed, 28 Jun 2023 23:49:50 +0530 Subject: [PATCH 1/2] Adding translation for branch name copy and button in branches screen --- options/locale/locale_en-US.ini | 1 + templates/repo/branch/list.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 4d9d9bc60e66f..ccb1291c32f7f 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2474,6 +2474,7 @@ branch.create_branch_operation = Create branch branch.new_branch = Create new branch branch.new_branch_from = Create new branch from "%s" branch.renamed = Branch %s was renamed to %s. +branch.copy_branch_name = Copy Branch Name tag.create_tag = Create tag %s tag.create_tag_operation = Create tag diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index d68feb43b7893..ed7000ca5d6f8 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -131,6 +131,7 @@ {{end}} + {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} + {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}