Изменения документа 02. Деятельность СЗН
Редактировал(а) Мария Дужая 2024/08/15 14:18
От версии 4.1
отредактировано Admin Admin
на 2024/05/21 02:10
на 2024/05/21 02:10
Изменить комментарий:
К данной версии нет комментариев
К версии 2.1
отредактировано Admin Admin
на 2024/05/18 00:56
на 2024/05/18 00:56
Изменить комментарий:
К данной версии нет комментариев
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -18,11 +18,16 @@ 18 18 ul.button-list { 19 19 padding: 0; 20 20 list-style-type: none; 21 - display: flex; 22 - flex-wrap: wrap; 23 23 } 24 24 23 + .button-list li { 24 + display: inline-block; 25 + vertical-align: top; 26 + margin: 10px; 27 + } 28 + 25 25 .button-link { 30 + display: inline-block; 26 26 a:link, a:active, a:visited { 27 27 display: flex; 28 28 align-items: center; ... ... @@ -29,7 +29,7 @@ 29 29 justify-content: center; 30 30 width: 280px; 31 31 height: 75px; 32 - font-family: 'Montserrat', sans-serif; 37 + font-family: 'Montserrat', sans-serif !important; 33 33 font-size: 14px; 34 34 font-weight: 600; 35 35 cursor: pointer; ... ... @@ -40,7 +40,7 @@ 40 40 border: none; 41 41 border-radius: 10px; 42 42 box-shadow: 0 0 9px rgba(0, 0, 0, 0.25); 43 - margin: 010px10px 10px;48 + margin: 10px; 44 44 padding: 0 10px; 45 45 } 46 46 } ... ... @@ -50,53 +50,30 @@ 50 50 background-color: rgba(0, 0, 0, 0.03); 51 51 } 52 52 } 53 - 54 - .button-link.small-font { 55 - a:link, a:active, a:visited { 56 - font-size: 13px; 57 - } 58 - } 59 59 </style> 60 60 </head> 61 -{{/html}} 62 - 60 +<script> 63 63 {{velocity}} 64 -{{html clean="false"}} 65 - <b>Подразделы:</b><br><br> 66 - <ul class="button-list"> 62 +#set($pubRefs = $doc.getChildrenReferences()) 63 +#foreach($pubRef in $pubRefs) 64 + #set($pub = $xwiki.getDocument($pubRef)) 65 + #set($title = $pub.getTitle()) 66 + (% class="button-link" %) 67 + <li>[[$title>>$pubRef]]</li> 68 +#end 69 +</script> 67 67 {{/html}} 68 -#set($maxUncutTitle = 100) 69 -#set($maxTitleWithoutFontReduction = 80) 70 70 72 +{{velocity}} 73 +{{html wiki="true"}} 74 +(% <ul class="button-list"> %) 71 71 #set($pubRefs = $doc.getChildrenReferences()) 72 -#set($entries = []) 73 73 #foreach($pubRef in $pubRefs) 74 74 #set($pub = $xwiki.getDocument($pubRef)) 75 75 #set($title = $pub.getTitle()) 76 - #if($title.length() > $maxUncutTitle) 77 - #set($shortTitle = $title.substring(0, $maxUncutTitle)) 78 - #set($shortTitle = $shortTitle + "...") 79 - #else 80 - #set($shortTitle = $title) 81 - #end 82 - #set($map = {"title": $shortTitle, "ref": $pubRef, "doc": $pub}) 83 - #set($discard = $entries.add($map)) 79 + (% class="button-link" %) 80 + (% <li> %)[[$title>>$pubRef]](% </li> %) 84 84 #end 85 - 86 -#foreach($entry in $collectiontool.sort($entries, "title:asc")) 87 - #set($pubRef = $entry.ref) 88 - #set($pub = $entry.doc) 89 - #set($title = $entry.title) 90 - 91 - #if($title.length() > $maxTitleWithoutFontReduction) 92 - ## При передаче в class переменной почему-то из неё берётся значение до первого пробела 93 - ## поэтому случай, когда два CSS-класса, прописывается вручную 94 - (% class="button-link small-font" %) 95 - [[$title>>$pubRef]] 96 - #else 97 - (% class="button-link" %) 98 - [[$title>>$pubRef]] 99 - #end 100 -#end 101 -{{html clean="false"}} </ul> {{/html}} 82 +{{/html}} 83 +(% </ul> %) 102 102 {{/velocity}}