From 4791fc341e4cb0924fc9232e63091d1314b4b42d Mon Sep 17 00:00:00 2001 From: marc tobias Date: Fri, 6 Apr 2018 17:44:45 +0200 Subject: [PATCH] details page: move permalink next to page title --- lib/template/details-html.php | 7 +++++-- website/css/details.css | 4 ++++ website/details.php | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/template/details-html.php b/lib/template/details-html.php index b7a96373..00d6ba63 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -97,7 +97,10 @@
-

+

+ + +

@@ -119,7 +122,7 @@ } kv('Coverage' , ($aPointDetails['isarea']=='t'?'Polygon':'Point') ); kv('Centre Point' , $aPointDetails['lat'].','.$aPointDetails['lon'] ); - kv('OSM' , osmLink($aPointDetails) . ' ('.detailsPermaLink($aPointDetails, 'this page').')' ); + kv('OSM' , osmLink($aPointDetails) ); if ($aPointDetails['wikipedia']) { kv('Wikipedia Calculated' , wikipediaLink($aPointDetails) ); diff --git a/website/css/details.css b/website/css/details.css index f1234295..171de42a 100644 --- a/website/css/details.css +++ b/website/css/details.css @@ -2,6 +2,10 @@ h1 { margin: 10px 0; padding-left: 8px; } +h1 small a { + font-size: 0.5em; + white-space: nowrap; +} h2 { font-size: 2em; padding-left: 8px; diff --git a/website/details.php b/website/details.php index 9e8d99a4..28df6d5f 100755 --- a/website/details.php +++ b/website/details.php @@ -30,7 +30,7 @@ if ($sOsmType && $iOsmId > 0) { if ($sClass) { $sSQL .= " AND class='".$sClass."'"; } - $sSQL .= " ORDER BY type='postcode', class ASC"; + $sSQL .= ' ORDER BY class ASC'; $sPlaceId = chksql($oDB->getOne($sSQL)); // Be nice about our error messages for broken geometry