Add no-content message for user/activity/replies, fix no-content display

This commit is contained in:
minusfive 2017-08-24 12:49:21 -04:00 committed by Robin Ward
parent f3388043db
commit c01dc26ea6
3 changed files with 6 additions and 4 deletions

View File

@ -2,5 +2,6 @@ import UserActivityStreamRoute from "discourse/routes/user-activity-stream";
import UserAction from "discourse/models/user-action";
export default UserActivityStreamRoute.extend({
userActionType: UserAction.TYPES["posts"]
userActionType: UserAction.TYPES["posts"],
noContentHelpKey: 'user_activity.no_replies'
});

View File

@ -1,6 +1,4 @@
{{#if model.noContent}}
<div class='no-content'>
{{{model.noContentHelp}}}
</div>
<div class='alert alert-info'>{{{model.noContentHelp}}}</div>
{{/if}}
{{user-stream stream=model}}

View File

@ -708,6 +708,9 @@ en:
no_likes_given:
self: "You have not liked any posts."
others: "No liked posts."
no_replies:
self: "You have not replied to any posts."
others: "No replies."
topic_flag_types:
spam: