aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpuni9869 <80308335+puni9869@users.noreply.github.com>2023-08-27 15:02:54 +0530
committerGitHub <noreply@github.com>2023-08-27 09:32:54 +0000
commite0a796a6410f7a540e2bc16ac5e386305c9321d1 (patch)
treecb4172c77155ac6162475e9567102cf83933df80
parent43652746f2929aeb53ec1e575c3691050755a0b5 (diff)
downloadgitea-e0a796a6410f7a540e2bc16ac5e386305c9321d1.tar.gz
gitea-e0a796a6410f7a540e2bc16ac5e386305c9321d1.zip
Adding hint `Archived` to archive label. (#26741)
Followup https://github.com/go-gitea/gitea/pull/26478 ## Archived labels UI Changed: * Enhanced the Filtered UI page to seamlessly incorporate a list of archived labels. Outsourced: * Defer the implementation of specialized handling for archived labels to upcoming pull requests. This step will be undertaken subsequent to the successful merge of this pull request. Screenshots ![image](https://github.com/go-gitea/gitea/assets/80308335/1f33cfb2-2bac-46f0-9103-9e62d235b1d2) ![image](https://github.com/go-gitea/gitea/assets/80308335/3609acd0-b1ba-4ee9-8c4e-1a34dbc37dd7) ![image](https://github.com/go-gitea/gitea/assets/80308335/9860196d-2391-409b-a9a0-1205ab4b412b) --- Part of https://github.com/go-gitea/gitea/issues/25237 --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: silverwind <me@silverwind.io>
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--templates/repo/issue/labels/label_list.tmpl5
-rw-r--r--web_src/css/helpers.css2
3 files changed, 7 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index abb98c608e..43930b02ad 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -317,6 +317,7 @@ filter_by_team_repositories = Filter by team repositories
feed_of = Feed of "%s"
show_archived = Archived
+archived = Archived
show_both_archived_unarchived = Showing both archived and unarchived
show_only_archived = Showing only archived
show_only_unarchived = Showing only unarchived
diff --git a/templates/repo/issue/labels/label_list.tmpl b/templates/repo/issue/labels/label_list.tmpl
index c15833d952..b29e606baa 100644
--- a/templates/repo/issue/labels/label_list.tmpl
+++ b/templates/repo/issue/labels/label_list.tmpl
@@ -33,6 +33,11 @@
<li class="item">
<div class="label-title">
{{RenderLabel $.Context .}}
+ {{if not .ArchivedUnix.IsZero}}
+ <span class="gt-ml-3 gt-cursor-default gt-italic" data-tooltip-content="{{$.locale.Tr "repo.issues.label_archive_tooltip"}}">
+ {{$.locale.Tr "home.archived"}}
+ </span>
+ {{end}}
{{if .Description}}<br><small class="desc">{{.Description | RenderEmoji $.Context}}</small>{{end}}
</div>
<div class="label-issues">
diff --git a/web_src/css/helpers.css b/web_src/css/helpers.css
index bd1fb992ac..f832eff786 100644
--- a/web_src/css/helpers.css
+++ b/web_src/css/helpers.css
@@ -71,7 +71,7 @@ Gitea's private styles use `g-` prefix.
.gt-no-underline { text-decoration-line: none !important; }
.gt-w-auto { width: auto !important; }
.gt-normal-case { text-transform: none !important; }
-
+.gt-italic { font-style: italic !important; }
.gt-overflow-x-auto { overflow-x: auto !important; }
.gt-overflow-x-scroll { overflow-x: scroll !important; }
.gt-overflow-y-hidden { overflow-y: hidden !important; }