@@ -23,32 +23,44 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
23
THE SOFTWARE.
24
24
-->
25
25
26
- <?jelly escape-by-default =' true ' ?>
26
+ <?jelly escape-by-default =' false ' ?>
27
27
<j : jelly xmlns : j =" jelly:core" xmlns : l =" /lib/layout" >
28
- <!-- icon without link -->
29
- <j : if test =" ${it.icon != null && it.icon != '' && (it.link == null || it.link == '')}" >
30
- <span class =" ${it.cssClass}" style =" ${it.style}" >
31
- <l : icon class =" icon-sm" src =" ${it.icon}" alt =" ${it.text}" htmlTooltip =" ${it.text}" />
32
- </span >
33
- </j : if >
34
- <!-- icon with link -->
35
- <j : if test =" ${it.icon != null && it.icon != '' && it.link != null && it.link != ''}" >
36
- <span class =" ${it.cssClass}" style =" ${it.style}" >
37
- <a href =" ${it.link}" >
38
- <l : icon class =" icon-sm" src =" ${it.icon}" alt =" ${it.text}" htmlTooltip =" ${it.text}" />
39
- </a >
40
- </span >
41
- </j : if >
42
- <!-- text without link -->
43
- <j : if test =" ${(it.icon == null || it.icon == '') && (it.link == null || it.link == '')}" >
44
- <span class =" ${it.cssClass}" style =" ${it.style}" >
45
- ${it.text}
46
- </span >
47
- </j : if >
48
- <!-- text with link -->
49
- <j : if test =" ${(it.icon == null || it.icon == '') && it.link != null && it.link != ''}" >
50
- <span class =" ${it.cssClass}" style =" ${it.style}" >
51
- <a href =" ${it.link}" >${it.text}</a >
52
- </span >
53
- </j : if >
28
+ <j : choose >
29
+ <!-- icon -->
30
+ <j : when test =" ${it.icon != null && it.icon != ''}" >
31
+ <span class =" ${it.cssClass}" style =" ${it.style}" >
32
+ <j : choose >
33
+ <!-- icon with link -->
34
+ <j : when test =" ${it.link != null && it.link != ''}" >
35
+ <a href =" ${it.link}" >
36
+ <l : icon class =" icon-sm" src =" ${it.icon}" alt =" ${it.text}" htmlTooltip =" ${it.text}" />
37
+ </a >
38
+ </j : when >
39
+ <!-- icon without link -->
40
+ <j : otherwise >
41
+ <l : icon class =" icon-sm" src =" ${it.icon}" alt =" ${it.text}" htmlTooltip =" ${it.text}" />
42
+ </j : otherwise >
43
+ </j : choose >
44
+ </span >
45
+ </j : when >
46
+ <j : otherwise >
47
+ <!-- text -->
48
+ <j : if test =" ${it.text != null && it.text != ''}" >
49
+ <span class =" ${it.cssClass}" style =" ${it.style}" >
50
+ <j : choose >
51
+ <!-- text with link -->
52
+ <j : when test =" ${it.link != null && it.link != ''}" >
53
+ <a href =" ${it.link}" >
54
+ ${it.text}
55
+ </a >
56
+ </j : when >
57
+ <!-- text without link -->
58
+ <j : otherwise >
59
+ ${it.text}
60
+ </j : otherwise >
61
+ </j : choose >
62
+ </span >
63
+ </j : if >
64
+ </j : otherwise >
65
+ </j : choose >
54
66
</j : jelly >
0 commit comments