From f30cc9faa93935f5afb7a38354e5381d5e8825bf Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Wed, 19 Apr 2023 23:28:28 +0900 Subject: Add unset default project column (#23531) Close: https://github.com/go-gitea/gitea/issues/23401 --- templates/projects/view.tmpl | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'templates/projects') diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index 41bbb83f7b..338524d153 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -95,10 +95,25 @@ {{$.locale.Tr "repo.projects.column.edit"}} {{if not .Default}} - + {{svg "octicon-pin"}} {{$.locale.Tr "repo.projects.column.set_default"}} + {{else}} + + {{svg "octicon-pin"}} + {{$.locale.Tr "repo.projects.column.unset_default"}} + {{end}} {{svg "octicon-trash"}} @@ -134,18 +149,16 @@ -