LearnPAd/learnpad

View on GitHub
lp-collaborative-workspace/lp-cw-component/lp-cw-component-ui/src/main/resources/LPUI/DocsPanel.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<xwikidoc version="1.2" reference="LPUI.DocsPanel" locale="">
  <web>LPUI</web>
  <name>DocsPanel</name>
  <language/>
  <defaultLanguage/>
  <translation>0</translation>
  <creator>xwiki:XWiki.Admin</creator>
  <creationDate>1464012320000</creationDate>
  <parent>LPUI.WebHome</parent>
  <author>xwiki:XWiki.Admin</author>
  <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
  <date>1465231649000</date>
  <contentUpdateDate>1465226091000</contentUpdateDate>
  <version>1.1</version>
  <title>DocsPanel</title>
  <comment/>
  <minorEdit>false</minorEdit>
  <syntaxId>xwiki/2.1</syntaxId>
  <hidden>true</hidden>
  <content/>
  <object>
    <name>LPUI.DocsPanel</name>
    <number>0</number>
    <className>Panels.PanelClass</className>
    <guid>9b6bb96d-a75f-4580-adf2-5af80b17a3bf</guid>
    <class>
      <name>Panels.PanelClass</name>
      <customClass/>
      <customMapping/>
      <defaultViewSheet/>
      <defaultEditSheet/>
      <defaultWeb/>
      <nameField/>
      <validationScript/>
      <category>
        <cache>0</cache>
        <disabled>0</disabled>
        <displayType>select</displayType>
        <multiSelect>0</multiSelect>
        <name>category</name>
        <number>5</number>
        <prettyName>Category</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <unmodifiable>0</unmodifiable>
        <values>Information|Navigation|Tools|Administration|Other</values>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </category>
      <content>
        <disabled>0</disabled>
        <editor>Text</editor>
        <name>content</name>
        <number>4</number>
        <prettyName>Content</prettyName>
        <rows>25</rows>
        <size>120</size>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
      </content>
      <description>
        <disabled>0</disabled>
        <editor>Text</editor>
        <name>description</name>
        <number>3</number>
        <prettyName>Description</prettyName>
        <rows>5</rows>
        <size>40</size>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
      </description>
      <name>
        <disabled>0</disabled>
        <name>name</name>
        <number>1</number>
        <prettyName>Name</prettyName>
        <size>40</size>
        <unmodifiable>0</unmodifiable>
        <classType>com.xpn.xwiki.objects.classes.StringClass</classType>
      </name>
      <type>
        <cache>0</cache>
        <disabled>0</disabled>
        <displayType>select</displayType>
        <multiSelect>0</multiSelect>
        <name>type</name>
        <number>2</number>
        <prettyName>Panel type</prettyName>
        <relationalStorage>0</relationalStorage>
        <separator> </separator>
        <separators> ,|</separators>
        <size>1</size>
        <unmodifiable>0</unmodifiable>
        <values>view|edit</values>
        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
      </type>
    </class>
    <property>
      <category>Navigation</category>
    </property>
    <property>
      <content>{{velocity}}
#panelheader(${services.localization.render('LPDocs.WebHome.title')})
#set ($docsReference = $services.model.createDocumentReference($xcontext.database, 'LPDocs', 'WebHome'))
#set ($docsLabel = ${services.localization.render('LPDocs.Abstract.linkLabel')})
#set ($panelAbstract = ${services.localization.render('LPDocs.Abstract.content')}) 

image:icon:help $panelAbstract [[$docsLabel&gt;&gt;$docsReference]]

==== ${services.localization.render('LPDocs.Tours.title')} ====
#set($query = "from doc.object(TourCode.TourClass) as tour where doc.fullName &lt;&gt; 'TourCode.TourTemplate' and tour.isActive = 1  order by doc.name asc")##
##
#set($tourList = $services.query.xwql($query).execute())##
##
#if(!$tourList.isEmpty())
#foreach($tour in $tourList)
#set($tourItem = $xwiki.getDocument($tour))##
#set($tourObj=$tourItem.getObject('TourCode.TourClass'))##
#set ($tourLabel = "${tourItem.name}")##
#set ($tourLink = "${tourObj.targetPage}")
* image:icon:help ${services.localization.render('LPDocs.Tours.linkLabel')} : [[$tourLabel&gt;&gt;$tourLink||queryString="startTour=true" title="$tourObj.description"]]
#end
#end

==== ${services.localization.render('LPDocs.HelpDesk.title')} ====
#set ($helpdeskAbstract = ${services.localization.render('LPDocs.HelpDesk.content')}) 
#set ($mailLabel = ${services.localization.render('LPDocs.HelpDesk.label')})
#set ($mailSubject = ${services.localization.render('LPDocs.HelpDesk.mailSubject')})

image:icon:help $helpdeskAbstract [[$mailLabel&gt;&gt;mailto:info@learnpad.eu?subject=$mailSubject]]

#panelfooter()
{{/velocity}}
</content>
    </property>
    <property>
      <description>Access to the Documentation about the Learn PAd concepts</description>
    </property>
    <property>
      <name>Docs</name>
    </property>
    <property>
      <type>view</type>
    </property>
  </object>
</xwikidoc>