Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First half of forum unread logic #1006

Merged
merged 6 commits into from
Apr 15, 2016

Conversation

lowjoel
Copy link
Member

@lowjoel lowjoel commented Apr 15, 2016

This marks posts and topics as read when visiting. Computing the number of unread topics will be in the following PR, pending merge of aha-app/calculated_attributes#11.

@lowjoel lowjoel force-pushed the lowjoel/forum-unread branch 2 times, most recently from 34f559e to 238c5bd Compare April 15, 2016 02:05
@lowjoel lowjoel force-pushed the lowjoel/forum-unread branch from 238c5bd to 83bfba8 Compare April 15, 2016 02:27
@@ -1,11 +1,16 @@
= div_for(post, class: ['post']) do
- post_class = ['post']
- post_class << 'unread' if post.unread?(current_user)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better put this inside a helper ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, done. Thanks!

@lowjoel lowjoel force-pushed the lowjoel/forum-unread branch from 83bfba8 to 66d6151 Compare April 15, 2016 04:51
@allenwq
Copy link
Member

allenwq commented Apr 15, 2016

@lowjoel Build failed

@lowjoel
Copy link
Member Author

lowjoel commented Apr 15, 2016

@allenwq random failure, it passes now.

@allenwq allenwq merged commit b41ad59 into Coursemology:master Apr 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants