ToastFreeware
/
toast
/
alpenzoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76c3ab2
)
Adjusted template for animal properties like {'size_cm': 70, 'names': ['Alfons',...
master
author
Philipp Spitzer
<philipp@spitzer.priv.at>
Wed, 5 Aug 2015 19:42:48 +0000
(21:42 +0200)
committer
Philipp Spitzer
<philipp@spitzer.priv.at>
Wed, 5 Aug 2015 19:42:48 +0000
(21:42 +0200)
animals/genshi/animals/detail.html
patch
|
blob
|
history
diff --git
a/animals/genshi/animals/detail.html
b/animals/genshi/animals/detail.html
index 2bc5bbe310c478b24b26eda0b320898679d20bd6..64510461aee4d8d1859a1dd2db25eefedba50370 100644
(file)
--- a/
animals/genshi/animals/detail.html
+++ b/
animals/genshi/animals/detail.html
@@
-51,6
+51,11
@@
<h4>${animal.name_german} Eckdaten</h4>
<ul>
<li>Größe: ${animal.size_cm} cm</li>
+ <li>Größe JSON: ${animal.properties.size_cm} cm</li>
+ <li>Anzahl der Tiere: ${len(animal.properties.names)}</li>
+ <ul>
+ <li py:for="name in animal.properties.names">${name}</li>
+ </ul>
<li>Essbar: ${'Ja' if animal.edible else 'Nein :-('}</li>
</ul>