Show hint if some posts could not be shown.
[Sone.git] / src / main / resources / templates / bookmarks.html
index ddf2bfc..af592db 100644 (file)
@@ -7,10 +7,20 @@
        <div id="posts">
                <%include include/pagination.html>
                <%foreach posts post>
-                       <%include include/viewPost.html>
-               <%foreachelse>
-                       <p><%= Page.Bookmarks.Text.NoBookmarks|l10n|html></p>
+                       <%if post.loaded>
+                               <%= true|store key=postShown>
+                               <%include include/viewPost.html>
+                       <%else>
+                               <%= true|store key=postNotLoaded>
+                       <%/if>
                <%/foreach>
+               <%if postNotLoaded>
+                       <p><%= Page.Bookmarks.Text.PostsNotLoaded|l10n|html></p>
+               <%else>
+                       <%if !postShown>
+                               <p><%= Page.Bookmarks.Text.NoBookmarks|l10n|html></p>
+                       <%/if>
+               <%/if>
                <%include include/pagination.html>
        </div>