mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
Strip confusing bookmark styling
This commit is contained in:
parent
78378c7ade
commit
4c55dc0903
@ -198,18 +198,13 @@ Discourse.PostMenuView = Discourse.View.extend({
|
|||||||
|
|
||||||
var iconClass = 'read-icon',
|
var iconClass = 'read-icon',
|
||||||
buttonClass = 'bookmark',
|
buttonClass = 'bookmark',
|
||||||
topic = post.get('topic'),
|
|
||||||
tooltip;
|
tooltip;
|
||||||
|
|
||||||
if (post.get('bookmarked')) {
|
if (post.get('bookmarked')) {
|
||||||
iconClass += ' bookmarked';
|
iconClass += ' bookmarked';
|
||||||
buttonClass += ' bookmarked';
|
buttonClass += ' bookmarked';
|
||||||
tooltip = I18n.t('bookmarks.created');
|
tooltip = I18n.t('bookmarks.created');
|
||||||
} else if (topic && topic.get('last_read_post_number') === post.get('post_number')) {
|
|
||||||
iconClass += ' last-read';
|
|
||||||
tooltip = I18n.t('bookmarks.last_read');
|
|
||||||
} else {
|
} else {
|
||||||
iconClass += (post.get('read') ? ' seen' : ' unseen');
|
|
||||||
tooltip = I18n.t('bookmarks.not_bookmarked');
|
tooltip = I18n.t('bookmarks.not_bookmarked');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user