]> source.dussan.org Git - gitea.git/commitdiff
Fixing wrong translations on sorttype oldest/latest (#2720)
authorJonas Franz <info@jonasfranz.software>
Mon, 16 Oct 2017 20:26:11 +0000 (22:26 +0200)
committerLauris BH <lauris@nix.lv>
Mon, 16 Oct 2017 20:26:11 +0000 (23:26 +0300)
templates/admin/base/search.tmpl

index 5491d6b94a28defc1905f9253a7785383bdb55e7..749e42af2dc782c6ac6a269dbfad333495432325 100644 (file)
@@ -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>