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/comments_list.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/comments_list.html')
-rw-r--r-- | ratatoeskr/templates/src/systemtemplates/comments_list.html | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/comments_list.html b/ratatoeskr/templates/src/systemtemplates/comments_list.html index 5c86a8e..8bbcda8 100644 --- a/ratatoeskr/templates/src/systemtemplates/comments_list.html +++ b/ratatoeskr/templates/src/systemtemplates/comments_list.html @@ -39,26 +39,21 @@ </tr> </thead> <tbody> - <ste:set var="comments_n"><ste:arraylen array="comments" /></ste:set> - <ste:if>~{$comments_n|gt|0} - <ste:then> - <ste:foreach array="comments" value="comment"> - <tr> - <td><input type="checkbox" name="comment_multiselect[]" value="$comment[id]" /></td> - <td>?{$comment[read_by_admin]|<ste:get_translation for="yes" />|<strong><ste:get_translation for="no" /></strong>}</td> - <td>?{$comment[visible]|<ste:get_translation for="yes" />|<ste:get_translation for="no" />}</td> - <td><em><ste:escape>$comment[excerpt]</ste:escape>...</em> <a href="$rel_path_to_root/backend/content/comments/$comment[id]"><ste:get_translation for="read_more" /></a></td> - <td>$comment[language]</td> - <td><ste:escape>$comment[author]</ste:escape></td> - <td><ste:date timestamp="$comment[date]">%Y-%m-%d %H:%M:%S</ste:date></td> - <td><a href="$rel_path_to_root/backend/content/write/<ste:escape>$comment[article]</ste:escape>"><ste:escape>$comment[article]</ste:escape></a></td> - </tr> - </ste:foreach> - </ste:then> + <ste:foreach array="comments" value="comment"> + <tr> + <td><input type="checkbox" name="comment_multiselect[]" value="$comment[id]" /></td> + <td>?{$comment[read_by_admin]|<ste:get_translation for="yes" />|<strong><ste:get_translation for="no" /></strong>}</td> + <td>?{$comment[visible]|<ste:get_translation for="yes" />|<ste:get_translation for="no" />}</td> + <td><em><ste:escape>$comment[excerpt]</ste:escape>...</em> <a href="$rel_path_to_root/backend/content/comments/$comment[id]"><ste:get_translation for="read_more" /></a></td> + <td>$comment[language]</td> + <td><ste:escape>$comment[author]</ste:escape></td> + <td><ste:date timestamp="$comment[date]">%Y-%m-%d %H:%M:%S</ste:date></td> + <td><a href="$rel_path_to_root/backend/content/write/<ste:escape>$comment[article]</ste:escape>"><ste:escape>$comment[article]</ste:escape></a></td> + </tr> <ste:else> <tr><td colspan="8" style="text-align: center"><em><ste:get_translation for="no_comments" /></em></td></tr> </ste:else> - </ste:if> + </ste:foreach> </tbody> </table> <div> |