Changes for page ИТ Отдел
Last modified by Алексей Александрович Иванов on 2025/10/31 08:32
From version 3.1
edited by root_xwiki
on 2025/10/08 08:09
on 2025/10/08 08:09
Change comment:
There is no comment for this version
To version 45.2
edited by Алексей Александрович Иванов
on 2025/10/31 08:32
on 2025/10/31 08:32
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 1 removed)
-
Objects (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. root_xwiki1 +XWiki.it_IvanovAA - Content
-
... ... @@ -1,29 +1,69 @@ 1 -{{velocity}} 2 -## Получаем текущее пространство (для nested spaces) 3 -#set($currentDocRef = $doc.documentReference) 4 -#set($currentSpaceRef = $currentDocRef.lastSpaceReference) 1 += ИТ Отдел = 5 5 6 -## Запрос всех дочерних страниц (nested pages в XWiki 14+) 7 -#set($query = "select doc.fullName from XWikiDocument as doc where doc.space like '${doc.space}.%' and doc.name = 'WebHome' order by doc.title") 8 -#set($childPages = $services.query.hql($query).execute()) 3 +== Добро пожаловать в раздел инструкций IT отдела. Ниже представлены все доступные инструкции: == 9 9 10 -## Альтернатива для плоской структуры (если nested spaces не используются): 11 -## #set($childPages = $services.query.xwql("where doc.space = '${doc.space}' and doc.name <> 'WebHome' order by doc.title").execute()) 12 12 13 -#set($hasInstructions = false) 14 -#if($childPages && $childPages.size() > 0) 15 - #set($hasInstructions = true) 16 -#end 17 -{{/velocity}} 18 18 19 -= IT отдел 20 20 21 - Добропожаловать в раздел инструкцийITотдела.Ниже представлены все доступные инструкции:8 +== Инструкции отдела == 22 22 23 -== Инструкции отдела 10 +{{html clean="false"}} 11 +<a class="planner-card" 12 + href="https://10.0.1.1/vacation/freedom.html" 13 + target="_blank" rel="noopener"> 14 + <div class="planner-card__inner"> 15 + <div class="icon-circle icon-orange" aria-hidden="true"> 16 + <!-- SVG календарь --> 17 + <svg viewBox="0 0 24 24" width="40" height="40" fill="#fd7e14"> 18 + <path d="M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 1 1 2 0v1zm13 6H4v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V8zM6 11h3v3H6v-3zm5 0h3v3h-3v-3zm5 0h3v3h-3v-3z"/> 19 + </svg> 20 + </div> 21 + <div class="planner-card__text"> 22 + <div class="planner-card__title">Планировщик отпусков</div> 23 + <div class="planner-card__desc">Открыть freedom_security.html на файловом сервере</div> 24 + </div> 25 + </div> 26 +</a> 24 24 28 +<style> 29 + .planner-card { 30 + display: block; text-decoration: none; color: inherit; 31 + } 32 + .planner-card__inner { 33 + display: flex; align-items: center; gap: 14px; 34 + background: #fff; border: 1px solid #e9ecef; border-radius: 10px; 35 + padding: 16px 18px; box-shadow: 0 2px 4px rgba(0,0,0,.06); 36 + transition: transform .25s, box-shadow .25s, border-color .25s; 37 + } 38 + .planner-card__inner:hover { 39 + transform: translateY(-3px); 40 + box-shadow: 0 10px 22px rgba(253,126,20,.18); 41 + border-color: rgba(253,126,20,.35); 42 + } 43 + .icon-circle { 44 + width: 64px; height: 64px; border-radius: 50%; 45 + display: flex; align-items: center; justify-content: center; 46 + background: rgba(253,126,20,.08); border: 2px solid rgba(253,126,20,.18); 47 + } 48 + .icon-orange { background: rgba(253,126,20,.08); } 49 + .planner-card__text { display: flex; flex-direction: column; } 50 + .planner-card__title { font-weight: 600; font-size: 1.05rem; color: #333; } 51 + .planner-card__desc { color: #6c757d; font-size: .92rem; margin-top: 2px; } 52 +</style> 53 +{{/html}} 54 + 55 + 25 25 {{velocity}} 26 -#if($hasInstructions) 57 + 58 +## Получаем текущее пространство 59 +#set($currentSpace = $doc.space) 60 + 61 +## Запрос для nested spaces (XWiki 14+: "ИТ Отдел.Active Directory") 62 +#set($query = "select doc.fullName from XWikiDocument as doc where doc.space like '${currentSpace}.%' and doc.name = 'WebHome' order by doc.title") 63 +#set($childPages = $services.query.hql($query).execute()) 64 + 65 +## Проверяем, есть ли инструкции 66 +#if($childPages && $childPages.size() > 0) 27 27 {{html clean="false"}} 28 28 <div class="row justify-content-start"> 29 29 #foreach($childPageFullName in $childPages) ... ... @@ -30,18 +30,18 @@ 30 30 #set($childDoc = $xwiki.getDocument($childPageFullName)) 31 31 #set($childTitle = $childDoc.getPlainTitle()) 32 32 #set($childURL = $childDoc.getURL()) 33 - #set($childDescription = "Нажмите для просмотра инструкции") 34 34 35 - <div class="col-md-6 col-lg-4 mb-4"> 36 - <div class="card shadow-sm border-0 rounded-3 card-hover" style="transition: transform 0.3s ease, box-shadow 0.3s ease;"> 37 - <div class="card-body p-4 text-center"> 38 - <div class="icon-wrapper mb-3 mx-auto rounded-circle bg-info bg-opacity-10 p-3" style="width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(23,162,184,0.2);"> 39 - <i class="fas fa-file-alt" style="font-size: 28px; color: #17a2b8;"></i> 74 + <div class="col-md-6 col-lg-4 mb-3"> 75 + <div class="instruction-card card shadow-sm border-0 rounded-3"> 76 + <div class="card-accent"></div> 77 + <div class="card-body p-3 text-center d-flex flex-column"> 78 + <div class="icon-wrapper mb-2 mx-auto rounded-circle bg-info bg-opacity-10"> 79 + <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSIjMTdhMmI4IiBkPSJNMCAxMjhDMCA5Mi43IDE0LjMgNjQgNDggNjRIMzM2YzMzLjcgMCA0OCAyOC43IDQ4IDY0VjQ0OGMwIDM1LjMtMTQuMyA2NC00OCA2NEg0OGMtMzMuNyAwLTQ4LTI4LjctNDgtNjRWMTI4em0yNTYgMTYwYzAgMTcuNy0xNC4zIDMyLTMyIDMySDk2Yy0xNy43IDAtMzItMTQuMy0zMi0zMnNxMTQuMy0zMiAzMi0zMmhxMTI4YzE3LjcgMCAzMiAxNC4zIDMyIDMydi1tLTMyIDk2YzE3LjcgMCAzMi0xNC4zIDMyLTMycy0xNC4zLTMyLTMyLTMySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnNxMTQuMyAzMiAzMiAzMmhxMTI4eiIvPjwvc3ZnPg==" alt="Документ" style="width: 32px; height: 32px;"> 40 40 </div> 41 - <h 4class="h5fw-semiboldmb-2">$childTitle</h4>42 - <p class="text-muted mb-3" style="font-size: 0. 9rem;">$childDescription</p>43 - <a href="$childURL" class="btn btn-info rounded-pill px-4 py-2" style="background-color:#17a2b8; border-color:#17a2b8; color: white;text-decoration: none; display:inline-block;">44 - <i class="fas fa-arrow-right me-2"></i>Открытьинструкцию81 + <h5 class="card-title mb-2" style="font-size: 1.05rem; font-weight: 600; color: #333; line-height: 1.3;">$childTitle</h5> 82 + <p class="card-text text-muted mb-3 flex-grow-1" style="font-size: 0.85rem; line-height: 1.4;">Инструкция для сотрудников</p> 83 + <a href="$childURL" class="btn btn-info btn-sm rounded-pill" style="padding: 0.4rem 1.2rem; font-size: 0.9rem;"> 84 + Открыть 45 45 </a> 46 46 </div> 47 47 </div> ... ... @@ -48,28 +48,86 @@ 48 48 </div> 49 49 #end 50 50 </div> 91 + 92 + <style> 93 + .instruction-card { 94 + transition: transform 0.3s ease, box-shadow 0.3s ease; 95 + background: white; 96 + border: 1px solid #e9ecef; 97 + min-height: 200px; 98 + display: flex; 99 + flex-direction: column; 100 + position: relative; 101 + overflow: hidden; 102 + } 103 + .instruction-card:hover { 104 + transform: translateY(-5px); 105 + box-shadow: 0 8px 20px rgba(23,162,184,0.2) !important; 106 + } 107 + .card-accent { 108 + position: absolute; 109 + top: 0; 110 + left: 0; 111 + width: 100%; 112 + height: 4px; 113 + background: linear-gradient(90deg, #17a2b8, #5bc0de); 114 + } 115 + .icon-wrapper { 116 + width: 50px; 117 + height: 50px; 118 + display: flex; 119 + align-items: center; 120 + justify-content: center; 121 + border: 2px solid rgba(23,162,184,0.15); 122 + } 123 + .card-body { 124 + flex: 1; 125 + display: flex; 126 + flex-direction: column; 127 + justify-content: space-between; 128 + } 129 + .btn-info { 130 + background-color: #17a2b8; 131 + border-color: #17a2b8; 132 + color: white; 133 + transition: all 0.3s; 134 + } 135 + .btn-info:hover { 136 + background-color: #138496; 137 + transform: scale(1.05); 138 + } 139 + .row { 140 + display: flex; 141 + flex-wrap: wrap; 142 + margin: 0 -12px; 143 + } 144 + .col-lg-4 { 145 + flex: 0 0 33.3333%; 146 + max-width: 33.3333%; 147 + padding: 0 12px; 148 + } 149 + .col-md-6 { 150 + flex: 0 0 50%; 151 + max-width: 50%; 152 + padding: 0 12px; 153 + } 154 + .mb-3 { 155 + margin-bottom: 1rem; 156 + } 157 + @media (max-width: 1200px) { 158 + .col-lg-4 { flex: 0 0 50%; max-width: 50%; } 159 + } 160 + @media (max-width: 768px) { 161 + .col-lg-4, .col-md-6 { flex: 0 0 100%; max-width: 100%; } 162 + .instruction-card { min-height: 180px; } 163 + } 164 + </style> 51 51 {{/html}} 52 52 #else 53 - {{info}}В этом разделе пока нет инструкций. Создайте новую страницу через кнопку Create.{{/info}} 167 + {{info}}В этом разделе пока нет инструкций. Создайте новую страницу через кнопку **Create**.{{/info}} 54 54 #end 55 55 {{/velocity}} 56 56 57 -== Добавить новую инструкцию 171 +== Добавить новую инструкцию == 58 58 59 59 Для создания новой инструкции нажмите **Create** в меню выше и выберите родительское пространство **"ИТ Отдел"**. 60 - 61 -{{velocity}} 62 -<style> 63 - .card-hover:hover { 64 - transform: translateY(-5px); 65 - box-shadow: 0 8px 20px rgba(23,162,184,0.2) !important; 66 - } 67 - .btn:hover { 68 - opacity: 0.9; 69 - } 70 - .icon-wrapper i { 71 - font-size: 28px; 72 - } 73 -</style> 74 -{{/velocity}} 75 -
- image.jpg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.root_xwiki - Size
-
... ... @@ -1,1 +1,0 @@ 1 -40.8 KB - Content
- «Компьютерщики» — совет «выключить и снова включить» (1080p).mp4
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.root_xwiki - Size
-
... ... @@ -1,0 +1,1 @@ 1 +48.9 MB - Content
- 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