Update year in copyright lines
[Sone.git] / src / main / resources / templates / bookmarks.html
index 315a5e1..ef2cf68 100644 (file)
@@ -5,22 +5,15 @@
        <h1><%= Page.Bookmarks.Page.Title|l10n|html></h1>
 
        <div id="posts">
-               <%include include/pagination.html>
+               <%include include/pagination.html pageParameter==page>
                <%foreach posts post>
-                       <%if post.loaded>
-                               <%= true|store key=postShown parent=true>
-                               <%include include/viewPost.html>
-                       <%else>
-                               <%= true|store key=postNotLoaded parent=true>
-                       <%/if>
+                       <%include include/viewPost.html>
                <%/foreach>
-               <%include include/pagination.html>
-               <%if postNotLoaded>
-                       <p><%= Page.Bookmarks.Text.PostsNotLoaded|l10n|html></p>
-               <%else>
-                       <%if !postShown>
-                               <p><%= Page.Bookmarks.Text.NoBookmarks|l10n|html></p>
-                       <%/if>
+               <%include include/pagination.html pageParameter==page>
+               <%if postsNotLoaded>
+                       <p><%= Page.Bookmarks.Text.PostsNotLoaded|l10n|html|replace needle=='{link}' replacement=='<a href="unbookmark.html?post=allNotLoaded">'|replace needle=='{/link}' replacement=='</a>'></p>
+               <%elseif posts.empty>
+                       <p><%= Page.Bookmarks.Text.NoBookmarks|l10n|html></p>
                <%/if>
        </div>