-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5675efb
commit a3bcc28
Showing
14 changed files
with
195 additions
and
252 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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{{/* | ||
* "labels" from query string | ||
* QueryLink | ||
* SupportArchivedLabel, if true, then it needs "archived_labes" from query string | ||
*/}} | ||
{{$queryLink := .QueryLink}} | ||
<div class="item ui {{if not .Labels}}disabled{{end}} dropdown jump label-filter"> | ||
<span class="text">{{ctx.Locale.Tr "repo.issues.filter_label"}}</span> | ||
{{svg "octicon-triangle-down" 14 "dropdown icon"}} | ||
<div class="menu flex-items-menu"> | ||
<div class="ui icon search input"> | ||
<i class="icon">{{svg "octicon-search" 16}}</i> | ||
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_label"}}"> | ||
</div> | ||
{{if .SupportArchivedLabel}}{{/* this checkbox has a hard dependency with the "labels" and "archived_label" query parameter */}} | ||
<label class="label-filter-archived-toggle flex-text-block"> | ||
<input type="checkbox"> {{ctx.Locale.Tr "repo.issues.label_archived_filter"}} | ||
<span data-tooltip-content={{ctx.Locale.Tr "repo.issues.label_archive_tooltip"}}>{{svg "octicon-info"}}</span> | ||
</label> | ||
{{end}} | ||
<span class="info">{{ctx.Locale.Tr "repo.issues.filter_label_exclude"}}</span> | ||
<div class="divider"></div> | ||
<a class="item label-filter-query-default" href="{{QueryBuild $queryLink "labels" NIL}}">{{ctx.Locale.Tr "repo.issues.filter_label_no_select"}}</a> | ||
<a class="item label-filter-query-not-set" href="{{QueryBuild $queryLink "labels" 0}}">{{ctx.Locale.Tr "repo.issues.filter_label_select_no_label"}}</a> | ||
{{$previousExclusiveScope := "_no_scope"}} | ||
{{range .Labels}} | ||
{{$exclusiveScope := .ExclusiveScope}} | ||
{{if and (ne $previousExclusiveScope $exclusiveScope)}} | ||
<div class="divider" data-scope="{{.ExclusiveScope}}"></div> | ||
{{end}} | ||
{{$previousExclusiveScope = $exclusiveScope}} | ||
<a class="item label-filter-query-item" data-label-id="{{.ID}}" data-scope="{{.ExclusiveScope}}" {{if .IsArchived}}data-is-archived{{end}} | ||
href="{{QueryBuild $queryLink "labels" .QueryString}}"> | ||
{{if .IsExcluded}} | ||
{{svg "octicon-circle-slash"}} | ||
{{else if .IsSelected}} | ||
{{Iif $exclusiveScope (svg "octicon-dot-fill") (svg "octicon-check")}} | ||
{{end}} | ||
{{ctx.RenderUtils.RenderLabel .}} | ||
<p class="tw-ml-auto">{{template "repo/issue/labels/label_archived" .}}</p> | ||
</a> | ||
{{end}} | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{$queryLink := .QueryLink}} | ||
<div class="item ui dropdown jump user-remote-search" data-tooltip-content="{{ctx.Locale.Tr "repo.author_search_tooltip"}}" | ||
data-search-url="{{if .Milestone}}{{$.RepoLink}}/issues/posters{{else}}{{$.Link}}/posters{{end}}" | ||
data-selected-user-id="{{$.PosterID}}" | ||
data-action-jump-url="{{QueryBuild $queryLink "poster" NIL}}&poster={username}" | ||
> | ||
<span class="text">{{ctx.Locale.Tr "repo.issues.filter_poster"}}</span> | ||
{{svg "octicon-triangle-down" 14 "dropdown icon"}} | ||
<div class="menu"> | ||
<div class="ui icon search input"> | ||
<i class="icon">{{svg "octicon-search" 16}}</i> | ||
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_poster"}}"> | ||
</div> | ||
<a class="item" data-value="">{{ctx.Locale.Tr "repo.issues.filter_poster_no_select"}}</a> | ||
</div> | ||
</div> |
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
Oops, something went wrong.