mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Add no-content message for user/activity/replies, fix no-content display
This commit is contained in:
parent
f3388043db
commit
c01dc26ea6
3 changed files with 6 additions and 4 deletions
|
@ -2,5 +2,6 @@ import UserActivityStreamRoute from "discourse/routes/user-activity-stream";
|
||||||
import UserAction from "discourse/models/user-action";
|
import UserAction from "discourse/models/user-action";
|
||||||
|
|
||||||
export default UserActivityStreamRoute.extend({
|
export default UserActivityStreamRoute.extend({
|
||||||
userActionType: UserAction.TYPES["posts"]
|
userActionType: UserAction.TYPES["posts"],
|
||||||
|
noContentHelpKey: 'user_activity.no_replies'
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
{{#if model.noContent}}
|
{{#if model.noContent}}
|
||||||
<div class='no-content'>
|
<div class='alert alert-info'>{{{model.noContentHelp}}}</div>
|
||||||
{{{model.noContentHelp}}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{user-stream stream=model}}
|
{{user-stream stream=model}}
|
||||||
|
|
|
@ -708,6 +708,9 @@ en:
|
||||||
no_likes_given:
|
no_likes_given:
|
||||||
self: "You have not liked any posts."
|
self: "You have not liked any posts."
|
||||||
others: "No liked posts."
|
others: "No liked posts."
|
||||||
|
no_replies:
|
||||||
|
self: "You have not replied to any posts."
|
||||||
|
others: "No replies."
|
||||||
|
|
||||||
topic_flag_types:
|
topic_flag_types:
|
||||||
spam:
|
spam:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue