added different behaviour depending on existence of posts

This commit is contained in:
Faldrian 2014-11-16 15:06:08 +01:00
parent 21806a2c9b
commit 4dbf42d970
2 changed files with 7 additions and 1 deletions

View file

@ -3,8 +3,13 @@
%a.more-link.paginate{:href => next_page_path}
%h1
= t("more")
-else
-elsif params[:max_time].present?
#pagination
%div.no-more-posts
%h2
= t("stream_helper.no_more_posts")
-else
#pagination
%div.no-more-posts
%h2
= t("stream_helper.no_posts_yet")

View file

@ -1189,6 +1189,7 @@ en:
other: "Show %{count} more comments"
hide_comments: "Hide all comments"
no_more_posts: "You have reached the end of the stream."
no_posts_yet: "There are no posts yet."
tags:
show: