Изменения документа 02. Деятельность СЗН

Редактировал(а) Мария Дужая 2024/08/15 14:18

От версии 5.1
отредактировано Admin Admin
на 2024/05/23 14:07
Изменить комментарий: К данной версии нет комментариев
К версии 2.2
отредактировано Admin Admin
на 2024/05/18 00:57
Изменить комментарий: К данной версии нет комментариев

Сводка

Подробности

Свойства страницы
Теги
... ... @@ -1,1 +1,1 @@
1 -Гендриксон|Кнопки
1 +Гендриксон
Содержимое
... ... @@ -1,46 +1,74 @@
1 1  (% class="box infomessage" %)
2 +(((
2 2  **Деятельность СЗН**
4 +)))
3 3  
6 +(((
4 4  **Координатор**: Оксана Павловна Гендриксон
5 -
8 +)))
9 +(((
6 6  **Краткое описание**: Данный раздел содержит материалы по деятельности Службы занятости населения.
11 +)))
7 7  
13 +{{html clean="false"}}
14 +<head>
15 + <style>
16 + @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap');
8 8  
9 -{{velocity}}
10 -#set($buttonsValues = [
11 - {"title": "Материалы", "ref": "02\. Деятельность СЗН.Материалы.WebHome"},
12 - {"title": "Направления деятельности", "ref": "02\. Деятельность СЗН.Направления деятельности.WebHome"}
13 -])
14 -{{html clean="false"}} <ul class="custom-button-list"> {{/html}}
15 -#set($maxUncutTitle = 120)
16 -#set($maxTitleWithoutFontReduction = 90)
18 + ul.button-list {
19 + padding: 0;
20 + list-style-type: none;
21 + }
17 17  
18 -#set($entries = [])
19 -#foreach($button in $buttonsValues)
20 - #set($title = $button.title)
21 - #if($title.length() > $maxUncutTitle)
22 - #set($shortTitle = $title.substring(0, $maxUncutTitle))
23 - #set($shortTitle = $shortTitle + "...")
24 - #else
25 - #set($shortTitle = $title)
26 - #end
27 - #set($map = {"title": $shortTitle, "ref": $button.ref})
28 - #set($discard = $entries.add($map))
29 -#end
23 + .button-list li {
24 + display: inline-block;
25 + vertical-align: top;
26 + margin: 10px;
27 + }
30 30  
31 -#foreach($entry in $entries)
32 - #set($pubRef = $entry.ref)
33 - #set($title = $entry.title)
29 + .button-link {
30 + display: inline-block;
31 + a:link, a:active, a:visited {
32 + display: flex;
33 + align-items: center;
34 + justify-content: center;
35 + width: 280px;
36 + height: 75px;
37 + font-family: 'Montserrat', sans-serif !important;
38 + font-size: 14px;
39 + font-weight: 600;
40 + cursor: pointer;
41 + text-align: center;
42 + text-decoration: none;
43 + color: #3e7cbc;
44 + background-color: #ffffff;
45 + border: none;
46 + border-radius: 10px;
47 + box-shadow: 0 0 9px rgba(0, 0, 0, 0.25);
48 + margin: 10px;
49 + padding: 0 10px;
50 + }
51 + }
34 34  
35 - #if($title.length() > $maxTitleWithoutFontReduction)
36 - ## При передаче в class переменной почему-то из неё берётся значение до первого пробела
37 - ## поэтому случай, когда два CSS-класса, прописывается вручную
38 - (% class="custom-button small-font" %)
39 - [[$title>>$pubRef]]
40 - #else
41 - (% class="custom-button" %)
42 - [[$title>>$pubRef]]
43 - #end
53 + .button-link:hover {
54 + a:link, a:active, a:visited {
55 + background-color: rgba(0, 0, 0, 0.03);
56 + }
57 + }
58 + </style>
59 +</head>
60 +{{/html}}
61 +
62 +{{velocity}}
63 +{{html wiki="true"}}
64 +(% <ul class="button-list"> %)
65 +#set($pubRefs = $doc.getChildrenReferences())
66 +#foreach($pubRef in $pubRefs)
67 + #set($pub = $xwiki.getDocument($pubRef))
68 + #set($title = $pub.getTitle())
69 + (% class="button-link" %)
70 + (% <li> %)[[$title>>$pubRef]](% </li> %)
44 44  #end
45 -{{html clean="false"}} </ul> {{/html}}
72 +{{/html}}
73 +(% </ul> %)
46 46  {{/velocity}}