mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 20:20:04 +08:00
FEATURE: enable users to choose unseen as a default view (#14242)
This commit is contained in:
parent
34ff7bfeeb
commit
8f9e692e41
app
@ -26,6 +26,7 @@ const USER_HOMES = {
|
|||||||
4: "new",
|
4: "new",
|
||||||
5: "top",
|
5: "top",
|
||||||
6: "bookmarks",
|
6: "bookmarks",
|
||||||
|
7: "unseen",
|
||||||
};
|
};
|
||||||
|
|
||||||
const TEXT_SIZES = ["smallest", "smaller", "normal", "larger", "largest"];
|
const TEXT_SIZES = ["smallest", "smaller", "normal", "larger", "largest"];
|
||||||
|
@ -168,6 +168,7 @@ class UserOption < ActiveRecord::Base
|
|||||||
when 4 then "new"
|
when 4 then "new"
|
||||||
when 5 then "top"
|
when 5 then "top"
|
||||||
when 6 then "bookmarks"
|
when 6 then "bookmarks"
|
||||||
|
when 7 then "unseen"
|
||||||
else SiteSetting.homepage
|
else SiteSetting.homepage
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user