Mercurial > gemma
comparison client/src/components/map/Identify.vue @ 1416:3af7ad9717e2
Client: add a set fo marked translation
* add some marked transaltions in the templates.
and update the corresponding .po files.
* remove trailing whitespace and improve the formating in some files
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 29 Nov 2018 11:08:02 +0100 |
parents | 1a7c8ea22392 |
children | 2d1fc72491b9 |
comparison
equal
deleted
inserted
replaced
1415:d4fc5f3c1252 | 1416:3af7ad9717e2 |
---|---|
1 <template> | 1 <template> |
2 <div :class="['box ui-element rounded bg-white text-nowrap', { expanded: showIdentify }]"> | 2 <div :class="['box ui-element rounded bg-white text-nowrap', { expanded: showIdentify }]"> |
3 <div style="width: 20rem"> | 3 <div style="width: 20rem"> |
4 <h6 class="mb-0 py-2 px-3 border-bottom d-flex align-items-center"> | 4 <h6 class="mb-0 py-2 px-3 border-bottom d-flex align-items-center"> |
5 <font-awesome-icon icon="info" class="mr-2"></font-awesome-icon> | 5 <font-awesome-icon icon="info" class="mr-2"></font-awesome-icon> |
6 <translate>Identified</translate> | 6 <translate>Identified</translate> |
7 <font-awesome-icon | 7 <font-awesome-icon |
8 icon="times" | 8 icon="times" |
9 class="ml-auto text-muted" | 9 class="ml-auto text-muted" |
10 @click="$store.commit('application/showIdentify', false)" | 10 @click="$store.commit('application/showIdentify', false)" |
11 ></font-awesome-icon> | 11 ></font-awesome-icon> |
12 </h6> | 12 </h6> |
13 <div class="d-flex flex-column features p-3 flex-grow-1 text-left"> | 13 <div class="d-flex flex-column features p-3 flex-grow-1 text-left"> |
14 <div v-if="currentMeasurement"> | 14 <div v-if="currentMeasurement"> |
15 <b> | 15 <b> |
16 {{ currentMeasurement.quantity }} | 16 {{ currentMeasurement.quantity }} |
17 ({{ currentMeasurement.unitSymbol }}): | 17 ({{ currentMeasurement.unitSymbol }}): |
18 </b><br> | 18 </b> |
19 <small>{{ currentMeasurement.value }}</small> | 19 <br> |
20 </div> | 20 <small>{{ currentMeasurement.value }}</small> |
21 <div v-for="(feature, i) of identifiedFeatures" :key="feature.getId()" > | 21 </div> |
22 <div v-if="feature.getId()" :class="{ 'mt-2': i }"> | 22 <div v-for="(feature, i) of identifiedFeatures" :key="feature.getId()"> |
23 <b>{{ feature.getId().replace(/[.][^.]*$/,"") /* cut away everything from the last . to the end */}}:</b> | 23 <div v-if="feature.getId()" :class="{ 'mt-2': i }"> |
24 <small | 24 <b>{{ feature.getId().replace(/[.][^.]*$/,"") /* cut away everything from the last . to the end */}}:</b> |
25 v-for="(value, key) in prepareProperties(feature)" | 25 <small v-for="(value, key) in prepareProperties(feature)" :key="key"> |
26 :key="key" | 26 <div v-if="value">{{key}}:{{value}}</div> |
27 > | 27 </small> |
28 <div v-if="value">{{key}}:{{value}}</div> | 28 </div> |
29 </small> | 29 </div> |
30 </div> | 30 <div |
31 </div> | 31 v-if="!currentMeasurement && !identifiedFeatures.length" |
32 <div v-if="!currentMeasurement && !identifiedFeatures.length" class="text-muted small text-center my-auto"> | 32 class="text-muted small text-center my-auto" |
33 <translate>No features identified.</translate> | 33 > |
34 </div> | 34 <translate>No features identified.</translate> |
35 </div> | 35 </div> |
36 <div class="versioninfo border-top p-3 text-left"> | 36 </div> |
37 <translate>This app uses </translate><i>gemma</i>,<translate> which is Free Software under</translate> | 37 <div class="versioninfo border-top p-3 text-left"> |
38 <br> | 38 <translate>This app uses</translate> |
39 AGPL-3.0-or-later | 39 <i>gemma</i>, |
40 <translate> without warranty, see docs for details.</translate><br> | 40 <translate>which is Free Software under</translate> |
41 <br>AGPL-3.0-or-later | |
42 <translate>without warranty, see docs for details.</translate> | |
43 <br> | |
41 | 44 |
42 <a href="https://hg.intevation.de/gemma/file/tip"><translate>source-code</translate></a> | 45 <a href="https://hg.intevation.de/gemma/file/tip"> |
43 {{ versionStr }} | 46 <translate>source-code</translate> |
44 <br> | 47 </a> |
45 © via donau. ⓔ Intevation. | 48 {{ versionStr }} |
46 <br><translate>Some data </translate>© | 49 <br>© via donau. ⓔ Intevation. |
47 <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a> | 50 <br> |
48 <translate>contributors.</translate> | 51 <translate>Some data</translate>© |
49 </div> | 52 <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a> |
50 </div> | 53 <translate>contributors.</translate> |
54 </div> | |
51 </div> | 55 </div> |
56 </div> | |
52 </template> | 57 </template> |
53 | 58 |
54 <style lang="sass" scoped> | 59 <style lang="sass" scoped> |
55 .features | 60 .features |
56 max-height: 19rem | 61 max-height: 19rem |