diff options
-rw-r--r-- | options/locale/locale_en-US.ini | 1 | ||||
-rw-r--r-- | templates/repo/issue/labels/label_list.tmpl | 5 | ||||
-rw-r--r-- | web_src/css/helpers.css | 2 |
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; } |