aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates/articles.html
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-10-28 22:44:12 +0100
committerKevin Chabowski <kevin@kch42.de>2013-10-28 22:44:12 +0100
commitd552bd7b8fbc9ff8b81067a05eba53207cb8c91a (patch)
tree928795654e62e74828cf2a484ba4e79678574248 /ratatoeskr/templates/src/systemtemplates/articles.html
parenta88de608dde6e0df48a122d72f112b5b92ad15ac (diff)
downloadratatoeskr-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/articles.html')
-rw-r--r--ratatoeskr/templates/src/systemtemplates/articles.html41
1 files changed, 18 insertions, 23 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/articles.html b/ratatoeskr/templates/src/systemtemplates/articles.html
index 764ac40..2970b7c 100644
--- a/ratatoeskr/templates/src/systemtemplates/articles.html
+++ b/ratatoeskr/templates/src/systemtemplates/articles.html
@@ -37,32 +37,27 @@
</th>
</tr></thead>
<tbody>
- <ste:set var="articles_n"><ste:arraylen array="articles" /></ste:set>
- <ste:if>~{$articles_n|gt|0}
- <ste:then>
- <ste:foreach array="articles" value="article">
- <tr>
- <td><input type="checkbox" name="article_multiselect[]" value="$article[urlname]" /></td>
- <td><a href="$rel_path_to_root/backend/content/write/$article[urlname]">$article[urlname]</a></td>
- <td>
- <ste:foreach array="article[languages]" value="lang" counter="i">
- ?{~{$i|eq|0}||, }<a href="$rel_path_to_root/backend/content/write/$article[urlname]/$lang">$lang</a>
- </ste:foreach>
- </td>
- <td><ste:date timestamp="$article[date]">%Y-%m-%d %H:%M:%S</ste:date></td>
- <td>
- <ste:foreach array="article[tags]" value="tag" counter="i">
- ?{~{$i|eq|0}||, } <ste:escape>$tag</ste:escape>
- </ste:foreach>
- </td>
- <td><ste:escape>$article[section][name]</ste:escape></td>
- </tr>
- </ste:foreach>
- </ste:then>
+ <ste:foreach array="articles" value="article">
+ <tr>
+ <td><input type="checkbox" name="article_multiselect[]" value="$article[urlname]" /></td>
+ <td><a href="$rel_path_to_root/backend/content/write/$article[urlname]">$article[urlname]</a></td>
+ <td>
+ <ste:foreach array="article[languages]" value="lang" counter="i">
+ ?{~{$i|eq|0}||, }<a href="$rel_path_to_root/backend/content/write/$article[urlname]/$lang">$lang</a>
+ </ste:foreach>
+ </td>
+ <td><ste:date timestamp="$article[date]">%Y-%m-%d %H:%M:%S</ste:date></td>
+ <td>
+ <ste:foreach array="article[tags]" value="tag" counter="i">
+ ?{~{$i|eq|0}||, } <ste:escape>$tag</ste:escape>
+ </ste:foreach>
+ </td>
+ <td><ste:escape>$article[section][name]</ste:escape></td>
+ </tr>
<ste:else>
<tr><td colspan="6" style="text-align: center;"><em><ste:get_translation for="no_articles" /></em></td></tr>
</ste:else>
- </ste:if>
+ </ste:foreach>
</tbody>
</table>
<div>