Wiki源代码Home
隐藏最后作者
author | version | line-number | content |
---|---|---|---|
![]() |
58.2 | 1 | == {{displayIcon name="bell"/}} 通知公告 == |
![]() |
1.1 | 2 | |
![]() |
57.1 | 3 | |
![]() |
59.2 | 4 | (% style="font-size:16px" %)内部网站,不提供注册功能。 |
![]() |
1.1 | 5 | |
![]() |
59.2 | 6 | |
![]() |
58.2 | 7 | == == |
![]() |
1.1 | 8 | |
![]() |
58.2 | 9 | == == |
![]() |
1.1 | 10 | |
![]() |
58.2 | 11 | == == |
![]() |
1.1 | 12 | |
13 | |||
![]() |
59.1 | 14 | |
![]() |
60.1 | 15 | (% class="col-xs-12 col-sm-6" %) |
![]() |
1.1 | 16 | ((( |
![]() |
59.3 | 17 | === 近期更新 === |
![]() |
99.1 | 18 | |
![]() |
70.1 | 19 | {{velocity}} |
![]() |
103.1 | 20 | #set($query = $services.query.hql("select doc.fullName from XWikiDocument doc order by doc.date desc")) |
21 | #set($query = $query.setLimit(5)) | ||
![]() |
82.1 | 22 | #set($recentDocs = $query.execute()) |
![]() |
76.1 | 23 | |
![]() |
104.1 | 24 | ## 打印调试信息 |
![]() |
76.1 | 25 | #if($recentDocs.isEmpty()) |
![]() |
77.1 | 26 | No recent documents found. |
![]() |
76.1 | 27 | #else |
![]() |
104.1 | 28 | ## 打印调试信息:列出获取到的文档 |
29 | * Retrieved ${recentDocs.size()} documents: | ||
![]() |
98.1 | 30 | #foreach($docFullName in $recentDocs) |
![]() |
95.1 | 31 | #set($document = $xwiki.getDocument($docFullName)) |
![]() |
101.1 | 32 | #set($docTitle = $document.getDisplayTitle()) |
![]() |
98.1 | 33 | |
![]() |
104.1 | 34 | ## 打印调试信息:当前用户和文档权限 |
35 | * Checking document: $docTitle | ||
36 | * Current user: $xcontext.user | ||
37 | * Has view access for guest: $xwiki.hasAccessLevel('view', 'XWikiGuest', $document.getFullName()) | ||
38 | * Has view access for current user: $xwiki.hasAccessLevel('view', $xcontext.user, $document.getFullName()) | ||
39 | |||
40 | #if($xwiki.hasAccessLevel('view', $xcontext.user, $document.getFullName())) | ||
![]() |
101.1 | 41 | #if($docTitle == '') |
42 | * Untitled Document | ||
![]() |
96.1 | 43 | #else |
![]() |
104.1 | 44 | * [[${docTitle}>>${document.getExternalURL('view')}]] |
![]() |
96.1 | 45 | #end |
![]() |
89.1 | 46 | #else |
![]() |
101.1 | 47 | * 您的权限不够,请登录查看 |
![]() |
89.1 | 48 | #end |
![]() |
76.1 | 49 | #end |
![]() |
72.1 | 50 | #end |
![]() |
65.1 | 51 | {{/velocity}} |
![]() |
101.1 | 52 | |
![]() |
1.1 | 53 | ))) |
![]() |
38.1 | 54 | |
![]() |
60.1 | 55 | (% class="col-xs-12 col-sm-6" %) |
![]() |
38.1 | 56 | ((( |
![]() |
58.8 | 57 | === 相关链接 === |
![]() |
43.1 | 58 | |
![]() |
71.1 | 59 | (% style="font-size:14px" %)[[北区AIO项目看板(IPV6访问)>>http://nas.nicebro.fun:57567||rel="noopener noreferrer" target="_blank"]] |
![]() |
38.1 | 60 | ))) |
![]() |
61.1 | 61 | |
62 |