]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/templates/reversepage.hbs
simplest Travis-CI integration, only running lint test
[nominatim-ui.git] / src / templates / reversepage.hbs
index 5f524b24902a5c705347e317ea3d39caf1006f8b..e5a9d683a5391aff494631d6168de02a4d22ee8c 100644 (file)
@@ -1,55 +1,64 @@
 
 {{#*inline "partial_one_result"}}
-    <div class="result" data-position="{{iResNum}}">
-        {{#if aResult.icon}}
-            <img src="{{env.Images_Base_Url}}{{aResult.icon}}" />
-            {{!-- {{formatMapIcon aResult.icon}} --}}
-        {{/if}}
+  <div class="result" data-position="{{iResNum}}">
+    {{formatMapIcon aResult}}
 
-        <span class="name">{{aResult.display_name}}</span>
-        <span class="type">{{formatLabel aResult}}</span>
-        <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
+    <span class="name">{{aResult.display_name}}</span>
+    <span class="type">{{formatLabel aResult}}</span>
+    <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
 
-        <a class="btn btn-default btn-xs details" href="details?place_id={{aResult.place_id}}">details</a>
-    </div>
+    <a class="details btn btn-outline-secondary btn-sm"
+       href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
+  </div>
 {{/inline}}
 
-<form class="form-inline" role="search" accept-charset="UTF-8" action="">
+<div class="top-bar">
+  <form class="form-inline" role="search" accept-charset="UTF-8" action="">
     <div class="form-group">
-        <input name="format" type="hidden" value="html">
-        <input name="lat" type="text" class="form-control input-sm" placeholder="latitude"  value="{{fLat}}">
-        <span id="switch-coords">&lt;&gt;</span>
-        <input name="lon" type="text" class="form-control input-sm" placeholder="longitude" value="{{fLon}}">
-        max zoom
-        <select name="zoom" class="form-control input-sm" value="{{iZoom}}">
-            {{zoomLevels iZoom}}
-        </select>
-    </div>
-    <div class="form-group search-button-group">
-        <button type="submit" class="btn btn-primary btn-sm">Search</button>
+      <input name="format" type="hidden" value="html">
+      <label>lat</label>
+      <input name="lat"
+             type="text"
+             class="form-control form-control-sm"
+             placeholder="latitude"
+             value="{{fLat}}" />
+      <a id="switch-coords" class="btn btn-outline-secondary btn-sm" title="switch lat and lon">&lt;&gt;</a>
+      <label>lon</label>
+      <input name="lon"
+             type="text"
+             class="form-control form-control-sm"
+             placeholder="longitude"
+             value="{{fLon}}" />
+      <label>max zoom</label>
+      <select name="zoom" class="form-control form-control-sm" value="{{iZoom}}">
+        {{zoomLevels iZoom}}
+      </select>
+      <button type="submit" class="btn btn-primary btn-sm mx-1">
+        Search
+      </button>
     </div>
     <div class="search-type-link">
-        <a href="/search.html">forward search</a>
+      <a href="search.html">forward search</a>
     </div>
-</form>
-
+  </form>
+</div>
 
 <div id="content">
-    {{#if aPlace}}
-        <div id="searchresults" class="sidebar">
-            {{>partial_one_result iResNum=0 aResult=aPlace env=env}}
-        </div>
-    {{else}}
-        <div id="intro" class="sidebar">
-            Search for coordinates or click anywhere on the map.
-        </div>
-    {{/if}}
+  {{#if aPlace}}
+    <div id="searchresults" class="sidebar">
+      {{>partial_one_result iResNum=0 aResult=aPlace env=env}}
+    </div>
+  {{else}}
+    <div id="intro" class="sidebar">
+      Search for coordinates or click anywhere on the map.
+    </div>
+  {{/if}}
 
-    <div id="map-wrapper">
-        <div id="map-position">
-            <div id="map-position-inner"></div>
-            <div id="map-position-close"><a href="#">hide</a></div>
-        </div>
-        <div id="map"></div>
+  <div id="map-wrapper">
+    <div id="map-position">
+      <div id="map-position-inner"></div>
+      <div id="map-position-close"><a href="#">hide</a></div>
     </div>
+    <div id="map"></div>
+  </div>
 </div>