<script id="detailspage-template" type="text/x-handlebars-template">
{{#*inline "partial_details_one_row"}}
- <tr class="{{isaddresses_unused this}}">
+ <tr class="{{#unless this.isaddress}}notused{{/unless}}">
<td class="name">
{{#if this.localname}}
{{this.localname}}
{{#*inline "partial_details_one_row"}}
- <tr class="{{isaddresses_unused this}}">
+ <tr class="{{#unless this.isaddress}}notused{{/unless}}">
<td class="name">
{{#if this.localname}}
{{this.localname}}
if (sType === 'relation') return 'R';
return '';
},
- isaddresses_unused: function (aAddressLine) {
- return ((aAddressLine.isaddress && aAddressLine.isaddress === 'f') ? 'notused' : '');
- },
// { osm_type: 'R', osm_id: 12345 }
// <a href="https://www.openstreetmap.org/relation/12345">relation 12345</a
osmLink: function (aPlace) {
if (sType === 'relation') return 'R';
return '';
},
- isaddresses_unused: function (aAddressLine) {
- return ((aAddressLine.isaddress && aAddressLine.isaddress === 'f') ? 'notused' : '');
- },
// { osm_type: 'R', osm_id: 12345 }
// <a href="https://www.openstreetmap.org/relation/12345">relation 12345</a
osmLink: function (aPlace) {
{{#*inline "partial_details_one_row"}}
- <tr class="{{isaddresses_unused this}}">
+ <tr class="{{#unless this.isaddress}}notused{{/unless}}">
<td class="name">
{{#if this.localname}}
{{this.localname}}