Changes for page Documents on this Wiki
on 2008/12/08 08:19
Summary
-
Page properties (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +$msg.get("xe.index.documents") - Syntax
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki 1.01 +XWiki 2.0 - Content
-
... ... @@ -1,38 +1,58 @@ 1 - 1 $msg.get("xe.index.documents")2 -#if( (!$view)|| ($view==""))3 - #set($view = $request.getParameter( "view"))4 - #if( (!$view)|| ($view==""))5 - #set ($view = "index")1 +{{velocity}} 2 +#if("$!{view}" == '') 3 + #set($view = $request.getParameter('view')) 4 + #if("$!{view}" == '') 5 + #set ($view = 'index') 6 6 #end 7 7 #end 8 +#macro(indexTab $tabname $idSuffix $translationKeySuffix) 9 +<li id="xwiki${idSuffix}"#if($view == $tabname) class="active"#end><a href="$doc.getURL('view', "view=${tabname}&$!param")">$msg.get("xe.index${translationKeySuffix}")</a></li> 10 +#end 11 +{{html}} 8 8 <div class="floatcontainer"> 9 9 <ul class="xwikitabbar"> 10 -<li id="xwikiindex"#if($view == "index") class="active"#end><a href="$doc.getURL("view", "view=index&$!param")">$msg.get("xe.index")</a></li> 11 -<li id="xwikitreeview"#if($view == "tree") class="active"#end><a href="$doc.getURL("view", "view=tree&$!param")">$msg.get("xe.index.tree")</a></li> 12 -<li id="xwikiorphansview"#if($view == "orphans") class="active"#end><a href="$doc.getURL("view", "view=orphans&$!param")">$msg.get("xe.index.orphaned")</a></li> 13 -<li id="xwikiattachments"#if($view == "attachments") class="active"#end><a href="$doc.getURL("view", "view=attachments&$!param")">$msg.get("xe.index.attachments")</a></li> 14 +#indexTab('index', 'index', '') 15 +#indexTab('tree', 'treeview', '.tree') 16 +#indexTab('orphans', 'orphansview', '.orphaned') 17 +#indexTab('attachments', 'attachments', '.attachments') 18 +#indexTab('deletedDocs', 'deletedDocs', '.documentsTrash') 19 +#indexTab('deletedAttachments', 'deletedAttachments', '.attachmentsTrash') 14 14 </ul> 15 15 </div> 16 -<div id="xwikieditcontent" class="clear"> 22 +<div class="xwikitabpanescontainer"> 23 +{{/html}} 17 17 ## ============================================== 18 18 ## If view=index then displays the index of pages 19 19 ## ============================================== 20 -#if ($view == "index")21 - #includeTopic("XWiki.Tableview")22 -#elseif ($view == "tree")27 +#if ($view == 'index') 28 +{{include document="XWiki.Tableview" /}} 29 +#elseif ($view == 'tree') 23 23 ## ============================================== 24 24 ## If view=tree then displays the treeview 25 25 ## ============================================== 26 - #includeTopic("XWiki.Treeview")27 -#elseif ($view == "attachments")33 +{{include document="XWiki.Treeview" /}} 34 +#elseif ($view == 'attachments') 28 28 ## ============================================== 29 29 ## If view=attachments then display attachments 30 30 ## ============================================== 31 - #includeTopic("XWiki.AllAttachments")32 -#else 38 +{{include document="XWiki.AllAttachments" /}} 39 +#elseif ($view == 'orphans') 33 33 ## ============================================== 34 34 ## If view=orphans then display orphans 35 35 ## ============================================== 36 -#includeTopic("XWiki.OrphanedPages") 43 +{{include document="XWiki.OrphanedPages" /}} 44 +#elseif ($view == 'deletedDocs') 45 +## ============================================== 46 +## If view=deletedDocs then display the recycle bin 47 +## ============================================== 48 +{{include document="XWiki.DeletedDocuments" /}} 49 +#elseif ($view == 'deletedAttachments') 50 +## ============================================== 51 +## If view=deletedAttachments then display the attachment trash 52 +## ============================================== 53 +{{include document="XWiki.DeletedAttachments" /}} 37 37 #end 55 +{{html}} 38 38 </div> 57 +{{/html}} 58 +{{/velocity}}