Changes for page ИТ Отдел

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

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

Summary

Details

Page properties
Content
... ... @@ -1,43 +2,14 @@
1 -= IT отдел
2 2  
3 -Добро пожаловать в раздел инструкций IT отдела. Ниже представлены все доступные инструкции:
2 +{{embed URL="https://vk.com/video-145404816_456246869" width="853" height="480" autoplay="1" hd="2" /}}
4 4  
5 -== Инструкции отдела
6 -
4 +<!-- Fallback: Если embed не загружается, показываем кнопку-ссылку на VK -->
7 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>
6 +#if($xwiki.ssx.get("embedError")) <!-- Псевдопроверка; замените на реальную, если нужно -->
7 + <div style="text-align: center; margin: 20px auto; max-width: 853px;">
8 + <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);">
9 + <span style="vertical-align: middle;">▶</span> Открыть видео в VK (HD, Автостарт)
10 + </a>
11 + <p style="text-align: center; font-size: 0.9em; color: #666; margin-top: 10px;">Инструкционное видео для IT-отдела (нажмите для просмотра)</p>
12 + </div>
37 37  #end
38 38  {{/velocity}}
39 -
40 -== Добавить новую инструкцию
41 -
42 -Для создания новой инструкции нажмите [[Create>>$xwiki.getURL($doc.documentReference, 'create')]]
43 -
XWiki.XWikiComments[0]
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.root_xwiki
Comment
... ... @@ -1,0 +1,3 @@
1 +Первый :)
2 +
3 +
Date
... ... @@ -1,0 +1,1 @@
1 +2025-10-09 05:48:33.845