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 | ## 获取最近的文档 |
21 | #set($query = $services.query.hql("select doc.fullName from XWikiDocument doc order by doc.date desc")) | ||
22 | #set($query = $query.setLimit(5)) | ||
![]() |
82.1 | 23 | #set($recentDocs = $query.execute()) |
![]() |
76.1 | 24 | |
25 | #if($recentDocs.isEmpty()) | ||
![]() |
77.1 | 26 | No recent documents found. |
![]() |
76.1 | 27 | #else |
![]() |
103.1 | 28 | ## 循环显示最近的文档标题 |
![]() |
98.1 | 29 | #foreach($docFullName in $recentDocs) |
![]() |
95.1 | 30 | #set($document = $xwiki.getDocument($docFullName)) |
![]() |
103.1 | 31 | ## 获取文档标题 |
![]() |
101.1 | 32 | #set($docTitle = $document.getDisplayTitle()) |
![]() |
98.1 | 33 | |
![]() |
103.1 | 34 | ## 显示标题或权限不足消息 |
35 | #if($xwiki.hasAccessLevel('view', 'XWikiGuest', $document.getFullName())) | ||
![]() |
101.1 | 36 | #if($docTitle == '') |
37 | * Untitled Document | ||
![]() |
96.1 | 38 | #else |
39 | * $docTitle | ||
40 | #end | ||
![]() |
89.1 | 41 | #else |
![]() |
101.1 | 42 | * 您的权限不够,请登录查看 |
![]() |
89.1 | 43 | #end |
![]() |
76.1 | 44 | #end |
![]() |
72.1 | 45 | #end |
![]() |
65.1 | 46 | {{/velocity}} |
![]() |
101.1 | 47 | |
48 | |||
![]() |
1.1 | 49 | ))) |
![]() |
38.1 | 50 | |
![]() |
60.1 | 51 | (% class="col-xs-12 col-sm-6" %) |
![]() |
38.1 | 52 | ((( |
![]() |
58.8 | 53 | === 相关链接 === |
![]() |
43.1 | 54 | |
![]() |
71.1 | 55 | (% style="font-size:14px" %)[[北区AIO项目看板(IPV6访问)>>http://nas.nicebro.fun:57567||rel="noopener noreferrer" target="_blank"]] |
![]() |
38.1 | 56 | ))) |
![]() |
61.1 | 57 | |
58 |