summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Franz <info@jonasfranz.software>2017-10-16 22:26:11 +0200
committerLauris BH <lauris@nix.lv>2017-10-16 23:26:11 +0300
commit33647aa43bc7e55f1c4c3f47caa6ecff9a738bfe (patch)
tree23a6dd75b6ef6320baa454b098ed4ca8bb74c8a9
parent9e865cee67728486959a4fcbbf2112a57df7e331 (diff)
downloadgitea-33647aa43bc7e55f1c4c3f47caa6ecff9a738bfe.tar.gz
gitea-33647aa43bc7e55f1c4c3f47caa6ecff9a738bfe.zip
Fixing wrong translations on sorttype oldest/latest (#2720)
-rw-r--r--templates/admin/base/search.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/admin/base/search.tmpl b/templates/admin/base/search.tmpl
index 5491d6b94a..749e42af2d 100644
--- a/templates/admin/base/search.tmpl
+++ b/templates/admin/base/search.tmpl
@@ -6,8 +6,8 @@
<i class="dropdown icon"></i>
</span>
<div class="menu">
- <a class="{{if or (eq .SortType "oldest") (not .SortType)}}active{{end}} item" href="{{$.Link}}?sort=oldest&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.filter_sort.latest"}}</a>
- <a class="{{if eq .SortType "newest"}}active{{end}} item" href="{{$.Link}}?sort=newest&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.filter_sort.oldest"}}</a>
+ <a class="{{if or (eq .SortType "oldest") (not .SortType)}}active{{end}} item" href="{{$.Link}}?sort=oldest&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.filter_sort.oldest"}}</a>
+ <a class="{{if eq .SortType "newest"}}active{{end}} item" href="{{$.Link}}?sort=newest&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.filter_sort.latest"}}</a>
<a class="{{if eq .SortType "alphabetically"}}active{{end}} item" href="{{$.Link}}?sort=alphabetically&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
<a class="{{if eq .SortType "reversealphabetically"}}active{{end}} item" href="{{$.Link}}?sort=reversealphabetically&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
<a class="{{if eq .SortType "recentupdate"}}active{{end}} item" href="{{$.Link}}?sort=recentupdate&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.filter_sort.recentupdate"}}</a>