X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/832547f192904a9ec92e173c27a91e0874fcc757..6a4192d3d18e9db2dce7d8f9f1b229d5ae9f7c6f:/lib/template/search-html.php diff --git a/lib/template/search-html.php b/lib/template/search-html.php index 58d3dbd7..2b8c1495 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -17,19 +17,16 @@
- - + - +
- + > +
@@ -56,11 +53,11 @@ echo ' ('.ucwords(str_replace('_',' ',$aResult['class'])).')'; else echo ' ('.ucwords(str_replace('_',' ',$aResult['type'])).')'; - echo ' details'; + echo detailsPermaLink($aResult, 'details', 'class="btn btn-default btn-xs details"'); echo ''; $i = $i+1; } - if (sizeof($aSearchResults) && $sMoreURL) + if (!empty($aSearchResults) && $sMoreURL) { echo '
Search for more results
'; }