-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.html
96 lines (94 loc) · 1.82 KB
/
info.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#if (!$singleEntity || $singleEntity == ${tr.f_v($entity.name)})
----- project_info.html -----
<table border="1">
<tr>
<th>
Encja
</th>
<th>
Wlasciwosci
</th>
<th>
Rodzicow<br>(nie slownikow)
</th>
<th>
Dzieci
</th>
<th>
Rodzice
</th>
<th>
Przodkowie
</th>
</tr>
#foreach( $entity in $application.entities )
#if (!$singleEntity || $singleEntity == ${tr.f_v($entity.name)})
#if (!$entity.dictionary)
<tr>
<td>
$entity.name
#set ($workflow = "FALSE")
#foreach( $relation in $entity.childRelations )
#if ($relation.parentEntity.dictionary)
#foreach( $relation2 in $relation.parentEntity.childRelations )
#if ($relation2.parentEntity.name == $relation.parentEntity.name)
#set ($workflow = "TRUE")
#end
#end
#end
#end
#if ($workflow == "TRUE")
WF
#end
</td>
<td>
$entity.properties.size()
</td>
<td>
## $entity.childRelations.size()
#set ($count = 0)
#foreach( $relation in $entity.childRelations )
#if ($relation.parentEntity.dictionary)
#set ($count = $count + 0)
#else
#set ($count = $count + 1)
#end
#end
## ($count)
$count
</td>
<td>
$entity.parentRelations.size()
#set ($children = '')
#foreach( $relation in $entity.parentRelations )
#if ($relation.childEntity.dictionary)
#set ($children = $children + 0)
#else
#set ($children = "$children '$relation.childEntity.name'")
#end
#end
($children)
</td>
<td>
$entity.childRelations.size()
#set ($parents = '')
#foreach( $relation in $entity.childRelations )
#if ($relation.parentEntity.dictionary)
#set ($parents = $parents + 0)
#else
#set ($parents = "$parents '$relation.parentEntity.name'")
#end
#end
($parents)
</td>
<td>
## #foreach ($ancestor in $entity.allAncestors)
## $ancestor.name $ancestor.getChildLevel("$entity.name")<br/>
## #end
</td>
<tr>
#end
#end
#end
</table>
#end