diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-10-28 22:44:12 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-10-28 22:44:12 +0100 |
commit | d552bd7b8fbc9ff8b81067a05eba53207cb8c91a (patch) | |
tree | 928795654e62e74828cf2a484ba4e79678574248 /ratatoeskr/templates/src/systemtemplates/repos.html | |
parent | a88de608dde6e0df48a122d72f112b5b92ad15ac (diff) | |
download | ratatoeskr-cms-d552bd7b8fbc9ff8b81067a05eba53207cb8c91a.tar.gz ratatoeskr-cms-d552bd7b8fbc9ff8b81067a05eba53207cb8c91a.tar.bz2 ratatoeskr-cms-d552bd7b8fbc9ff8b81067a05eba53207cb8c91a.zip |
Using the new ste:else in ste:foreach feature.
Diffstat (limited to 'ratatoeskr/templates/src/systemtemplates/repos.html')
-rw-r--r-- | ratatoeskr/templates/src/systemtemplates/repos.html | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/repos.html b/ratatoeskr/templates/src/systemtemplates/repos.html index 31de6a5..1da92ea 100644 --- a/ratatoeskr/templates/src/systemtemplates/repos.html +++ b/ratatoeskr/templates/src/systemtemplates/repos.html @@ -23,25 +23,19 @@ </tr> </thead> <tbody> - <ste:set var="repos_n"><ste:arraylen array="repos" /></ste:set> - <ste:if> - ~{$repos_n|gt|0} - <ste:then> - <ste:foreach array="repos" value="repo"> - <tr> - <td><input type="checkbox" name="repos_multiselect[]" value="$repo[id]" /></td> - <td><ste:escape>$repo[name]</ste:escape></td> - <td><ste:escape>$repo[description]</ste:escape></td> - <td><ste:escape>$repo[baseurl]</ste:escape></td> - </tr> - </ste:foreach> - </ste:then> + <ste:foreach array="repos" value="repo"> + <tr> + <td><input type="checkbox" name="repos_multiselect[]" value="$repo[id]" /></td> + <td><ste:escape>$repo[name]</ste:escape></td> + <td><ste:escape>$repo[description]</ste:escape></td> + <td><ste:escape>$repo[baseurl]</ste:escape></td> + </tr> <ste:else> <tr> <td colspan="4" style="font-style: italic; text-align: center;"><ste:get_translation for="no_repos" /></td> </tr> </ste:else> - </ste:if> + </ste:foreach> </tbody> </table> <div> |