From 4dbf42d970a99bd5c1805a65d60aeee709c46ec2 Mon Sep 17 00:00:00 2001 From: Faldrian Date: Sun, 16 Nov 2014 15:06:08 +0100 Subject: [PATCH] added different behaviour depending on existence of posts --- app/views/shared/_stream_more_button.mobile.haml | 7 ++++++- config/locales/diaspora/en.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_stream_more_button.mobile.haml b/app/views/shared/_stream_more_button.mobile.haml index 5195a9354..20f5f879a 100644 --- a/app/views/shared/_stream_more_button.mobile.haml +++ b/app/views/shared/_stream_more_button.mobile.haml @@ -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") diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index d0e76e4b1..9826d2716 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -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: