Skip to content

Commit e3bfee8

Browse files
GiteaBotDrMaxNix
andauthored
Change project default column icon to 'star' (#35967) (#35979)
Backport #35967 by @DrMaxNix Consistently use a `star` icon to highlight the default column of a project. The icon is both shown while viewing the project, as well as while changing the default status of this column. <img width="1065" height="370" alt="image" src="https://github.com/user-attachments/assets/1ca5773d-8eec-4b90-ad0b-22b1f4bd4cfd" /> Co-authored-by: DrMaxNix <[email protected]>
1 parent f93e2cf commit e3bfee8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ projects.column.new_submit = "Create Column"
14811481
projects.column.new = "New Column"
14821482
projects.column.set_default = "Set Default"
14831483
projects.column.set_default_desc = "Set this column as default for uncategorized issues and pulls"
1484+
projects.column.default_column_hint = "New issues added to this project will be added to this column"
14841485
projects.column.delete = "Delete Column"
14851486
projects.column.deletion_desc = "Deleting a project column moves all related issues to the default column. Continue?"
14861487
projects.column.color = "Color"

templates/projects/view.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@
7878
<div class="ui circular label project-column-issue-count">
7979
{{.NumIssues}}
8080
</div>
81-
<div class="project-column-title-text gt-ellipsis">{{.Title}}</div>
81+
<div class="project-column-title-text flex-text-inline gt-ellipsis" {{if .Default}}data-tooltip-content="{{ctx.Locale.Tr "repo.projects.column.default_column_hint"}}"{{end}}>
82+
{{if .Default}}{{svg "octicon-star"}} {{end}}{{.Title}}
83+
</div>
8284
{{if $canWriteProject}}
8385
<div class="ui dropdown tw-p-1">
8486
{{svg "octicon-kebab-horizontal"}}
@@ -98,7 +100,7 @@
98100
data-modal-confirm-header="{{ctx.Locale.Tr "repo.projects.column.set_default"}}"
99101
data-modal-confirm-content="{{ctx.Locale.Tr "repo.projects.column.set_default_desc"}}"
100102
>
101-
{{svg "octicon-pin"}} {{ctx.Locale.Tr "repo.projects.column.set_default"}}
103+
{{svg "octicon-star"}} {{ctx.Locale.Tr "repo.projects.column.set_default"}}
102104
</a>
103105
<a class="item button link-action" data-url="{{$.Link}}/{{.ID}}" data-link-action-method="DELETE"
104106
data-modal-confirm-header="{{ctx.Locale.Tr "repo.projects.column.delete"}}"

0 commit comments

Comments
 (0)