X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/cfb0f3f94ced30b8b44390367e07bc9b0cec787d..a5e37858438a181d6d69b82057833231ff067c81:/lib/template/search-html.php diff --git a/lib/template/search-html.php b/lib/template/search-html.php index 14ebacc8..430bba39 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -10,27 +10,73 @@ -
@@ -54,11 +100,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
'; } @@ -90,10 +136,6 @@ - - - -