Changes for page Desk allocation

Last modified by Ricardo Julio Rodríguez Fernández on 2025/06/02 10:02

From version 305.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/28 17:08
Change comment: Kanban content updated
To version 359.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/28 19:29
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Desks allocation in new premises
1 +Desks allocation considering new premises
Content
... ... @@ -1,3 +1,3 @@
1 1  {{kanban width="250px" source="https://gitlab.com/api/v4/projects/31845880/repository/files/data%2froom.json/raw?ref=main&private_token=glpat-PxoohoxpWUqTMAs4-s4Q" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}
2 -[{"id":"rDI01f01o01s015","color":"green","item":[{"title":"person 001 - LHCB"}],"title":"rDI01f01o01s015"},{"id":"rDI02f01o01s015","color":"blue","item":[{"title":"person 002 - STRI"}],"title":"rDI02f01o01s015"},{"id":"rDI03f01o01s015","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDI03f01o01s015"},{"id":"rDI04f01o01s015","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDI04f01o01s015"},{"id":"rDI05f01o01s015","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDI05f01o01s015"},{"id":"rDI06f01o01s015","color":"yellow","item":[{"title":"person 003 - LHCB"},{"title":"person 004 - NUCL"}],"title":"rDI06f01o01s015"},{"id":"rDI07f01o01s015","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDI07f01o01s015"},{"id":"rDI08f01o01s015","color":"orange","item":[{"title":"person 119 - HQCD"},{"title":"person 135 - LHCB"},{"title":"person 078 - HQCD"}],"title":"rDI08f01o01s015"},{"id":"rDI09f01o01s015","color":"green","item":[{"title":"person 123 - AUGE"}],"title":"rDI09f01o01s015"},{"id":"rDI10f01o01s015","color":"green","item":[{"title":"person 256 - GRWA"}],"title":"rDI10f01o01s015"},{"id":"rDI11f01o01s015","color":"green","item":[{"title":"person 354 - LACC"}],"title":"rDI11f01o01s015"},{"id":"rDI12f01o01s015","color":"green","item":[],"title":"rDI12f01o01s015"},{"id":"rDI13f01o01s015","color":"red","item":[],"title":"rDI13f01o01s015"},{"id":"rDI14f01o01s015","color":"red","item":[{"title":"person 003 - LHCB"},{"title":"person 354 - NEXT"},{"title":"person 003 - LHCB"},{"title":"person 003 - LHCB"}],"title":"rDI14f01o01s015"},{"id":"rDT07f01o04s023","color":"red","item":[],"title":"rDT07f01o04s023"},{"id":"rSR07f01o06s024","color":"red","item":[],"title":"rSR07f01o06s024"},{"id":"rSR01f01o12s048","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rSR01f01o12s048"},{"id":"rSR02f01o12s046","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rSR02f01o12s046"},{"id":"rSR03f01o12s048","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rSR03f01o12s048"},{"id":"rSR04f01o12s052","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rSR04f01o12s052"},{"id":"rSC01f01o30s142","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rSC01f01o30s142"},{"id":"rDT01f01o03s028","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDT01f01o03s028"},{"id":"rDT02f01o03s025","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDT02f01o03s025"},{"id":"rDT03f01o03s025","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDT03f01o03s025"},{"id":"rDT04f01o03s026","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDT04f01o03s026"},{"id":"rDD01f01o03s024","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDD01f01o03s024"},{"id":"rDD02f01o03s024","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDD02f01o03s024"},{"id":"rDD03f01o03s024","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDD03f01o03s024"},{"id":"rDD04f01o03s024","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDD04f01o03s024"},{"id":"rDD05f01o03s024","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDD05f01o03s024"},{"id":"rDD06f01o03s024","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDD06f01o03s024"},{"id":"rDD07f01o03s026","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDD07f01o03s026"}]
2 +[{"id":"rDI01f01o01s015","color":"green","item":[],"title":"rDI01f01o01s015"},{"id":"rDI02f01o01s015","color":"blue","item":[],"title":"rDI02f01o01s015"},{"id":"rDI03f01o01s015","color":"red","item":[],"title":"rDI03f01o01s015"},{"id":"rDI04f01o01s015","color":"red","item":[],"title":"rDI04f01o01s015"},{"id":"rDI05f01o01s015","color":"red","item":[],"title":"rDI05f01o01s015"},{"id":"rDI06f01o01s015","color":"yellow","item":[],"title":"rDI06f01o01s015"},{"id":"rDI07f01o01s015","color":"red","item":[],"title":"rDI07f01o01s015"},{"id":"rDI08f01o01s015","color":"orange","item":[],"title":"rDI08f01o01s015"},{"id":"rDI09f01o01s015","color":"green","item":[],"title":"rDI09f01o01s015"},{"id":"rDI10f01o01s015","color":"green","item":[],"title":"rDI10f01o01s015"},{"id":"rDI11f01o01s015","color":"green","item":[],"title":"rDI11f01o01s015"},{"id":"rDI12f01o01s015","color":"green","item":[],"title":"rDI12f01o01s015"},{"id":"rDI13f01o01s015","color":"red","item":[],"title":"rDI13f01o01s015"},{"id":"rDI14f01o01s015","color":"red","item":[],"title":"rDI14f01o01s015"},{"id":"rDT07f01o04s023","color":"red","item":[],"title":"rDT07f01o04s023"},{"id":"rSR07f01o06s024","color":"red","item":[],"title":"rSR07f01o06s024"},{"id":"rSR01f01o12s048","color":"red","item":[],"title":"rSR01f01o12s048"},{"id":"rSR02f01o12s046","color":"red","item":[],"title":"rSR02f01o12s046"},{"id":"rSR03f01o12s048","color":"red","item":[],"title":"rSR03f01o12s048"},{"id":"rSR04f01o12s052","color":"red","item":[],"title":"rSR04f01o12s052"},{"id":"rSC01f01o30s142","color":"red","item":[],"title":"rSC01f01o30s142"},{"id":"rDT01f01o03s028","color":"red","item":[],"title":"rDT01f01o03s028"},{"id":"rDT02f01o03s025","color":"red","item":[],"title":"rDT02f01o03s025"},{"id":"rDT03f01o03s025","color":"red","item":[],"title":"rDT03f01o03s025"},{"id":"rDT04f01o03s026","color":"red","item":[],"title":"rDT04f01o03s026"},{"id":"rDD01f01o03s024","color":"red","item":[],"title":"rDD01f01o03s024"},{"id":"rDD02f01o03s024","color":"red","item":[],"title":"rDD02f01o03s024"},{"id":"rDD03f01o03s024","color":"red","item":[],"title":"rDD03f01o03s024"},{"id":"rDD04f01o03s024","color":"red","item":[],"title":"rDD04f01o03s024"},{"id":"rDD05f01o03s024","color":"red","item":[],"title":"rDD05f01o03s024"},{"id":"rDD06f01o03s024","color":"red","item":[],"title":"rDD06f01o03s024"},{"id":"rDD07f01o03s026","color":"red","item":[],"title":"rDD07f01o03s026"},{"id":"Senior_staff","color":"red","item":[{"title":"Adam, Christoph"},{"title":"Adeva Andany, Bernardo"},{"title":"Álvarez Muñiz, Jaime"},{"title":"Álvarez Pol, Héctor"},{"title":"Armesto Pérez, Néstor"},{"title":"Benlliure Anaya, José"},{"title":"Caamaño Fresco, Manuel"},{"title":"Cid Vidal, Xabier"},{"title":"Dent, Thomas"},{"title":"Edelstein Glaubach, José"},{"title":"Fernández Domínguez, Beatriz"},{"title":"Gallas Torreira, Abraham"},{"title":"González Díaz, Diego"},{"title":"González Ferreiro, Elena"},{"title":"Hernando, José Angel"},{"title":"Martínez Santos, Diego"},{"title":"Mas Solé, Javier"},{"title":"Merino Gayoso, Carlos"},{"title":"Miramontes Antas, José Luis"},{"title":"Parente Bermúdez, Gonzalo"},{"title":"Saborido Silva, Juan"},{"title":"Salgado López, Carlos"},{"title":"Santamarina Ríos, Cibrán"},{"title":"Vázquez Ramallo, Alfonso"},{"title":"Vázquez Regueiro, Pablo"},{"title":"Zas Arregui, Enrique"},{"title":"Sánchez de Santos, José"}],"title":"Senior staff"},{"id":"Junior_staff","color":"red","item":[{"title":"Alejo Alonso, Aarón"},{"title":"Ayyad Limonge, Yassid"},{"title":"Borsato, Riccardo"},{"title":"Calderón Bustillo, Juan"},{"title":"Cazón Boado, Lorenzo"},{"title":"Romero Vidal, Antonio"},{"title":"Vieites, María"},{"title":"Wu, Bin"}],"title":"Junior staff"},{"id":"Emeritus","color":"red","item":[{"title":"Durán Escribano, Ignacio"},{"title":"Garzón Heydt, Hans"},{"title":"Pajares Vales, Carlos"},{"title":"Pló Casasús, Máximo"}],"title":"Emeritus"},{"id":"Postdocs","color":"red","item":[{"title":"Belin, Samuel Jules"},{"title":"Brossa Gonzalo, Arnau"},{"title":"Cabo Landeira, Cristina"},{"title":"Chen, Lin"},{"title":"Cougoulic, Florian"},{"title":"Dalseno, Jeremy"},{"title":"Dey, Anshuman"},{"title":"Du, Xiaojian"},{"title":"Fernández Prieto, Antonio"},{"title":"García Feal, Xabier"},{"title":"Li, Meijian"},{"title":"Pablos Alfonso, Daniel"},{"title":"Qian, Wenyang"},{"title":"Riehn, Felix"},{"title":"Törnkvist, Robin"},{"title":"Vázquez Sierra, Carlos"}],"title":"Postdocs"},{"id":"Students","color":"red","item":[],"title":"Students"},{"id":"Rm&T_staff","color":"red","item":[],"title":"Rm&T staff"}]
3 3  {{/kanban}}
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,4 +1,4 @@
1 -setTimeout(changeStyles, 500);
1 +setTimeout(changeStyles, 1000);
2 2  
3 3  function changeStyles() {
4 4   const titleElements = document.getElementsByClassName('kanban-item-title');
... ... @@ -13,7 +13,7 @@
13 13   kanbanContainer.style.flexWrap = "wrap"
14 14   }
15 15  
16 - for (let i = 0; i < titleElements.length; i++) {
16 + for (let i = 0; i < titleElements.length; i++) {
17 17   const titleElement = titleElements[i];
18 18   titleElement.style.padding = "2px 4px";
19 19   titleElement.style.borderRadius = "4px";
... ... @@ -34,7 +34,7 @@
34 34   parentElement.style.backgroundColor = '#FFDB58';
35 35   }
36 36   }
37 - if (titleElement.textContent.includes('AUGE')) {
37 + if (titleElement.textContent.includes('AUGE')) {
38 38   titleElement.style.color = 'white';
39 39   titleElement.style.backgroundColor = '#FF7F50';
40 40   const parentElement = titleElement.closest('.kanban-item');
... ... @@ -42,7 +42,7 @@
42 42   parentElement.style.backgroundColor = '#008080';
43 43   }
44 44   }
45 - if (titleElement.textContent.includes('HQCD')) {
45 + if (titleElement.textContent.includes('HQCD')) {
46 46   titleElement.style.color = 'white';
47 47   titleElement.style.backgroundColor = 'crimson';
48 48   const parentElement = titleElement.closest('.kanban-item');
... ... @@ -50,7 +50,7 @@
50 50   parentElement.style.backgroundColor = '#808000';
51 51   }
52 52   }
53 - if (titleElement.textContent.includes('NUCL')) {
53 + if (titleElement.textContent.includes('NUCL')) {
54 54   titleElement.style.color = 'white';
55 55   titleElement.style.backgroundColor = '#E2725B';
56 56   const parentElement = titleElement.closest('.kanban-item');
... ... @@ -58,7 +58,7 @@
58 58   parentElement.style.backgroundColor = '#708090';
59 59   }
60 60   }
61 - if (titleElement.textContent.includes('GRWA')) {
61 + if (titleElement.textContent.includes('GRWA')) {
62 62   titleElement.style.color = 'white';
63 63   titleElement.style.backgroundColor = '#FF00FF';
64 64   const parentElement = titleElement.closest('.kanban-item');
... ... @@ -86,7 +86,7 @@
86 86  
87 87   for (let i = 0; i < headerElements.length; i++) {
88 88   const element = headerElements[i];
89 - if (element.innerHTML.includes('o03')) {
89 + if (element.innerHTML.includes('rDT')) {
90 90   for (let j = 0; j < element.classList.length; j++) {
91 91   if (/kanban-header-\w+/.test(element.classList[j])) {
92 92   element.classList.remove(element.classList[j]);
... ... @@ -97,8 +97,21 @@
97 97   }
98 98   }
99 99  
100 - for (let i = 0; i < headerElements.length; i++) {
100 + for (let i = 0; i < headerElements.length; i++) {
101 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];
102 102   if (element.innerHTML.includes('o01')) {
103 103   for (let j = 0; j < element.classList.length; j++) {
104 104   if (/kanban-header-\w+/.test(element.classList[j])) {
... ... @@ -109,5 +109,138 @@
109 109   }
110 110   }
111 111   }
112 -};
113 113  
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('Neutrons')) {
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 +};
XWiki.StyleSheetExtension[0]
Code
... ... @@ -1,3 +1,3 @@
1 1  #xwikicontent {
2 - background-color: lightBlue;
2 + background-color: white;
3 3  }