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 | === 近期更新 === |
| |
47.1 | 18 | |
| |
70.1 | 19 | {{velocity}} |
| |
82.1 | 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()) | ||
| |
76.1 | 23 | |
| 24 | #if($recentDocs.isEmpty()) | ||
| |
77.1 | 25 | No recent documents found. |
| |
76.1 | 26 | #else |
| |
81.1 | 27 | #foreach($docFullName in $recentDocs) |
| 28 | #set($doc = $xwiki.getDocument($docFullName)) | ||
| |
91.1 | 29 | #set($docTitle = $doc.getPlainTitle()) |
| |
88.1 | 30 | #set($docExternalURL = $doc.getExternalURL('view')) |
| |
89.1 | 31 | |
| 32 | #if($xcontext.user == 'XWikiGuest') | ||
| 33 | ## 如果用户是访客,则只显示标题而不添加链接 | ||
| 34 | * $docTitle | ||
| 35 | #else | ||
| 36 | ## 如果用户是已登录会员,则显示链接 | ||
| 37 | * [[${docTitle}>>${docExternalURL}]] | ||
| 38 | #end | ||
| |
76.1 | 39 | #end |
| |
72.1 | 40 | #end |
| |
65.1 | 41 | {{/velocity}} |
| |
79.1 | 42 | |
| 43 | |||
| 44 | |||
| |
1.1 | 45 | ))) |
| |
38.1 | 46 | |
| |
60.1 | 47 | (% class="col-xs-12 col-sm-6" %) |
| |
38.1 | 48 | ((( |
| |
58.8 | 49 | === 相关链接 === |
| |
43.1 | 50 | |
| |
71.1 | 51 | (% style="font-size:14px" %)[[北区AIO项目看板(IPV6访问)>>http://nas.nicebro.fun:57567||rel="noopener noreferrer" target="_blank"]] |
| |
38.1 | 52 | ))) |
| |
61.1 | 53 | |
| 54 |