diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-04-01 13:22:59 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-04-01 13:22:59 +0300 |
commit | 1dd65dd3c82c9d3e683e2377722c03a29f8e1bfa (patch) | |
tree | af32a828e7da792a47d7ad20477f1a75c3136201 /web | |
parent | app/useflags/suggest: optimize the SQL queries (diff) | |
download | soko-1dd65dd3c82c9d3e683e2377722c03a29f8e1bfa.tar.gz soko-1dd65dd3c82c9d3e683e2377722c03a29f8e1bfa.tar.bz2 soko-1dd65dd3c82c9d3e683e2377722c03a29f8e1bfa.zip |
app/useflags/search: sort results and mark local
- sort the results based on type (global, local, use_expand) and then
text search match level
- show local use flags as such in results with the referencing package
name
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/useflags/search.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/templates/useflags/search.tmpl b/web/templates/useflags/search.tmpl index 210d7e1..3b11a6f 100644 --- a/web/templates/useflags/search.tmpl +++ b/web/templates/useflags/search.tmpl @@ -43,7 +43,10 @@ <div class="list-group"> {{ range .Useflags }} <a class="list-group-item list-group-item-action text-dark" href="/useflags/{{.Name}}"> - <h3 class="kk-search-result-header">{{.Name}}</h3> + <h3 class="kk-search-result-header"> + {{- .Name -}} + {{- if eq .Scope "local"}} <span class="text-secondary">({{.Package}})</span>{{end -}} + </h3> {{.Description}} </a> {{end}} |