]> source.dussan.org Git - gitea.git/commitdiff
Fixed incorrect localization `explorer.go` (#31348) (#31350)
authorGiteabot <teabot@gitea.io>
Thu, 13 Jun 2024 02:16:17 +0000 (10:16 +0800)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2024 02:16:17 +0000 (02:16 +0000)
Backport #31348 by @kerwin612

see: https://github.com/go-gitea/gitea/pull/29701/files#r1637325139

Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
templates/user/dashboard/issues.tmpl

index 278907e43f470bce79aabb89fb00d8b8f600b6d8..b47a21e87c89130e8b08881599d991203bbac991 100644 (file)
                                                        <input type="hidden" name="type" value="{{$.ViewType}}">
                                                        <input type="hidden" name="sort" value="{{$.SortType}}">
                                                        <input type="hidden" name="state" value="{{$.State}}">
-                                                       {{if .PageIsPulls}}
-                                                               {{template "shared/search/combo_fuzzy" dict "Value" $.Keyword "IsFuzzy" $.IsFuzzy "Placeholder" (ctx.Locale.Tr "search.pull_kind") "Tooltip" (ctx.Locale.Tr "explorer.go")}}
-                                                       {{else}}
-                                                               {{template "shared/search/combo_fuzzy" dict "Value" $.Keyword "IsFuzzy" $.IsFuzzy "Placeholder" (ctx.Locale.Tr "search.issue_kind") "Tooltip" (ctx.Locale.Tr "explorer.go")}}
-                                                       {{end}}
+                                                       {{template "shared/search/combo_fuzzy" dict "Value" $.Keyword "IsFuzzy" $.IsFuzzy "Placeholder" (ctx.Locale.Tr (Iif .PageIsPulls "search.pull_kind" "search.issue_kind")) "Tooltip" (ctx.Locale.Tr "explore.go_to")}}
                                                </div>
                                        </form>
                                        <!-- Sort -->