Changes for page Pages on this Wiki

Last modified by Thomas Mortagne on 2015/11/23 12:21

From version 4.1
edited by Admin
on 2010/04/04 11:18
Change comment: Importé depuis un le XAR
To version 1.1
edited by Admin
on 2009/09/09 02:00
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,59 +1,44 @@
1 1  {{velocity}}
2 -#if("$!{view}" == '')
3 - #set($view = $request.getParameter('view'))
4 - #if("$!{view}" == '')
5 - #set ($view = 'index')
2 +#if((!$view) || ($view == ""))
3 + #set($view = $request.getParameter("view"))
4 + #if((!$view) || ($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}&amp;$!param")">$msg.get("xe.index${translationKeySuffix}")</a></li>
10 -#end
11 11  {{html}}
12 12  <div class="floatcontainer">
13 13  <ul class="xwikitabbar">
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')
11 +<li id="xwikiindex"#if($view == "index") class="active"#end><a href="$doc.getURL("view", "view=index&amp;$!param")">$msg.get("xe.index")</a></li>
12 +
13 +<li id="xwikitreeview"#if($view == "tree") class="active"#end><a href="$doc.getURL("view", "view=tree&amp;$!param")">$msg.get("xe.index.tree")</a></li>
14 +<li id="xwikiorphansview"#if($view == "orphans") class="active"#end><a href="$doc.getURL("view", "view=orphans&amp;$!param")">$msg.get("xe.index.orphaned")</a></li>
15 +<li id="xwikiattachments"#if($view == "attachments") class="active"#end><a href="$doc.getURL("view", "view=attachments&amp;$!param")">$msg.get("xe.index.attachments")</a></li>
16 +
20 20  </ul>
21 21  </div>
22 22  <div class="xwikitabpanescontainer">
23 23  {{/html}}
24 -
25 25  ## ==============================================
26 26  ## If view=index then displays the index of pages
27 27  ## ==============================================
28 -#if ($view == 'index')
24 +#if ($view == "index")
29 29  {{include document="XWiki.Tableview" /}}
30 -#elseif ($view == 'tree')
26 +#elseif ($view == "tree")
31 31  ## ==============================================
32 32  ## If view=tree then displays the treeview
33 33  ## ==============================================
34 34  {{include document="XWiki.Treeview" /}}
35 -#elseif ($view == 'attachments')
31 +#elseif ($view == "attachments")
36 36  ## ==============================================
37 37  ## If view=attachments then display attachments
38 38  ## ==============================================
39 39  {{include document="XWiki.AllAttachments" /}}
40 -#elseif ($view == 'orphans')
36 +#else
41 41  ## ==============================================
42 42  ## If view=orphans then display orphans
43 43  ## ==============================================
44 44  {{include document="XWiki.OrphanedPages" /}}
45 -#elseif ($view == 'deletedDocs')
46 -## ==============================================
47 -## If view=deletedDocs then display the recycle bin
48 -## ==============================================
49 -{{include document="XWiki.DeletedDocuments" /}}
50 -#elseif ($view == 'deletedAttachments')
51 -## ==============================================
52 -## If view=deletedAttachments then display the attachment trash
53 -## ==============================================
54 -{{include document="XWiki.DeletedAttachments" /}}
55 55  #end
56 -
57 57  {{html}}
58 58  </div>
59 59  {{/html}}