Mercurial > gemma
comparison client/src/components/Sidebar.vue @ 1361:ea3a89a1813a
remove trailing whitespace, add headers for Makefile, add the missed authors
* remove trailing whitespace for some cleint files
* add headers for licensing to Makefile
* add the missed authors in the header to Systemconfiguration.vue file
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Mon, 26 Nov 2018 11:11:13 +0100 |
parents | 2738a6ae9ad8 |
children | ca33ad696594 |
comparison
equal
deleted
inserted
replaced
1360:3fee649d3d5d | 1361:ea3a89a1813a |
---|---|
1 <template> | 1 <template> |
2 <div :class="sidebarStyle"> | 2 <div :class="sidebarStyle"> |
3 <div | 3 <div |
4 @click="$store.commit('application/showSidebar', !showSidebar)" | 4 @click="$store.commit('application/showSidebar', !showSidebar)" |
5 class="menubutton ui-element d-print-none p-2 bg-white rounded position-absolute d-flex justify-content-center" | 5 class="menubutton ui-element d-print-none p-2 bg-white rounded position-absolute d-flex justify-content-center" |
6 > | |
7 <font-awesome-icon icon="bars"></font-awesome-icon> | |
8 </div> | |
9 <div class="menu text-nowrap text-left"> | |
10 <router-link to="/"> | |
11 <font-awesome-icon icon="map-marked-alt" fixed-width></font-awesome-icon>Map | |
12 </router-link> | |
13 <a | |
14 href="#" | |
15 @click="toggleContextBox('bottlenecks')" | |
16 :class="['secondary', { active: isActive('bottlenecks') }]" | |
17 > | |
18 <font-awesome-icon icon="ship" fixed-width></font-awesome-icon>Bottlenecks | |
19 </a> | |
20 <div v-if="isWaterwayAdmin"> | |
21 <a | |
22 href="#" | |
23 @click="toggleContextBox('imports')" | |
24 :class="['secondary', { active: isActive('imports') }]" | |
6 > | 25 > |
7 <font-awesome-icon icon="bars"></font-awesome-icon> | 26 <font-awesome-icon icon="upload" fixed-width></font-awesome-icon>Import soundingresults |
8 </div> | 27 </a> |
9 <div class="menu text-nowrap text-left"> | 28 <a |
10 <router-link to="/"> | 29 href="#" |
11 <font-awesome-icon icon="map-marked-alt" fixed-width></font-awesome-icon> | 30 @click="toggleContextBox('staging')" |
12 Map | 31 :class="['secondary', { active: isActive('staging') }]" |
13 </router-link> | 32 > |
14 <a href="#" | 33 <font-awesome-icon icon="clipboard-check" fixed-width></font-awesome-icon>Staging area |
15 @click="toggleContextBox('bottlenecks')" | 34 </a> |
16 :class="['secondary', { active: isActive('bottlenecks') }]"> | 35 <small class="text-muted pl-3">Systemadministration</small> |
17 <font-awesome-icon icon="ship" fixed-width></font-awesome-icon> | 36 <hr class="m-0"> |
18 Bottlenecks | 37 <router-link to="usermanagement"> |
19 </a> | 38 <font-awesome-icon icon="users-cog" fixed-width></font-awesome-icon>Users |
20 <div v-if="isWaterwayAdmin"> | 39 </router-link> |
21 <a href="#" | 40 </div> |
22 @click="toggleContextBox('imports')" | 41 <div v-if="isSysAdmin"> |
23 :class="['secondary', { active: isActive('imports') }]"> | 42 <router-link to="systemconfiguration"> |
24 <font-awesome-icon icon="upload" fixed-width></font-awesome-icon> | 43 <font-awesome-icon icon="wrench" fixed-width></font-awesome-icon>Systemconfiguration |
25 Import soundingresults | 44 </router-link> |
26 </a> | 45 <router-link to="logs"> |
27 <a href="#" | 46 <font-awesome-icon icon="book" fixed-width></font-awesome-icon>Logs |
28 @click="toggleContextBox('staging')" | 47 </router-link> |
29 :class="['secondary', { active: isActive('staging') }]"> | 48 <router-link to="importqueue"> |
30 <font-awesome-icon icon="clipboard-check" fixed-width></font-awesome-icon> | 49 <font-awesome-icon icon="tasks" fixed-width></font-awesome-icon>Importqueue |
31 Staging area | 50 </router-link> |
32 </a> | 51 </div> |
33 <small class="text-muted pl-3">Systemadministration</small> | 52 <hr class="m-0"> |
34 <hr class="m-0"> | 53 <a href="#" @click="logoff"> |
35 <router-link to="usermanagement"> | 54 <font-awesome-icon icon="power-off" fixed-width></font-awesome-icon> |
36 <font-awesome-icon icon="users-cog" fixed-width></font-awesome-icon> | 55 Logout {{ user }} |
37 Users | 56 </a> |
38 </router-link> | |
39 </div> | |
40 <div v-if="isSysAdmin"> | |
41 <router-link to="systemconfiguration"> | |
42 <font-awesome-icon icon="wrench" fixed-width></font-awesome-icon> | |
43 Systemconfiguration | |
44 </router-link> | |
45 <router-link to="logs"> | |
46 <font-awesome-icon icon="book" fixed-width></font-awesome-icon> | |
47 Logs | |
48 </router-link> | |
49 <router-link to="importqueue"> | |
50 <font-awesome-icon icon="tasks" fixed-width></font-awesome-icon> | |
51 Importqueue | |
52 </router-link> | |
53 </div> | |
54 <hr class="m-0"> | |
55 <a href="#" @click="logoff"> | |
56 <font-awesome-icon icon="power-off" fixed-width></font-awesome-icon> | |
57 Logout {{ user }} | |
58 </a> | |
59 </div> | |
60 </div> | 57 </div> |
58 </div> | |
61 </template> | 59 </template> |
62 | 60 |
63 <script> | 61 <script> |
64 /* | 62 /* |
65 * This is Free Software under GNU Affero General Public License v >= 3.0 | 63 * This is Free Software under GNU Affero General Public License v >= 3.0 |
66 * without warranty, see README.md and license for details. | 64 * without warranty, see README.md and license for details. |
67 * | 65 * |
68 * SPDX-License-Identifier: AGPL-3.0-or-later | 66 * SPDX-License-Identifier: AGPL-3.0-or-later |
69 * License-Filename: LICENSES/AGPL-3.0.txt | 67 * License-Filename: LICENSES/AGPL-3.0.txt |
70 * | 68 * |
71 * Copyright (C) 2018 by via donau | 69 * Copyright (C) 2018 by via donau |
72 * – Österreichische Wasserstraßen-Gesellschaft mbH | 70 * – Österreichische Wasserstraßen-Gesellschaft mbH |
73 * Software engineering by Intevation GmbH | 71 * Software engineering by Intevation GmbH |
74 * | 72 * |
75 * Author(s): | 73 * Author(s): |
76 * Thomas Junk <thomas.junk@intevation.de> | 74 * Thomas Junk <thomas.junk@intevation.de> |
77 * Markus Kottländer <markus.kottlaender@intevation.de> | 75 * Markus Kottländer <markus.kottlaender@intevation.de> |
78 */ | 76 */ |
79 import { mapGetters, mapState } from "vuex"; | 77 import { mapGetters, mapState } from "vuex"; |