Adjusted template for animal properties like {'size_cm': 70, 'names': ['Alfons',...
[toast/alpenzoo.git] / animals / genshi / animals / detail.html
index 2bc5bbe310c478b24b26eda0b320898679d20bd6..64510461aee4d8d1859a1dd2db25eefedba50370 100644 (file)
           <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>