Wiki source code of Not Defined
Last modified by Vincent Massol on 2025/06/12 10:48
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
1.1 | 1 | {{velocity}} |
| |
41.2 | 2 | #set($discard = $xwiki.ssx.use("XWiki.ReferenceSheet")) |
![]() |
15.2 | 3 | #set($object = $doc.getObject("XWiki.ReferenceClass")) |
![]() |
48.3 | 4 | #set($editMode = $context.action == "edit" || $context.action == "inline") |
![]() |
1.1 | 5 | |
![]() |
48.3 | 6 | #if ($editMode) |
![]() |
4.1 | 7 | {{info}}In order to insert your own image, add it as an attachment at the bottom of the page when viewing the page.{{/info}} |
![]() |
13.1 | 8 | Project name: $doc.display("Project") |
![]() |
1.1 | 9 | #end |
| 10 | |||
| |
41.2 | 11 | (%class="row reference"%)((( |
| 12 | (%class="col-xs-12 col-sm-6 pull-right snapshot"%)((( | ||
![]() |
20.1 | 13 | #if ($doc.attachmentList.size() > 0) |
| 14 | #foreach ($attach in $doc.attachmentList) | ||
![]() |
48.2 | 15 | #if ($attach.isImage()) |
| 16 | #set ($url = $object.getProperty('URL').getValue().trim()) | ||
| 17 | #if ($url != "") | ||
| 18 | [[[[image:${attach.filename}||class="img-thumbnail"]]>>${url}]] | ||
| 19 | #else | ||
| 20 | [[image:${attach.filename}||class="img-thumbnail"]] | ||
| 21 | #end | ||
![]() |
34.1 | 22 | #end |
![]() |
20.1 | 23 | #end |
| 24 | #else | ||
| |
44.2 | 25 | [[image:[email protected]||class="img-thumbnail"]] |
![]() |
20.1 | 26 | #end |
| 27 | ))) | ||
| |
41.2 | 28 | |
| 29 | (%class="col-xs-12 col-sm-6 summary"%)((( | ||
![]() |
1.1 | 30 | == General Information |
| 31 | |||
![]() |
48.3 | 32 | #macro (displayProperty $propertyName $propertyId) |
| 33 | ; $propertyName | ||
| 34 | #if($editMode) | ||
| 35 | : $doc.display($propertyId) | ||
| 36 | #else | ||
| 37 | #set ($display = $object.getProperty($propertyId).getValue()) | ||
| 38 | #if ("$!display" == '') | ||
| 39 | #set ($display = "Not provided") | ||
![]() |
40.1 | 40 | #end |
![]() |
48.3 | 41 | : $display |
| 42 | #end | ||
![]() |
35.2 | 43 | #end |
![]() |
48.3 | 44 | |
| 45 | #displayProperty('Organization', 'Organization') | ||
| 46 | #displayProperty('DevelopedBy', 'DevelopedBy') | ||
| 47 | #displayProperty('Contact', 'Contact') | ||
| 48 | #displayProperty('URL', 'URL') | ||
![]() |
3.1 | 49 | ))) |
| |
41.2 | 50 | (%class="col-xs-12 col-sm-6"%)((( |
![]() |
14.1 | 51 | == Usage == |
![]() |
1.1 | 52 | $doc.display("Usage") |
| 53 | |||
![]() |
14.1 | 54 | == Description == |
![]() |
1.1 | 55 | $doc.display("Description") |
![]() |
3.1 | 56 | ))) |
| 57 | ))) | ||
![]() |
1.1 | 58 | {{/velocity}} |
