Wiki源代码Home
显示最后作者
author | version | line-number | content |
---|---|---|---|
1 | == {{displayIcon name="bell"/}} 通知公告 == | ||
2 | |||
3 | |||
4 | (% style="font-size:16px" %)内部网站,不提供注册功能。 | ||
5 | |||
6 | |||
7 | == == | ||
8 | |||
9 | == == | ||
10 | |||
11 | == == | ||
12 | |||
13 | |||
14 | |||
15 | (% class="col-xs-12 col-sm-6" %) | ||
16 | ((( | ||
17 | === 近期更新 === | ||
18 | |||
19 | {{velocity}} | ||
20 | #set($query = $services.query.hql("select doc.fullName from XWikiDocument doc order by doc.date desc")) | ||
21 | #set($query = $query.setLimit(5)) | ||
22 | #set($recentDocs = $query.execute()) | ||
23 | |||
24 | ## 打印调试信息 | ||
25 | #if($recentDocs.isEmpty()) | ||
26 | No recent documents found. | ||
27 | #else | ||
28 | ## 打印调试信息:列出获取到的文档 | ||
29 | * Retrieved ${recentDocs.size()} documents: | ||
30 | #foreach($docFullName in $recentDocs) | ||
31 | #set($document = $xwiki.getDocument($docFullName)) | ||
32 | #set($docTitle = $document.getDisplayTitle()) | ||
33 | |||
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())) | ||
41 | #if($docTitle == '') | ||
42 | * Untitled Document | ||
43 | #else | ||
44 | * [[${docTitle}>>${document.getExternalURL('view')}]] | ||
45 | #end | ||
46 | #else | ||
47 | * 您的权限不够,请登录查看 | ||
48 | #end | ||
49 | #end | ||
50 | #end | ||
51 | {{/velocity}} | ||
52 | |||
53 | ))) | ||
54 | |||
55 | (% class="col-xs-12 col-sm-6" %) | ||
56 | ((( | ||
57 | === 相关链接 === | ||
58 | |||
59 | (% style="font-size:14px" %)[[北区AIO项目看板(IPV6访问)>>http://nas.nicebro.fun:57567||rel="noopener noreferrer" target="_blank"]] | ||
60 | ))) | ||
61 | |||
62 |