Changes for document OW2 IT Infrastructure Overview

From version 12.1
edited by olivier lizounat
on 2015/12/15 16:17
To version 13.1
edited by olivier lizounat
on 2015/12/15 16:20
Change comment: There is no comment for this version

Content changes

... ... @@ -1,6 +1,73 @@
1 -{{velocity}}
2 -$hasProgramming
1 +OW2 offers a number of services to OW2 projects.
2 +You can **click on each logo** to find out about the current version we operate, and the instructions for using it.
3 +
4 +{{velocity filter="none"}}
5 +
6 +#if($xwiki.hasAccessLevel('edit', $xcontext.user, $docref.fullName))
7 +(% class="createEventBoxContainer box warningmessage"%)((((% class="createEventBox" %)(((
8 +{{include reference="IT_Infrastructure.Service_Creator"/}} ))) )))
9 +#end
10 +#macro(showService $docRef)
11 +#set($docref=$xwiki.getDocument($docRef))
12 +#set($obj=$docref.getObject('IT_Infrastructure.InfrastructureServiceClass'))
13 +(% class="services" %)((((% class="serviceblock"%)((((% class="servicedesc"%)(((
14 +#if($xwiki.hasAccessLevel('edit', $xcontext.user, $docref.fullName))
15 +=== $obj.servicename [[[[image:icon:pencil]]>>path:$docref.getURL('edit')||title="Edit"]]===
16 +#else
17 +===$obj.servicename ===
18 +#end
19 +**Description:**
20 +$obj.serviceshortdescription
21 +)))(% class="servicelogo"%)((([[[[image:$!docref@$!obj.servicelogo||class="imglogo"]]>>$!docref||class='servicelink']])))(% class="servicelinkeduser"%)(((**Linked User Directory:**
22 +$obj.servicelinkeduserdirectory)))
23 +)))
24 +(% class="moredesc" style="display:none"%)(((
25 +{{box cssClass="floatinginfobox" title="**$!{docref.display('servicename')}**"}}
26 +Homepage : #if("$!{docref.display('serviceofficialurl')}"!="")[[$!docref.display('servicename')>>$!docref.display('serviceofficialurl')||target=blank ]]#else n/c #end
27 +
28 +----
29 +Documentation : #if("$!docref.display('servicedocumentation')"!="")#foreach($docs in $xwiki.split($docref.display('servicedocumentation'),','))#set($udoc=$xwiki.split($docs,'|'))[[$!udoc[0]>>$!udoc[1]||target=blank]] - #end #else n/c #end
30 +
31 +##----
32 +##Version : #if("$!{docref.display('serviceversion')}"!="")$docref.display('serviceversion')#else n/c #end
33 +
34 +----
35 +Url : #if("$!{docref.display('serviceurl')}"!="") #if($docref.display('serviceurl').conntains("http://"))[[$docref.display('serviceurl')]]#else $docref.display('serviceurl')#end #else n/c #end
36 +
37 +{{/box}}
38 +
39 +
40 +(% class="blockdescription" %)(((
41 +$docref.display('servicelongdescription')
42 +
43 +)))
44 +)))
45 +)))
46 +#end
47 +#set ($limit = 0 )
3 3 #set ($hqlquery3 = ",BaseObject as obj, IntegerProperty as published, FloatProperty as ordre where doc.fullName<>'IT_Infrastructure.InfrastructureServiceTemplate' and doc.fullName = obj.name and obj.className = 'IT_Infrastructure.InfrastructureServiceClass' and published.id.id = obj.id and published.id.name = 'published' and published.value = '1' and ordre.id.id = obj.id and ordre.id.name = 'serviceorder' order by ordre ASC")
4 4 #set ($results3 = $services.query.hql($hqlquery3).execute())
5 -$results3
50 +
51 +#foreach($item in $results3)
52 +#showService($item)
53 +#end
54 +{{html clean="false"}}
55 +<style>.services{width:100%;display:block;cursor:pointer;padding-left:20px}.services:nth-child(odd){background:#F0F0F0;border-radius:11px}.serviceblock{width:100%;display:table}.servicedesc{width:50%;min-width:50%;display:table-cell}.servicedesc h3{margin-top:0;}.servicelogo{padding-top:20px;display:table-cell;width:30%}}.servicelinkuser{width:20%;display:table-cell}.imglogo{max-height:50px;max-width:250px;}.servicelinkeduser{display:table-cell}.moredesc{padding:0 20px 15px 0;display:table}.blockdescription {background: #fafafa none repeat scroll 0 0;display: table;padding: 15px;border-radius:7px;}</style>
56 +<script>
57 +require(['jquery'],function($){
58 + $(document).ready(function(){
59 + $(".imglogo").each(function(){$( this ).prependTo($(this).closest(".servicelogo") );});
60 + $(".servicelogo p").remove();
61 + $(".services").each(function(){
62 + $( this ).click(
63 + function(){
64 + $(".moredesc").css({"display":"none"});
65 + $( this ).find(".moredesc").toggle();
66 + });
67 + });
68 + });
69 +});
70 +</script>
71 +{{/html}}
72 +
6 6 {{/velocity}}