X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/effd8e12af440586594a18a04beb33abed260d15..228ef1972a915d1f960e021f4496147645e22370:/lib/template/search-html.php?ds=sidebyside diff --git a/lib/template/search-html.php b/lib/template/search-html.php index 58d3dbd7..430bba39 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -10,29 +10,73 @@ -
@@ -56,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
'; } @@ -92,10 +136,6 @@ - - - -