You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

search.tmpl 1.6KB

123456789101112131415161718192021222324
  1. <div class="ui secondary filter menu gt-ac gt-mx-0">
  2. <form class="ui form ignore-dirty gt-f1">
  3. <div class="ui fluid action input">
  4. {{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
  5. <button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
  6. </div>
  7. </form>
  8. <!-- Sort -->
  9. <div class="ui dropdown type jump item gt-mr-0">
  10. <span class="text">
  11. {{ctx.Locale.Tr "repo.issues.filter_sort"}}
  12. </span>
  13. {{svg "octicon-triangle-down" 14 "dropdown icon"}}
  14. <div class="menu">
  15. <a class="{{if eq .SortType "newest"}}active {{end}}item" href="{{$.Link}}?sort=newest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</a>
  16. <a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?sort=oldest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a>
  17. <a class="{{if eq .SortType "alphabetically"}}active {{end}}item" href="{{$.Link}}?sort=alphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
  18. <a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="{{$.Link}}?sort=reversealphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
  19. <a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="{{$.Link}}?sort=recentupdate&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.recentupdate"}}</a>
  20. <a class="{{if eq .SortType "leastupdate"}}active {{end}}item" href="{{$.Link}}?sort=leastupdate&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.leastupdate"}}</a>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="divider"></div>