Browse files

[FIX] add basic latest post template

  • Loading branch information...
1 parent 6c32254 commit 9dbd643f3b0a3e82e6cb42773ac8f2fc7ff6e3c5 @fnagel committed Feb 18, 2014
Showing with 11 additions and 5 deletions.
  1. +11 −5 Resources/Private/Templates/Post/Latest.html
View
16 Resources/Private/Templates/Post/Latest.html
@@ -2,13 +2,19 @@
<f:section name="main">
- <f:render partial="Post/Filter" arguments="{category: category, tag: tag}" />
+ <f:render partial="Post/Filter" arguments="{category: category, tag: tag}" />
- <f:if condition="{comments}">
- <f:widget.paginate objects="{comments}" as="paginatedComments" configuration="{settings.comments.paginate}">
- <f:for each="{paginatedComments}" as="comment">
- <f:render partial="Comment/Show" arguments="{comment: comment}" />
+ <f:if condition="{posts}">
+ <f:widget.paginate objects="{posts}" as="paginatedPosts" configuration="{settings.latestPosts.paginate}">
+ <ul>
+ <f:for each="{paginatedPosts}" as="post">
+ <li>
+ <f:link.action action="show" arguments="{post.linkParameter}">
+ {post.title}
+ </f:link.action>
+ </li>
</f:for>
+ </ul>
</f:widget.paginate>
</f:if>

0 comments on commit 9dbd643

Please sign in to comment.