Skip to content

Commit e0a796a

Browse files
puni9869GiteaBotsilverwind
authored
Adding hint Archived to archive label. (#26741)
Followup #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 #25237 --------- Co-authored-by: Giteabot <[email protected]> Co-authored-by: silverwind <[email protected]>
1 parent 4365274 commit e0a796a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ filter_by_team_repositories = Filter by team repositories
317317
feed_of = Feed of "%s"
318318

319319
show_archived = Archived
320+
archived = Archived
320321
show_both_archived_unarchived = Showing both archived and unarchived
321322
show_only_archived = Showing only archived
322323
show_only_unarchived = Showing only unarchived

templates/repo/issue/labels/label_list.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
<li class="item">
3434
<div class="label-title">
3535
{{RenderLabel $.Context .}}
36+
{{if not .ArchivedUnix.IsZero}}
37+
<span class="gt-ml-3 gt-cursor-default gt-italic" data-tooltip-content="{{$.locale.Tr "repo.issues.label_archive_tooltip"}}">
38+
{{$.locale.Tr "home.archived"}}
39+
</span>
40+
{{end}}
3641
{{if .Description}}<br><small class="desc">{{.Description | RenderEmoji $.Context}}</small>{{end}}
3742
</div>
3843
<div class="label-issues">

web_src/css/helpers.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Gitea's private styles use `g-` prefix.
7171
.gt-no-underline { text-decoration-line: none !important; }
7272
.gt-w-auto { width: auto !important; }
7373
.gt-normal-case { text-transform: none !important; }
74-
74+
.gt-italic { font-style: italic !important; }
7575
.gt-overflow-x-auto { overflow-x: auto !important; }
7676
.gt-overflow-x-scroll { overflow-x: scroll !important; }
7777
.gt-overflow-y-hidden { overflow-y: hidden !important; }

0 commit comments

Comments
 (0)