I think there are two scenarios and they need different messages:
latest tab is empty (I think @justin suggestion of “You’re all caught up! Ready to [start a new conversation]?” is a good one here.
New category is empty (or site is brand new, etc). This one needs more of an exhortation to create some topics so people have something to talk about, and real actual topic examples of what the category is for (other than the category description)
8 个赞
Mevo
2020 年8 月 28 日 21:17
25
How would scenario 1 happen:
codinghorror:
latest tab is empty
out of scenario 2 cases ? (EDIT: Oh, maybe by selecting TAGS !?)
There also is the “show tracked or watched topics” talked about above, but is “you’re all caught up…” the right message for this case ? (scenario 3 ?)
3 个赞
I put together a PR for this. The message is
You’re all caught up! Ready to start a new conversation?
master ← markvanlan:no-topicz
merged 07:05PM - 24 Sep 20 UTC
This message used to say "There are no topics here. That's sad." Now it is a muc… h happier message.
<img width="274" alt="Annotation 2020-09-24 085727" src="https://user-images.githubusercontent.com/16214023/94173757-3d231b00-fe49-11ea-9f71-5ce6ab05f884.png">
I added `canCreateTopicOnCategory` for `/latest` route as well.
11 个赞
有人知道 – 是否有插件、主题组件或配置设置(现在 )?
或者,是否可以通过 js.topics.none.latest 或 config/locales/client.en.yml 进行编辑?
2 个赞
pfaffman
(Jay Pfaffman)
2022 年7 月 19 日 19:27
30
只需访问 /admin/customize/site_texts 并搜索“that’s sad”。您可以将其更改为您想要的任何内容。
编辑:不过看起来“that’s sad”已经在核心中被更改了。现在看起来只是这样:
bottom:
latest: "没有更多最新主题了。"
posted: "没有更多已发布主题了。"
read: "没有更多已读主题了。"
new: "没有更多新主题了。"
unread: "没有更多未读主题了。"
unseen: "没有更多未见主题了。"
category: "没有更多 %{category} 主题了。"
tag: "没有更多 %{tag} 主题了。"
top: "没有更多热门主题了。"
bookmarks: "没有更多已收藏主题了。"
5 个赞
您还可以使用“after”伪类更改消息以适应类别:
.topic-list-bottom::after {
content: '目前没有活动';
}
.category-next-events .topic-list-bottom .footer-message {
display: none;
}
如果您的网站是多语言的,您可以添加语言伪类。
1 个赞