Wiki source code of ИТ Отдел

Version 2.1 by root_xwiki on 2025/10/08 08:07

Show last authors
1 = IT отдел
2
3 Добро пожаловать в раздел инструкций IT отдела. Ниже представлены все доступные инструкции:
4
5 == Инструкции отдела
6
7 {{velocity}}
8 #set($currentSpace = $doc.space)
9 #set($childPages = $services.query.xwql("where doc.space = '$currentSpace' and doc.name <> 'WebHome' order by doc.title").execute())
10
11 #if($childPages.size() > 0)
12 (%class="row"%)
13 #foreach($childPageRef in $childPages)
14 #set($childDoc = $xwiki.getDocument($childPageRef))
15 #set($childTitle = $childDoc.getPlainTitle())
16 #set($childURL = $childDoc.getURL())
17 #set($childDescription = $childDoc.getObject("XWiki.TagClass").getProperty("tags").value)
18 #if(!$childDescription || $childDescription == "")
19 #set($childDescription = "Нажмите для просмотра инструкции")
20 #end
21
22 (%class="col-md-6 col-lg-4 mb-4"%)
23 {{{
24 <div class="card shadow-sm border-0 rounded-3" style="transition: transform 0.3s;">
25 <div class="card-body p-4">
26 <h4>$childTitle</h4>
27 <p class="text-muted">$childDescription</p>
28 <a href="$childURL" class="btn btn-primary rounded-pill px-4 py-2">Открыть инструкцию</a>
29 </div>
30 </div>
31 }}}
32 (%/)
33 #end
34 (%/)
35 #else
36 <div class="alert alert-info">В этом разделе пока нет инструкций. Создайте новую страницу.</div>
37 #end
38 {{/velocity}}
39
40 == Добавить новую инструкцию
41
42 Для создания новой инструкции нажмите [[Create>>$xwiki.getURL($doc.documentReference, 'create')]]