mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
details page: move permalink next to page title
This commit is contained in:
@@ -97,7 +97,10 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-10">
|
<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>
|
||||||
<div class="col-sm-2 text-right">
|
<div class="col-sm-2 text-right">
|
||||||
<?php map_icon($aPointDetails['icon']) ?>
|
<?php map_icon($aPointDetails['icon']) ?>
|
||||||
@@ -119,7 +122,7 @@
|
|||||||
}
|
}
|
||||||
kv('Coverage' , ($aPointDetails['isarea']=='t'?'Polygon':'Point') );
|
kv('Coverage' , ($aPointDetails['isarea']=='t'?'Polygon':'Point') );
|
||||||
kv('Centre Point' , $aPointDetails['lat'].','.$aPointDetails['lon'] );
|
kv('Centre Point' , $aPointDetails['lat'].','.$aPointDetails['lon'] );
|
||||||
kv('OSM' , osmLink($aPointDetails) . ' ('.detailsPermaLink($aPointDetails, 'this page').')' );
|
kv('OSM' , osmLink($aPointDetails) );
|
||||||
if ($aPointDetails['wikipedia'])
|
if ($aPointDetails['wikipedia'])
|
||||||
{
|
{
|
||||||
kv('Wikipedia Calculated' , wikipediaLink($aPointDetails) );
|
kv('Wikipedia Calculated' , wikipediaLink($aPointDetails) );
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ h1 {
|
|||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
h1 small a {
|
||||||
|
font-size: 0.5em;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ if ($sOsmType && $iOsmId > 0) {
|
|||||||
if ($sClass) {
|
if ($sClass) {
|
||||||
$sSQL .= " AND class='".$sClass."'";
|
$sSQL .= " AND class='".$sClass."'";
|
||||||
}
|
}
|
||||||
$sSQL .= " ORDER BY type='postcode', class ASC";
|
$sSQL .= ' ORDER BY class ASC';
|
||||||
$sPlaceId = chksql($oDB->getOne($sSQL));
|
$sPlaceId = chksql($oDB->getOne($sSQL));
|
||||||
|
|
||||||
// Be nice about our error messages for broken geometry
|
// Be nice about our error messages for broken geometry
|
||||||
|
|||||||
Reference in New Issue
Block a user