-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
member
, collaborator
, contributor
, and `first-time contribu…
…tor` roles and tooltips (#26658) GitHub like role descriptor ![image](https://github.com/go-gitea/gitea/assets/18380374/ceaed92c-6749-47b3-89e8-0e0e7ae65321) ![image](https://github.com/go-gitea/gitea/assets/18380374/8193ec34-cbf0-47f9-b0de-10dbddd66970) ![image](https://github.com/go-gitea/gitea/assets/18380374/56c7ed85-6177-425e-9f2f-926e99770782) --------- Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
- Loading branch information
1 parent
0d55f64
commit d2e4039
Showing
5 changed files
with
97 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
{{if and (.ShowRole.HasRole "Poster") (not .IgnorePoster)}} | ||
<div class="ui basic label role-label"> | ||
{{ctx.Locale.Tr "repo.issues.poster"}} | ||
{{if and .ShowRole.IsPoster (not .IgnorePoster)}} | ||
<div class="ui basic label role-label" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.author_helper"}}"> | ||
{{ctx.Locale.Tr "repo.issues.author"}} | ||
</div> | ||
{{end}} | ||
{{if (.ShowRole.HasRole "Writer")}} | ||
<div class="ui basic label role-label"> | ||
{{ctx.Locale.Tr "repo.issues.collaborator"}} | ||
</div> | ||
{{end}} | ||
{{if (.ShowRole.HasRole "Owner")}} | ||
<div class="ui basic label role-label"> | ||
{{ctx.Locale.Tr "repo.issues.owner"}} | ||
{{if .ShowRole.RoleInRepo}} | ||
<div class="ui basic label role-label" data-tooltip-content="{{.ShowRole.RoleInRepo.LocaleHelper ctx.Locale}}"> | ||
{{.ShowRole.RoleInRepo.LocaleString ctx.Locale}} | ||
</div> | ||
{{end}} |