Changes for page ИТ Отдел

Last modified by Алексей Александрович Иванов on 2025/10/31 08:32

From version 26.1
edited by root_xwiki
on 2025/10/16 12:09
Change comment: There is no comment for this version
To version 2.1
edited by root_xwiki
on 2025/10/08 08:07
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,11 +1,43 @@
1 -{{embed URL="https://vk.com/video-145404816_456246869" width="853" height="480" autoplay="1" hd="2"/}}
1 += IT отдел
2 2  
3 -<!-- Fallback: Если embed не загружается, показываем кнопку-ссылку на VK -->
4 -{{velocity}}#if($xwiki.ssx.get("embedError")) <!-- Псевдопроверка; замените на реальную, если нужно -->
5 - <div style="text-align: center; margin: 20px auto; max-width: 853px;">
6 - <a href="https://vk.com/video-145404816_456246869?z=video145404816_456246869%2Fpl_cat_-145404816%2F&autoplay=1&hd=2" target="_blank" class="btn btn-primary" style="background: #4c75a3; color: white; padding: 15px 30px; border-radius: 8px; font-size: 1.1em; text-decoration: none; display: inline-block; box-shadow: 0 4px 8px rgba(0,0,0,0.1);">
7 - <span style="vertical-align: middle;">▶</span> Открыть видео в VK (HD, Автостарт)
8 - </a>
9 - <p style="text-align: center; font-size: 0.9em; color: #666; margin-top: 10px;">Инструкционное видео для IT-отдела (нажмите для просмотра)</p>
10 - </div>
11 -#end{{/velocity}}
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')]]
43 +
XWiki.XWikiComments[0]
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.root_xwiki
Comment
... ... @@ -1,3 +1,0 @@
1 -Первый :)
2 -
3 -
Date
... ... @@ -1,1 +1,0 @@
1 -2025-10-09 05:48:33.845