Mercurial > gemma
comparison client/src/components/Search.vue @ 3779:33180c25bd87
Added extra information to search results (wwname, ISRS code)
I used the opportunity to unify the design of extra information on
search results: the back end can provide optional additional
information in dedicated keys (currently 'location' and 'location
code'), formatting and rendering is done by the front end.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Thu, 04 Jul 2019 17:21:21 +0200 |
parents | aea53775a3a7 |
children | 1cdd246860ae |
comparison
equal
deleted
inserted
replaced
3778:1b11ff97c1d1 | 3779:33180c25bd87 |
---|---|
68 icon="road" | 68 icon="road" |
69 v-if="['stretch', 'section'].includes(entry.type)" | 69 v-if="['stretch', 'section'].includes(entry.type)" |
70 class="mr-1" | 70 class="mr-1" |
71 fixed-width | 71 fixed-width |
72 /> | 72 /> |
73 {{ entry.name }} {{ entry.locationcode }} | 73 {{ entry.name }} |
74 <span v-if="entry.location || entry.locationcode" | |
75 >({{ entry.location | |
76 }}<span v-if="entry.location && entry.locationcode">, </span | |
77 >{{ entry.locationcode }})</span | |
78 > | |
74 </a> | 79 </a> |
75 </div> | 80 </div> |
76 </div> | 81 </div> |
77 </div> | 82 </div> |
78 </template> | 83 </template> |