Use default loop variable.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Oct 2010 08:30:35 +0000 (10:30 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Oct 2010 08:30:35 +0000 (10:30 +0200)
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/index.html

index 8e528ac..8b41fdb 100644 (file)
@@ -1,4 +1,4 @@
-<div id="<% post.id|html>" class="post <%if postLoop.last>last<%/if>">
+<div id="<% post.id|html>" class="post <%if loop.last>last<%/if>">
        <div>
                <div class="author profile-link"><a href="viewSone.html?sone=<% post.sone.id|html>"><% post.sone.niceName|html></a></div>
                <div class="text"><% post.text|html></div>
index 888cdb2..4c21bf6 100644 (file)
@@ -4,7 +4,7 @@
 
        <div id="posts">
                <%include include/pagination.html>
-               <%foreach posts post postLoop>
+               <%foreach posts post>
                        <%include include/viewPost.html>
                <%foreachelse>
                        <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>