mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-20 12:25:10 +02:00
Change magic number since -2 has some internal meaning
This commit is contained in:
parent
dbab806c2d
commit
6929edabb9
@ -32,8 +32,8 @@ const NoConditionID int64 = -1
|
|||||||
|
|
||||||
// AnyConditionID means a condition to filter the records which match any id.
|
// AnyConditionID means a condition to filter the records which match any id.
|
||||||
// The inverse of the above NoConditionID
|
// The inverse of the above NoConditionID
|
||||||
// eg: "assignee_id=-2" means "find the issues with an assignee"
|
// eg: "assignee_id=-1000001" means "find the issues with an assignee"
|
||||||
const AnyConditionID int64 = -2
|
const AnyConditionID int64 = -1000001
|
||||||
|
|
||||||
// NonExistingID means a condition to match no result (eg: a non-existing user)
|
// NonExistingID means a condition to match no result (eg: a non-existing user)
|
||||||
// It doesn't use -1 or -2 because they are used as builtin users.
|
// It doesn't use -1 or -2 because they are used as builtin users.
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* TextFilterTitle
|
* TextFilterTitle
|
||||||
* TextZeroValue: the text for "all issues"
|
* TextZeroValue: the text for "all issues"
|
||||||
* TextNegativeOne: the text for "issues with no assignee"
|
* TextNegativeOne: the text for "issues with no assignee"
|
||||||
* TextNegativeTwo: the text for "issues with any assignee"
|
* TextAnyCondition: the text for "issues with any assignee"
|
||||||
*/}}
|
*/}}
|
||||||
{{$queryLink := .QueryLink}}
|
{{$queryLink := .QueryLink}}
|
||||||
<div class="item ui dropdown jump {{if not .UserSearchList}}disabled{{end}}">
|
<div class="item ui dropdown jump {{if not .UserSearchList}}disabled{{end}}">
|
||||||
@ -22,8 +22,8 @@
|
|||||||
{{if $.TextNegativeOne}}
|
{{if $.TextNegativeOne}}
|
||||||
<a class="item {{if eq .SelectedUserId -1}}selected{{end}}" href="{{QueryBuild $queryLink $.QueryParamKey -1}}">{{$.TextNegativeOne}}</a>
|
<a class="item {{if eq .SelectedUserId -1}}selected{{end}}" href="{{QueryBuild $queryLink $.QueryParamKey -1}}">{{$.TextNegativeOne}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if $.TextNegativeTwo}}
|
{{if $.TextAnyCondition}}
|
||||||
<a class="item {{if eq .SelectedUserId -2}}selected{{end}}" href="{{QueryBuild $queryLink $.QueryParamKey -2}}">{{$.TextNegativeTwo}}</a>
|
<a class="item {{if eq .SelectedUserId -1000001}}selected{{end}}" href="{{QueryBuild $queryLink $.QueryParamKey -1000001}}">{{$.TextAnyCondition}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
{{range .UserSearchList}}
|
{{range .UserSearchList}}
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
"TextFilterTitle" (ctx.Locale.Tr "repo.issues.filter_assignee")
|
"TextFilterTitle" (ctx.Locale.Tr "repo.issues.filter_assignee")
|
||||||
"TextZeroValue" (ctx.Locale.Tr "repo.issues.filter_assginee_no_select")
|
"TextZeroValue" (ctx.Locale.Tr "repo.issues.filter_assginee_no_select")
|
||||||
"TextNegativeOne" (ctx.Locale.Tr "repo.issues.filter_assginee_no_assignee")
|
"TextNegativeOne" (ctx.Locale.Tr "repo.issues.filter_assginee_no_assignee")
|
||||||
"TextNegativeTwo" (ctx.Locale.Tr "repo.issues.filter_assignee_any_assignee")
|
"TextAnyCondition" (ctx.Locale.Tr "repo.issues.filter_assignee_any_assignee")
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{if .IsSigned}}
|
{{if .IsSigned}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user