File tree 4 files changed +10
-0
lines changed
4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1273,6 +1273,10 @@ func sortIssuesSession(sess *xorm.Session, sortType string) {
1273
1273
sess .Asc ("issue.num_comments" )
1274
1274
case "priority" :
1275
1275
sess .Desc ("issue.priority" )
1276
+ case "nearduedate" :
1277
+ sess .Asc ("issue.deadline_unix" )
1278
+ case "farduedate" :
1279
+ sess .Desc ("issue.deadline_unix" )
1276
1280
default :
1277
1281
sess .Desc ("issue.created_unix" )
1278
1282
}
Original file line number Diff line number Diff line change @@ -722,6 +722,8 @@ issues.filter_sort.recentupdate = Recently updated
722
722
issues.filter_sort.leastupdate = Least recently updated
723
723
issues.filter_sort.mostcomment = Most commented
724
724
issues.filter_sort.leastcomment = Least commented
725
+ issues.filter_sort.nearduedate = Nearest due date
726
+ issues.filter_sort.farduedate = Farthest due date
725
727
issues.filter_sort.moststars = Most stars
726
728
issues.filter_sort.feweststars = Fewest stars
727
729
issues.filter_sort.mostforks = Most forks
Original file line number Diff line number Diff line change 106
106
<a class="{{if eq .SortType "leastupdate"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort=leastupdate&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_sort.leastupdate"}}</a>
107
107
<a class="{{if eq .SortType "mostcomment"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort=mostcomment&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_sort.mostcomment"}}</a>
108
108
<a class="{{if eq .SortType "leastcomment"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort=leastcomment&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_sort.leastcomment"}}</a>
109
+ <a class="{{if eq .SortType "nearduedate"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort=nearduedate&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_sort.nearduedate"}}</a>
110
+ <a class="{{if eq .SortType "farduedate"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort=farduedate&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_sort.farduedate"}}</a>
109
111
</div>
110
112
</div>
111
113
</div>
Original file line number Diff line number Diff line change 53
53
<a class="{{if eq .SortType "leastupdate"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=leastupdate&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_sort.leastupdate"}}</a>
54
54
<a class="{{if eq .SortType "mostcomment"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=mostcomment&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_sort.mostcomment"}}</a>
55
55
<a class="{{if eq .SortType "leastcomment"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=leastcomment&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_sort.leastcomment"}}</a>
56
+ <a class="{{if eq .SortType "nearduedate"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=nearduedate&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_sort.nearduedate"}}</a>
57
+ <a class="{{if eq .SortType "farduedate"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=farduedate&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_sort.farduedate"}}</a>
56
58
</div>
57
59
</div>
58
60
</div>
You can’t perform that action at this time.
0 commit comments