mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Collapse old comments when re-visiting a topic
Collapse old comments when re-visiting a topic
For users that have the "mark new comments" feature enabled, this will collapse old comments when they re-visit a topic that has new ones. It involves adding a new "individual collapse" style that only collapses a single comment and doesn't also hide all of its replies. New comments and their direct parents will stay uncollapsed, and all other comments in a path up to the root will be individually collapsed. Any branches with no expanded comments will be fully collapsed. We should probably add an indicator for how many comments are in a collapsed chain so that we can distinguish between individually collapsed ones and larger collapsed chains.merge-requests/34/head
Chad Birch
6 years ago
8 changed files with 106 additions and 11 deletions
-
8tildes/scss/modules/_comment.scss
-
8tildes/static/js/behaviors/comment-collapse-all-button.js
-
6tildes/static/js/behaviors/comment-collapse-button.js
-
2tildes/static/js/behaviors/comment-expand-all-button.js
-
1tildes/tildes/jinja.py
-
72tildes/tildes/models/comment/comment_tree.py
-
10tildes/tildes/templates/macros/comments.jinja2
-
8tildes/tildes/views/topic.py
Write
Preview
Loading…
Cancel
Save
Reference in new issue