]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/templates/reversepage.hbs
indent templates 2 char instead of 4 char
[nominatim-ui.git] / src / templates / reversepage.hbs
index 592e7b9fdd32dd0414d57fc82cc3441698e2163a..646c72625b1b4d24b24d1730946a6e5102b23e44 100644 (file)
@@ -1,55 +1,55 @@
 
 {{#*inline "partial_one_result"}}
 
 {{#*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}}">
+    {{#if aResult.icon}}
+      <img src="{{env.Images_Base_Url}}{{aResult.icon}}" />
+      {{!-- {{formatMapIcon aResult.icon}} --}}
+    {{/if}}
 
 
-        <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.html?place_id={{aResult.place_id}}">details</a>
-    </div>
+    <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
+  </div>
 {{/inline}}
 
 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
 {{/inline}}
 
 <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>
-    </div>
-    <div class="search-type-link">
-        <a href="/search.html">forward search</a>
-    </div>
+  <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>
+  </div>
+  <div class="search-type-link">
+    <a href="/search.html">forward search</a>
+  </div>
 </form>
 
 
 <div id="content">
 </form>
 
 
 <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>
+    <div id="map"></div>
+  </div>
 </div>
 </div>