details page: move permalink next to page title

This commit is contained in:
marc tobias 2018-04-06 17:44:45 +02:00
parent 4743a5e166
commit 4791fc341e
3 changed files with 10 additions and 3 deletions

View File

@ -97,7 +97,10 @@
<div class="container">
<div class="row">
<div class="col-sm-10">
<h1><?php echo $aPointDetails['localname'] ?></h1>
<h1>
<?php echo $aPointDetails['localname'] ?>
<small><?php echo detailsPermaLink($aPointDetails, 'link to this page') ?></small>
</h1>
</div>
<div class="col-sm-2 text-right">
<?php map_icon($aPointDetails['icon']) ?>
@ -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) );

View File

@ -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;

View File

@ -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