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