From d552bd7b8fbc9ff8b81067a05eba53207cb8c91a Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 28 Oct 2013 22:44:12 +0100 Subject: Using the new ste:else in ste:foreach feature. --- .../templates/src/systemtemplates/articles.html | 41 ++++++++++------------ .../src/systemtemplates/comments_list.html | 29 +++++++-------- .../templates/src/systemtemplates/image_list.html | 25 ++++++------- .../templates/src/systemtemplates/pluginlist.html | 30 +++++++--------- .../templates/src/systemtemplates/repos.html | 22 +++++------- 5 files changed, 60 insertions(+), 87 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 @@ - - ~{$articles_n|gt|0} - - - - - $article[urlname] - - - ?{~{$i|eq|0}||, }$lang - - - %Y-%m-%d %H:%M:%S - - - ?{~{$i|eq|0}||, } $tag - - - $article[section][name] - - - + + + + $article[urlname] + + + ?{~{$i|eq|0}||, }$lang + + + %Y-%m-%d %H:%M:%S + + + ?{~{$i|eq|0}||, } $tag + + + $article[section][name] + - +
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 @@ - - ~{$comments_n|gt|0} - - - - - ?{$comment[read_by_admin]||} - ?{$comment[visible]||} - $comment[excerpt]... - $comment[language] - $comment[author] - %Y-%m-%d %H:%M:%S - $comment[article] - - - + + + + ?{$comment[read_by_admin]||} + ?{$comment[visible]||} + $comment[excerpt]... + $comment[language] + $comment[author] + %Y-%m-%d %H:%M:%S + $comment[article] + - +
diff --git a/ratatoeskr/templates/src/systemtemplates/image_list.html b/ratatoeskr/templates/src/systemtemplates/image_list.html index fe600aa..0674f94 100644 --- a/ratatoeskr/templates/src/systemtemplates/image_list.html +++ b/ratatoeskr/templates/src/systemtemplates/image_list.html @@ -26,24 +26,19 @@ - - ~{$images_n|gt|0} - - - - - - $image[name] - - Markdown - HTML - STE - - - - + + + + + $image[name] + + Markdown - HTML - STE + + - +
diff --git a/ratatoeskr/templates/src/systemtemplates/pluginlist.html b/ratatoeskr/templates/src/systemtemplates/pluginlist.html index 5d88fb4..85ad71a 100644 --- a/ratatoeskr/templates/src/systemtemplates/pluginlist.html +++ b/ratatoeskr/templates/src/systemtemplates/pluginlist.html @@ -19,27 +19,21 @@ - - - ~{$plugins_n|gt|0} - - - - - $p[name] - $p[versiontext] - ?{$p[active]||} - $p[description] - $p[author] - ?{$p[web]|$p[web]|} - ?{$p[help]||} - - - + + + + $p[name] + $p[versiontext] + ?{$p[active]||} + $p[description] + $p[author] + ?{$p[web]|$p[web]|} + ?{$p[help]||} + - +
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 @@ - - - ~{$repos_n|gt|0} - - - - - $repo[name] - $repo[description] - $repo[baseurl] - - - + + + + $repo[name] + $repo[description] + $repo[baseurl] + - +
-- cgit v1.2.3-70-g09d2