parent
b0a53645e6
commit
848737742c
|
@ -644,6 +644,7 @@
|
||||||
<span v-if="osm.name">
|
<span v-if="osm.name">
|
||||||
{{ osm.name }}
|
{{ osm.name }}
|
||||||
<span class="badge bg-success" v-if="osm.name_match">name match</span>
|
<span class="badge bg-success" v-if="osm.name_match">name match</span>
|
||||||
|
<span class="badge bg-danger" v-if="osm.tags['disused'] == 'yes' || isDisused(osm.tags)">disused</span>
|
||||||
</span>
|
</span>
|
||||||
<template v-if="show_presets && osm.presets.length">
|
<template v-if="show_presets && osm.presets.length">
|
||||||
<template v-if="osm.name"><br></template>
|
<template v-if="osm.name"><br></template>
|
||||||
|
@ -1026,6 +1027,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
isDisused(tags) {
|
||||||
|
return Object.keys(tags).some(key => key.startsWith('disused:'));
|
||||||
|
},
|
||||||
wikipedia_link(lang, title) {
|
wikipedia_link(lang, title) {
|
||||||
var norm_title = title.replaceAll(" ", "_");
|
var norm_title = title.replaceAll(" ", "_");
|
||||||
return `https://${lang}.wikipedia.org/wiki/${norm_title}`;
|
return `https://${lang}.wikipedia.org/wiki/${norm_title}`;
|
||||||
|
|
Loading…
Reference in a new issue