Config for new admin page - feedback data.
Adding a new date field - last_seen for user. For now, I'll be updating/reading this field only for admin users.
New page - feedback data review. Use last_seen as a session variable so that I can keep passing it on to all admin templates. Also, set unread to 0 and update 'last_seen' for admin when he/she views the feedback data page.
Save unread_count also as a local context variable for use in templates.
Save 'last_seen' from DB doc to session variable.
All helper functions for new feedback data admin page - saving last_seen for user, getting a count of unread feedback data since 'last_seen' and another method to fetch ALL feedback data.
Showing unread badge count only when there is something unread.
New template for feedback data page. Seriously need to rethink this whole naming convention.
Adding an index to Feedback collection because we're sorting by date.
Sorting feedback data by date.
Turning off sorting for feedback data page, as we're returning sorted data from DB. Why? Because we're switching all timestamps to timeago, which can't really effectively give data for natural sort.