Mercurial > gemma
annotate client/src/components/importqueue/Importqueuedetail.vue @ 2412:0ed53a7a1221
login fixed
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 28 Feb 2019 12:29:12 +0100 |
parents | 2873f2b77e40 |
children |
rev | line source |
---|---|
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1 <template> |
1566 | 2 <div class="entry d-flex flex-column py-1 border-bottom"> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
3 <div class="d-flex flex-row position-relative"> |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
4 <div @click="showDetails(job.id)" class="jobid ml-2 mt-1 mr-2"> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
5 {{ job.id }} |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
6 </div> |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
7 <div @click="showDetails(job.id)" class="enqueued mt-1 mr-2"> |
2335
2873f2b77e40
importqueue: datetime instead date for added
Thomas Junk <thomas.junk@intevation.de>
parents:
2281
diff
changeset
|
8 {{ formatDateTime(job.enqueued) }} |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
9 </div> |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
10 <div @click="showDetails(job.id)" class="kind mt-1 mr-2"> |
1892
b43ee5f73c05
fix: consequentially uppercasing import kind in all overviews
Thomas Junk <thomas.junk@intevation.de>
parents:
1793
diff
changeset
|
11 {{ job.kind.toUpperCase() }} |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
12 </div> |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
13 <div @click="showDetails(job.id)" class="user mt-1 mr-2"> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
14 {{ job.user }} |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
15 </div> |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
16 <div @click="showDetails(job.id)" class="signer mt-1 mr-2"> |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
17 {{ job.signer }} |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
18 </div> |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
19 <div @click="showDetails(job.id)" class="state mt-1 mr-2"> |
2281
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
20 <span :class="{ 'text-danger': job.state.toUpperCase() == 'FAILED' }" |
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
21 >{{ job.state |
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
22 }}<font-awesome-icon |
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
23 v-if="job.warnings" |
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
24 class="ml-1 text-warning" |
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
25 icon="exclamation-triangle" |
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
26 fixed-width |
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
27 ></font-awesome-icon |
6689b7e1f28b
warning sign for importqueue entries containing warnings
Thomas Junk <thomas.junk@intevation.de>
parents:
2274
diff
changeset
|
28 ></span> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
29 </div> |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
30 <div @click="showDetails(job.id)" class="mt-1 text-info detailsbutton"> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
31 <font-awesome-icon |
2154
a08e0f532304
staging: improve UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2117
diff
changeset
|
32 class="pointer" |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
33 v-if="show" |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
34 icon="angle-up" |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
35 fixed-width |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
36 ></font-awesome-icon> |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
37 <font-awesome-icon |
2154
a08e0f532304
staging: improve UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2117
diff
changeset
|
38 class="pointer" |
1561
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
39 v-if="loading" |
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
40 icon="spinner" |
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
41 fixed-width |
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
42 ></font-awesome-icon> |
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
43 <font-awesome-icon |
2154
a08e0f532304
staging: improve UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2117
diff
changeset
|
44 class="pointer" |
1561
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
45 v-if="!show && !loading" |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
46 icon="angle-down" |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
47 fixed-width |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
48 ></font-awesome-icon> |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
49 </div> |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
50 </div> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
51 <div class="detailstable d-flex flex-row"> |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
52 <div :class="collapse"> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
53 <table class="table table-responsive"> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
54 <thead> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
55 <tr> |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
56 <th class="type pb-0"> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
57 <small class="condensed"><translate>Kind</translate></small> |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
58 </th> |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
59 <th class="datetime pb-0"> |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
60 <a href="#" @click="sortAsc = !sortAsc" class="sort-link" |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
61 ><small class="condensed"><translate>Date</translate></small> |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
62 <small class="condensed" |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
63 ><font-awesome-icon |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
64 :icon="sortIcon" |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
65 class="ml-1" |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
66 ></font-awesome-icon></small |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
67 ></a> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
68 </th> |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
69 <th class="message pb-0"> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
70 <small class="condensed"><translate>Message</translate></small> |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
71 </th> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
72 </tr> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
73 </thead> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
74 <tbody> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
75 <tr |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
76 v-for="(entry, index) in sortedEntries" |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
77 :key="index" |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
78 class="detailsrow" |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
79 > |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
80 <td class="type"> |
2116
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
81 <span |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
82 :class="[ |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
83 'condensed', |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
84 { |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
85 'text-danger': entry.kind.toUpperCase() == 'ERROR', |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
86 'text-warning': entry.kind.toUpperCase() == 'WARN' |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
87 } |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
88 ]" |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
89 >{{ entry.kind.toUpperCase() }}</span |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
90 > |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
91 </td> |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
92 <td class="datetime"> |
2116
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
93 <span |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
94 :class="[ |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
95 'condensed', |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
96 { |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
97 'text-danger': entry.kind.toUpperCase() == 'ERROR', |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
98 'text-warning': entry.kind.toUpperCase() == 'WARN' |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
99 } |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
100 ]" |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
101 >{{ formatDateTime(entry.time) }}</span |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
102 > |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
103 </td> |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
104 <td class="message"> |
2116
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
105 <span |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
106 :class="[ |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
107 'condensed', |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
108 { |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
109 'text-danger': entry.kind.toUpperCase() == 'ERROR', |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
110 'text-warning': entry.kind.toUpperCase() == 'WARN' |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
111 } |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
112 ]" |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
113 >{{ entry.message }}</span |
16b8448345bd
importqueue: highlight error and warn lines
Thomas Junk <thomas.junk@intevation.de>
parents:
1892
diff
changeset
|
114 > |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
115 </td> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
116 </tr> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
117 </tbody> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
118 </table> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
119 </div> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
120 </div> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
121 </div> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
122 </template> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
123 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
124 <script> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
125 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
126 * without warranty, see README.md and license for details. |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
127 * |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
128 * SPDX-License-Identifier: AGPL-3.0-or-later |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
129 * License-Filename: LICENSES/AGPL-3.0.txt |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
130 * |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
131 * Copyright (C) 2018 by via donau |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
132 * – Österreichische Wasserstraßen-Gesellschaft mbH |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
133 * Software engineering by Intevation GmbH |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
134 * |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
135 * Author(s): |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
136 * Thomas Junk <thomas.junk@intevation.de> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
137 */ |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
138 |
1613
f2d24dceecc7
refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents:
1601
diff
changeset
|
139 import { HTTP } from "@/lib/http.js"; |
f2d24dceecc7
refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents:
1601
diff
changeset
|
140 import { displayError } from "@/lib/errors.js"; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
141 import locale2 from "locale2"; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
142 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
143 export default { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
144 name: "importqueuedetail", |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
145 props: ["job", "reload"], |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
146 data() { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
147 return { |
1561
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
148 loading: false, |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
149 show: false, |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
150 entries: [], |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
151 sortAsc: true |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
152 }; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
153 }, |
1793
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
154 mounted() { |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
155 this.openSpecificDetail(); |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
156 }, |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
157 watch: { |
1793
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
158 $route() { |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
159 this.openSpecificDetail(); |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
160 }, |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
161 reload() { |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
162 if (this.reload) { |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
163 this.entries = []; |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
164 this.show = false; |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
165 } |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
166 } |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
167 }, |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
168 methods: { |
1793
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
169 openSpecificDetail() { |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
170 const { id } = this.$route.params; |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
171 if (id == this.job.id) { |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
172 this.showDetails(id); |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
173 } else { |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
174 this.show = false; |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
175 } |
c0532a94a0b5
importlog links forward to the according importqueue-entry
Thomas Junk <thomas.junk@intevation.de>
parents:
1613
diff
changeset
|
176 }, |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
177 formatDate(date) { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
178 return date |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
179 ? new Date(date).toLocaleDateString(locale2, { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
180 day: "2-digit", |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
181 month: "2-digit", |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
182 year: "numeric" |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
183 }) |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
184 : ""; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
185 }, |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
186 formatDateTime(date) { |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
187 if (!date) return ""; |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
188 const d = new Date(date); |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
189 return ( |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
190 d.toLocaleDateString(locale2, { |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
191 day: "2-digit", |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
192 month: "2-digit", |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
193 year: "numeric" |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
194 }) + |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
195 " - " + |
1568
ce59e73a0cef
importqueue: internationalization 24h format
Thomas Junk <thomas.junk@intevation.de>
parents:
1567
diff
changeset
|
196 d.toLocaleTimeString(locale2, { |
ce59e73a0cef
importqueue: internationalization 24h format
Thomas Junk <thomas.junk@intevation.de>
parents:
1567
diff
changeset
|
197 hour12: false |
ce59e73a0cef
importqueue: internationalization 24h format
Thomas Junk <thomas.junk@intevation.de>
parents:
1567
diff
changeset
|
198 }) |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
199 ); |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
200 }, |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
201 showDetails(id) { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
202 if (this.show) { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
203 this.show = false; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
204 return; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
205 } |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
206 if (this.entries.length === 0) { |
1561
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
207 this.loading = true; |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
208 HTTP.get("/imports/" + id, { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
209 headers: { "X-Gemma-Auth": localStorage.getItem("token") } |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
210 }) |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
211 .then(response => { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
212 const { entries } = response.data; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
213 this.entries = entries; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
214 this.show = true; |
1561
ad3a19e222bb
importqueue: loading indicator
Thomas Junk <thomas.junk@intevation.de>
parents:
1559
diff
changeset
|
215 this.loading = false; |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
216 }) |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
217 .catch(error => { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
218 const { status, data } = error.response; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
219 displayError({ |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
220 title: this.$gettext("Backend Error"), |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
221 message: `${status}: ${data.message || data}` |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
222 }); |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
223 }); |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
224 } else { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
225 this.show = true; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
226 } |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
227 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
228 }, |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
229 computed: { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
230 sortedEntries() { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
231 let sorted = this.entries.slice(); |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
232 sorted.sort((r1, r2) => { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
233 let d1 = new Date(r1.time); |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
234 let d2 = new Date(r2.time); |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
235 if (d2 < d1) { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
236 return !this.sortAsc ? -1 : 1; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
237 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
238 if (d2 > d1) { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
239 return !this.sortAsc ? 1 : -1; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
240 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
241 return 0; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
242 }); |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
243 return sorted; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
244 }, |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
245 sortIcon() { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
246 return this.sortAsc ? "sort-amount-down" : "sort-amount-up"; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
247 }, |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
248 icon() { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
249 return { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
250 "angle-up": !this.show, |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
251 "angle-down": this.show |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
252 }; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
253 }, |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
254 collapse() { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
255 return { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
256 details: true, |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
257 collapse: true, |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
258 show: this.show, |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
259 "w-100": true |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
260 }; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
261 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
262 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
263 }; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
264 </script> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
265 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
266 <style lang="scss" scoped> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
267 .condensed { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
268 font-stretch: condensed; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
269 } |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
270 |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
271 .entry { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
272 background-color: white; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
273 cursor: pointer; |
1601
b88cc5aadcc1
importqueue logs: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
1597
diff
changeset
|
274 width: 100%; |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
275 } |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
276 |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
277 .entry:hover { |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
278 background-color: #efefef; |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
279 transition: 1.6s; |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
280 } |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
281 |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
282 .detailstable { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
283 margin-left: $offset; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
284 margin-right: $large-offset; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
285 } |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
286 |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
287 .detailsbutton { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
288 position: absolute; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
289 top: 0; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
290 right: 0; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
291 height: 100%; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
292 } |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
293 .jobid { |
1601
b88cc5aadcc1
importqueue logs: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
1597
diff
changeset
|
294 width: 15%; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
295 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
296 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
297 .enqueued { |
2274
ad9ede1a9e11
importqueue: css cleanup
Thomas Junk <thomas.junk@intevation.de>
parents:
2154
diff
changeset
|
298 width: 15%; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
299 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
300 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
301 .user { |
1601
b88cc5aadcc1
importqueue logs: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
1597
diff
changeset
|
302 width: 15%; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
303 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
304 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
305 .signer { |
2274
ad9ede1a9e11
importqueue: css cleanup
Thomas Junk <thomas.junk@intevation.de>
parents:
2154
diff
changeset
|
306 width: 15%; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
307 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
308 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
309 .kind { |
1601
b88cc5aadcc1
importqueue logs: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
1597
diff
changeset
|
310 width: 10%; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
311 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
312 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
313 .state { |
2274
ad9ede1a9e11
importqueue: css cleanup
Thomas Junk <thomas.junk@intevation.de>
parents:
2154
diff
changeset
|
314 width: 15%; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
315 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
316 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
317 .details { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
318 width: 50%; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
319 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
320 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
321 .detailsrow { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
322 line-height: 0.1em; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
323 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
324 |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
325 .type { |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
326 width: 65px; |
1597
98a1636c7255
importqueue: no-wrap and horizontal scrollbar added
Thomas Junk <thomas.junk@intevation.de>
parents:
1568
diff
changeset
|
327 white-space: nowrap; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
328 padding-left: 0px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
329 border-top: 0px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
330 padding-bottom: $small-offset; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
331 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
332 |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
333 .datetime { |
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
334 width: 200px; |
1597
98a1636c7255
importqueue: no-wrap and horizontal scrollbar added
Thomas Junk <thomas.junk@intevation.de>
parents:
1568
diff
changeset
|
335 white-space: nowrap; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
336 padding-left: 0px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
337 border-top: 0px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
338 padding-bottom: $small-offset; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
339 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
340 |
1562
7ac802add1b9
reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents:
1561
diff
changeset
|
341 .message { |
1601
b88cc5aadcc1
importqueue logs: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
1597
diff
changeset
|
342 min-width: 700px; |
1597
98a1636c7255
importqueue: no-wrap and horizontal scrollbar added
Thomas Junk <thomas.junk@intevation.de>
parents:
1568
diff
changeset
|
343 white-space: nowrap; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
344 padding-left: 0px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
345 border-top: 0px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
346 padding-bottom: $small-offset; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
347 } |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
348 |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
349 thead, |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
350 tbody { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
351 display: block; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
352 } |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
353 |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
354 tbody { |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
355 height: 150px; |
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
356 overflow-y: auto; |
1597
98a1636c7255
importqueue: no-wrap and horizontal scrollbar added
Thomas Junk <thomas.junk@intevation.de>
parents:
1568
diff
changeset
|
357 overflow-x: auto; |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
358 } |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
359 </style> |