added different behaviour depending on existence of posts
This commit is contained in:
parent
21806a2c9b
commit
4dbf42d970
2 changed files with 7 additions and 1 deletions
|
|
@ -3,8 +3,13 @@
|
||||||
%a.more-link.paginate{:href => next_page_path}
|
%a.more-link.paginate{:href => next_page_path}
|
||||||
%h1
|
%h1
|
||||||
= t("more")
|
= t("more")
|
||||||
-else
|
-elsif params[:max_time].present?
|
||||||
#pagination
|
#pagination
|
||||||
%div.no-more-posts
|
%div.no-more-posts
|
||||||
%h2
|
%h2
|
||||||
= t("stream_helper.no_more_posts")
|
= t("stream_helper.no_more_posts")
|
||||||
|
-else
|
||||||
|
#pagination
|
||||||
|
%div.no-more-posts
|
||||||
|
%h2
|
||||||
|
= t("stream_helper.no_posts_yet")
|
||||||
|
|
|
||||||
|
|
@ -1189,6 +1189,7 @@ en:
|
||||||
other: "Show %{count} more comments"
|
other: "Show %{count} more comments"
|
||||||
hide_comments: "Hide all comments"
|
hide_comments: "Hide all comments"
|
||||||
no_more_posts: "You have reached the end of the stream."
|
no_more_posts: "You have reached the end of the stream."
|
||||||
|
no_posts_yet: "There are no posts yet."
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
show:
|
show:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue