From e0a796a6410f7a540e2bc16ac5e386305c9321d1 Mon Sep 17 00:00:00 2001 From: puni9869 <80308335+puni9869@users.noreply.github.com> Date: Sun, 27 Aug 2023 15:02:54 +0530 Subject: [PATCH] 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 Co-authored-by: silverwind --- options/locale/locale_en-US.ini | 1 + templates/repo/issue/labels/label_list.tmpl | 5 +++++ web_src/css/helpers.css | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) 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 @@
  • {{RenderLabel $.Context .}} + {{if not .ArchivedUnix.IsZero}} + + {{$.locale.Tr "home.archived"}} + + {{end}} {{if .Description}}
    {{.Description | RenderEmoji $.Context}}{{end}}
    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; }