mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-10-27 03:29:24 +03:00
details page: move permalink next to page title
This commit is contained in:
parent
4743a5e166
commit
4791fc341e
@ -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) );
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user