Changes for page Desk allocation

Last modified by Ricardo Julio Rodríguez Fernández on 2025/05/13 08:31

From version 363.6
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/28 21:29
Change comment: allow view right for XWiki.AbdullahSharifi
To version 362.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/28 21:17
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,272 +1,447 @@
1 -setTimeout(changeStyles, 1000);
2 -
3 -function changeStyles() {
4 - const titleElements = document.getElementsByClassName('kanban-item-title');
5 - const headerElements = document.getElementsByClassName('kanban-board-header');
6 - const titleContainers = document.getElementsByClassName('kanban-item');
7 -
8 - const kanbanContainer = document.querySelector('.kanban-container');
9 - if (kanbanContainer) {
10 - kanbanContainer.style.display = "flex";
11 - kanbanContainer.style.justifyContent = "left"
12 - kanbanContainer.style.alignItems = "start"
13 - kanbanContainer.style.flexWrap = "wrap"
14 - }
15 -
16 - for (let i = 0; i < titleElements.length; i++) {
17 - const titleElement = titleElements[i];
18 - titleElement.style.padding = "2px 4px";
19 - titleElement.style.borderRadius = "4px";
20 -
21 - if (titleElement.textContent.includes('LHCB')) {
22 - titleElement.style.color = 'white';
23 - titleElement.style.backgroundColor = 'red';
24 - const parentElement = titleElement.closest('.kanban-item');
25 - if (parentElement) {
26 - parentElement.style.backgroundColor = 'yellow';
27 - }
28 - }
29 - if (titleElement.textContent.includes('STRI')) {
30 - titleElement.style.color = 'white';
31 - titleElement.style.backgroundColor = 'navy';
32 - const parentElement = titleElement.closest('.kanban-item');
33 - if (parentElement) {
34 - parentElement.style.backgroundColor = '#FFDB58';
35 - }
36 - }
37 - if (titleElement.textContent.includes('AUGE')) {
38 - titleElement.style.color = 'white';
39 - titleElement.style.backgroundColor = '#FF7F50';
40 - const parentElement = titleElement.closest('.kanban-item');
41 - if (parentElement) {
42 - parentElement.style.backgroundColor = '#008080';
43 - }
44 - }
45 - if (titleElement.textContent.includes('HQCD')) {
46 - titleElement.style.color = 'white';
47 - titleElement.style.backgroundColor = 'crimson';
48 - const parentElement = titleElement.closest('.kanban-item');
49 - if (parentElement) {
50 - parentElement.style.backgroundColor = '#808000';
51 - }
52 - }
53 - if (titleElement.textContent.includes('NUCL')) {
54 - titleElement.style.color = 'white';
55 - titleElement.style.backgroundColor = '#E2725B';
56 - const parentElement = titleElement.closest('.kanban-item');
57 - if (parentElement) {
58 - parentElement.style.backgroundColor = '#708090';
59 - }
60 - }
61 - if (titleElement.textContent.includes('GRWA')) {
62 - titleElement.style.color = 'white';
63 - titleElement.style.backgroundColor = '#FF00FF';
64 - const parentElement = titleElement.closest('.kanban-item');
65 - if (parentElement) {
66 - parentElement.style.backgroundColor = '#F4C430';
67 - }
68 - }
69 - if (titleElement.textContent.includes('NEXT')) {
70 - titleElement.style.color = 'white';
71 - titleElement.style.backgroundColor = '#4B0082';
72 - const parentElement = titleElement.closest('.kanban-item');
73 - if (parentElement) {
74 - parentElement.style.backgroundColor = '#E0115F';
75 - }
76 - }
77 - if (titleElement.textContent.includes('LACC')) {
78 - titleElement.style.color = 'white';
79 - titleElement.style.backgroundColor = '#87CEEB';
80 - const parentElement = titleElement.closest('.kanban-item');
81 - if (parentElement) {
82 - parentElement.style.backgroundColor = '#98FF98';
83 - }
84 - }
85 - }
86 -
87 - for (let i = 0; i < headerElements.length; i++) {
88 - const element = headerElements[i];
89 - if (element.innerHTML.includes('rDT')) {
90 - for (let j = 0; j < element.classList.length; j++) {
91 - if (/kanban-header-\w+/.test(element.classList[j])) {
92 - element.classList.remove(element.classList[j]);
93 - element.style.backgroundColor = '#eaec6b';
94 - break;
95 - }
96 - }
97 - }
98 - }
99 -
100 - for (let i = 0; i < headerElements.length; i++) {
101 - const element = headerElements[i];
102 - if (element.innerHTML.includes('rDD')) {
103 - for (let j = 0; j < element.classList.length; j++) {
104 - if (/kanban-header-\w+/.test(element.classList[j])) {
105 - element.classList.remove(element.classList[j]);
106 - element.style.backgroundColor = '#d7d949';
107 - break;
108 - }
109 - }
110 - }
111 - }
112 -
113 - for (let i = 0; i < headerElements.length; i++) {
114 - const element = headerElements[i];
115 - if (element.innerHTML.includes('o01')) {
116 - for (let j = 0; j < element.classList.length; j++) {
117 - if (/kanban-header-\w+/.test(element.classList[j])) {
118 - element.classList.remove(element.classList[j]);
119 - element.style.backgroundColor = '#7fdb4a';
120 - break;
121 - }
122 - }
123 - }
124 - }
125 -
126 - for (let i = 0; i < headerElements.length; i++) {
127 - const element = headerElements[i];
128 - if (element.innerHTML.includes('staff')) {
129 - for (let j = 0; j < element.classList.length; j++) {
130 - if (/kanban-header-\w+/.test(element.classList[j])) {
131 - element.classList.remove(element.classList[j]);
132 - element.style.backgroundColor = '#7fbbda';
133 - break;
134 - }
135 - }
136 - }
137 - }
138 -
139 -
140 - for (let i = 0; i < headerElements.length; i++) {
141 - const element = headerElements[i];
142 - if (element.innerHTML.includes('Master')) {
143 - for (let j = 0; j < element.classList.length; j++) {
144 - if (/kanban-header-\w+/.test(element.classList[j])) {
145 - element.classList.remove(element.classList[j]);
146 - element.style.backgroundColor = '#7fbbda';
147 - break;
148 - }
149 - }
150 - }
151 - }
152 -
153 -
154 - for (let i = 0; i < headerElements.length; i++) {
155 - const element = headerElements[i];
156 - if (element.innerHTML.includes('Summer')) {
157 - for (let j = 0; j < element.classList.length; j++) {
158 - if (/kanban-header-\w+/.test(element.classList[j])) {
159 - element.classList.remove(element.classList[j]);
160 - element.style.backgroundColor = '#7fbbda';
161 - break;
162 - }
163 - }
164 - }
165 - }
166 -
167 -
168 - for (let i = 0; i < headerElements.length; i++) {
169 - const element = headerElements[i];
170 - if (element.innerHTML.includes('Neutron')) {
171 - for (let j = 0; j < element.classList.length; j++) {
172 - if (/kanban-header-\w+/.test(element.classList[j])) {
173 - element.classList.remove(element.classList[j]);
174 - element.style.backgroundColor = '#7fbbda';
175 - break;
176 - }
177 - }
178 - }
179 - }
180 -
181 - for (let i = 0; i < headerElements.length; i++) {
182 - const element = headerElements[i];
183 - if (element.innerHTML.includes('Emeritus')) {
184 - for (let j = 0; j < element.classList.length; j++) {
185 - if (/kanban-header-\w+/.test(element.classList[j])) {
186 - element.classList.remove(element.classList[j]);
187 - element.style.backgroundColor = '#7fbbda';
188 - break;
189 - }
190 - }
191 - }
192 - }
193 -
194 -
195 - for (let i = 0; i < headerElements.length; i++) {
196 - const element = headerElements[i];
197 - if (element.innerHTML.includes('Postdocs')) {
198 - for (let j = 0; j < element.classList.length; j++) {
199 - if (/kanban-header-\w+/.test(element.classList[j])) {
200 - element.classList.remove(element.classList[j]);
201 - element.style.backgroundColor = '#7fbbda';
202 - break;
203 - }
204 - }
205 - }
206 - }
207 -
208 -
209 - for (let i = 0; i < headerElements.length; i++) {
210 - const element = headerElements[i];
211 - if (element.innerHTML.includes('Students')) {
212 - for (let j = 0; j < element.classList.length; j++) {
213 - if (/kanban-header-\w+/.test(element.classList[j])) {
214 - element.classList.remove(element.classList[j]);
215 - element.style.backgroundColor = '#7fbbda';
216 - break;
217 - }
218 - }
219 - }
220 - }
221 -
222 - for (let i = 0; i < headerElements.length; i++) {
223 - const element = headerElements[i];
224 - if (element.innerHTML.includes('o12')) {
225 - for (let j = 0; j < element.classList.length; j++) {
226 - if (/kanban-header-\w+/.test(element.classList[j])) {
227 - element.classList.remove(element.classList[j]);
228 - element.style.backgroundColor = '#f199ed';
229 - break;
230 - }
231 - }
232 - }
233 - }
234 -
235 - for (let i = 0; i < headerElements.length; i++) {
236 - const element = headerElements[i];
237 - if (element.innerHTML.includes('o30')) {
238 - for (let j = 0; j < element.classList.length; j++) {
239 - if (/kanban-header-\w+/.test(element.classList[j])) {
240 - element.classList.remove(element.classList[j]);
241 - element.style.backgroundColor = '#f199ad';
242 - break;
243 - }
244 - }
245 - }
246 - }
247 - for (let i = 0; i < headerElements.length; i++) {
248 - const element = headerElements[i];
249 - if (element.innerHTML.includes('SR07')) {
250 - for (let j = 0; j < element.classList.length; j++) {
251 - if (/kanban-header-\w+/.test(element.classList[j])) {
252 - element.classList.remove(element.classList[j]);
253 - element.style.backgroundColor = '#ff0000';
254 - break;
255 - }
256 - }
257 - }
258 - }
259 -
260 - for (let i = 0; i < headerElements.length; i++) {
261 - const element = headerElements[i];
262 - if (element.innerHTML.includes('space')) {
263 - for (let j = 0; j < element.classList.length; j++) {
264 - if (/kanban-header-\w+/.test(element.classList[j])) {
265 - element.classList.remove(element.classList[j]);
266 - element.style.backgroundColor = '#d2d9dd';
267 - break;
268 - }
269 - }
270 - }
271 - }
272 -};
1 +[
2 + {
3 + "id": "space_Old_Premises",
4 + "color": "green",
5 + "item": [],
6 + "title": "spaceOldPremises"
7 + },
8 + {
9 + "id": "spaceL2A2",
10 + "color": "green",
11 + "item": [],
12 + "title": "spaceL2A2"
13 + },
14 + {
15 + "id": "spaceFaculty",
16 + "color": "green",
17 + "item": [],
18 + "title": "spaceFaculty"
19 + },
20 + {
21 + "id": "rDI01f01o01s015",
22 + "color": "green",
23 + "item": [],
24 + "title": "rDI01f01o01s015"
25 + },
26 + {
27 + "id": "rDI01f01o01s015",
28 + "color": "green",
29 + "item": [],
30 + "title": "rDI01f01o01s015"
31 + },
32 + {
33 + "id": "rDI02f01o01s015",
34 + "color": "blue",
35 + "item": [],
36 + "title": "rDI02f01o01s015"
37 + },
38 + {
39 + "id": "rDI03f01o01s015",
40 + "color": "red",
41 + "item": [],
42 + "title": "rDI03f01o01s015"
43 + },
44 + {
45 + "id": "rDI04f01o01s015",
46 + "color": "red",
47 + "item": [],
48 + "title": "rDI04f01o01s015"
49 + },
50 + {
51 + "id": "rDI05f01o01s015",
52 + "color": "red",
53 + "item": [],
54 + "title": "rDI05f01o01s015"
55 + },
56 + {
57 + "id": "rDI06f01o01s015",
58 + "color": "yellow",
59 + "item": [],
60 + "title": "rDI06f01o01s015"
61 + },
62 + {
63 + "id": "rDI07f01o01s015",
64 + "color": "red",
65 + "item": [],
66 + "title": "rDI07f01o01s015"
67 + },
68 + {
69 + "id": "rDI08f01o01s015",
70 + "color": "orange",
71 + "item": [],
72 + "title": "rDI08f01o01s015"
73 + },
74 + {
75 + "id": "rDI09f01o01s015",
76 + "color": "green",
77 + "item": [],
78 + "title": "rDI09f01o01s015"
79 + },
80 + {
81 + "id": "rDI10f01o01s015",
82 + "color": "green",
83 + "item": [],
84 + "title": "rDI10f01o01s015"
85 + },
86 + {
87 + "id": "rDI11f01o01s015",
88 + "color": "green",
89 + "item": [],
90 + "title": "rDI11f01o01s015"
91 + },
92 + {
93 + "id": "rDI12f01o01s015",
94 + "color": "green",
95 + "item": [],
96 + "title": "rDI12f01o01s015"
97 + },
98 + {
99 + "id": "rDI13f01o01s015",
100 + "color": "red",
101 + "item": [],
102 + "title": "rDI13f01o01s015"
103 + },
104 + {
105 + "id": "rDI14f01o01s015",
106 + "color": "red",
107 + "item": [],
108 + "title": "rDI14f01o01s015"
109 + },
110 + {
111 + "id": "rDT07f01o04s023",
112 + "color": "red",
113 + "item": [],
114 + "title": "rDT07f01o04s023"
115 + },
116 + {
117 + "id": "rSR07f01o06s024",
118 + "color": "red",
119 + "item": [],
120 + "title": "rSR07f01o06s024"
121 + },
122 + {
123 + "id": "rSR01f01o12s048",
124 + "color": "red",
125 + "item": [],
126 + "title": "rSR01f01o12s048"
127 + },
128 + {
129 + "id": "rSR02f01o12s046",
130 + "color": "red",
131 + "item": [],
132 + "title": "rSR02f01o12s046"
133 + },
134 + {
135 + "id": "rSR03f01o12s048",
136 + "color": "red",
137 + "item": [],
138 + "title": "rSR03f01o12s048"
139 + },
140 + {
141 + "id": "rSR04f01o12s052",
142 + "color": "red",
143 + "item": [],
144 + "title": "rSR04f01o12s052"
145 + },
146 + {
147 + "id": "rSC01f01o30s142",
148 + "color": "red",
149 + "item": [],
150 + "title": "rSC01f01o30s142"
151 + },
152 + {
153 + "id": "rDT01f01o03s028",
154 + "color": "red",
155 + "item": [],
156 + "title": "rDT01f01o03s028"
157 + },
158 + {
159 + "id": "rDT02f01o03s025",
160 + "color": "red",
161 + "item": [],
162 + "title": "rDT02f01o03s025"
163 + },
164 + {
165 + "id": "rDT03f01o03s025",
166 + "color": "red",
167 + "item": [],
168 + "title": "rDT03f01o03s025"
169 + },
170 + {
171 + "id": "rDT04f01o03s026",
172 + "color": "red",
173 + "item": [],
174 + "title": "rDT04f01o03s026"
175 + },
176 + {
177 + "id": "rDD01f01o03s024",
178 + "color": "red",
179 + "item": [],
180 + "title": "rDD01f01o03s024"
181 + },
182 + {
183 + "id": "rDD02f01o03s024",
184 + "color": "red",
185 + "item": [],
186 + "title": "rDD02f01o03s024"
187 + },
188 + {
189 + "id": "rDD03f01o03s024",
190 + "color": "red",
191 + "item": [],
192 + "title": "rDD03f01o03s024"
193 + },
194 + {
195 + "id": "rDD04f01o03s024",
196 + "color": "red",
197 + "item": [],
198 + "title": "rDD04f01o03s024"
199 + },
200 + {
201 + "id": "rDD05f01o03s024",
202 + "color": "red",
203 + "item": [],
204 + "title": "rDD05f01o03s024"
205 + },
206 + {
207 + "id": "rDD06f01o03s024",
208 + "color": "red",
209 + "item": [],
210 + "title": "rDD06f01o03s024"
211 + },
212 + {
213 + "id": "rDD07f01o03s026",
214 + "color": "red",
215 + "item": [],
216 + "title": "rDD07f01o03s026"
217 + },
218 + {
219 + "id": "Senior_staff",
220 + "color": "red",
221 + "item": [
222 + {
223 + "title": "Adam, Christoph"
224 + },
225 + {
226 + "title": "Adeva Andany, Bernardo"
227 + },
228 + {
229 + "title": "Álvarez Muñiz, Jaime"
230 + },
231 + {
232 + "title": "Álvarez Pol, Héctor"
233 + },
234 + {
235 + "title": "Armesto Pérez, Néstor"
236 + },
237 + {
238 + "title": "Benlliure Anaya, José"
239 + },
240 + {
241 + "title": "Caamaño Fresco, Manuel"
242 + },
243 + {
244 + "title": "Cid Vidal, Xabier"
245 + },
246 + {
247 + "title": "Dent, Thomas"
248 + },
249 + {
250 + "title": "Edelstein Glaubach, José"
251 + },
252 + {
253 + "title": "Fernández Domínguez, Beatriz"
254 + },
255 + {
256 + "title": "Gallas Torreira, Abraham"
257 + },
258 + {
259 + "title": "González Díaz, Diego"
260 + },
261 + {
262 + "title": "González Ferreiro, Elena"
263 + },
264 + {
265 + "title": "Hernando, José Angel"
266 + },
267 + {
268 + "title": "Martínez Santos, Diego"
269 + },
270 + {
271 + "title": "Mas Solé, Javier"
272 + },
273 + {
274 + "title": "Merino Gayoso, Carlos"
275 + },
276 + {
277 + "title": "Miramontes Antas, José Luis"
278 + },
279 + {
280 + "title": "Parente Bermúdez, Gonzalo"
281 + },
282 + {
283 + "title": "Saborido Silva, Juan"
284 + },
285 + {
286 + "title": "Salgado López, Carlos"
287 + },
288 + {
289 + "title": "Santamarina Ríos, Cibrán"
290 + },
291 + {
292 + "title": "Vázquez Ramallo, Alfonso"
293 + },
294 + {
295 + "title": "Vázquez Regueiro, Pablo"
296 + },
297 + {
298 + "title": "Zas Arregui, Enrique"
299 + },
300 + {
301 + "title": "Sánchez de Santos, José"
302 + }
303 + ],
304 + "title": "Senior staff"
305 + },
306 + {
307 + "id": "Junior_staff",
308 + "color": "red",
309 + "item": [
310 + {
311 + "title": "Alejo Alonso, Aarón"
312 + },
313 + {
314 + "title": "Ayyad Limonge, Yassid"
315 + },
316 + {
317 + "title": "Borsato, Riccardo"
318 + },
319 + {
320 + "title": "Calderón Bustillo, Juan"
321 + },
322 + {
323 + "title": "Cazón Boado, Lorenzo"
324 + },
325 + {
326 + "title": "Romero Vidal, Antonio"
327 + },
328 + {
329 + "title": "Vieites, María"
330 + },
331 + {
332 + "title": "Wu, Bin"
333 + }
334 + ],
335 + "title": "Junior staff"
336 + },
337 + {
338 + "id": "Emeritus",
339 + "color": "red",
340 + "item": [
341 + {
342 + "title": "Durán Escribano, Ignacio"
343 + },
344 + {
345 + "title": "Garzón Heydt, Hans"
346 + },
347 + {
348 + "title": "Pajares Vales, Carlos"
349 + },
350 + {
351 + "title": "Pló Casasús, Máximo"
352 + }
353 + ],
354 + "title": "Emeritus"
355 + },
356 + {
357 + "id": "Postdocs",
358 + "color": "red",
359 + "item": [
360 + {
361 + "title": "Belin, Samuel Jules"
362 + },
363 + {
364 + "title": "Brossa Gonzalo, Arnau"
365 + },
366 + {
367 + "title": "Cabo Landeira, Cristina"
368 + },
369 + {
370 + "title": "Chen, Lin"
371 + },
372 + {
373 + "title": "Cougoulic, Florian"
374 + },
375 + {
376 + "title": "Dalseno, Jeremy"
377 + },
378 + {
379 + "title": "Dey, Anshuman"
380 + },
381 + {
382 + "title": "Du, Xiaojian"
383 + },
384 + {
385 + "title": "Fernández Prieto, Antonio"
386 + },
387 + {
388 + "title": "García Feal, Xabier"
389 + },
390 + {
391 + "title": "Li, Meijian"
392 + },
393 + {
394 + "title": "Pablos Alfonso, Daniel"
395 + },
396 + {
397 + "title": "Qian, Wenyang"
398 + },
399 + {
400 + "title": "Riehn, Felix"
401 + },
402 + {
403 + "title": "Törnkvist, Robin"
404 + },
405 + {
406 + "title": "Vázquez Sierra, Carlos"
407 + },
408 + {
409 + "title": "Suárez Fernández, Isabel"
410 + },
411 + {
412 + "title": "Guerrero, Pablo"
413 + }
414 + ],
415 + "title": "Postdocs"
416 + },
417 + {
418 + "id": "Students",
419 + "color": "red",
420 + "item": [],
421 + "title": "Students"
422 + },
423 + {
424 + "id": "Rm&T_staff",
425 + "color": "red",
426 + "item": [],
427 + "title": "Rm&T staff"
428 + },
429 + {
430 + "id": "Masters_Fellows",
431 + "color": "red",
432 + "item": [],
433 + "title": "Master's Fellow"
434 + },
435 + {
436 + "id": "Summer_Fellows",
437 + "color": "red",
438 + "item": [],
439 + "title": "Summer Fellows"
440 + },
441 + {
442 + "id": "Neutron_Insights",
443 + "color": "red",
444 + "item": [],
445 + "title": "Neutron Insights"
446 + }
447 +]
XWiki.XWikiRights[0]
Levels
... ... @@ -1,1 +1,1 @@
1 -edit,view
1 +edit
XWiki.XWikiRights[1]
Allow/Deny
... ... @@ -1,1 +1,0 @@
1 -Allow
Levels
... ... @@ -1,1 +1,0 @@
1 -edit,script,comment,view
Users
... ... @@ -1,1 +1,0 @@
1 -XWiki.CarlosSalgado