mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
Issue#15: Added Comment Notifications: notification_emails and comments view
This commit is contained in:
parent
a73ca335a9
commit
38e8be8793
16 changed files with 155 additions and 13 deletions
16
app/views/admin/comments/_unread_comments.html.haml
Normal file
16
app/views/admin/comments/_unread_comments.html.haml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.panel.well
|
||||
-@ordered_events.each do |event|
|
||||
- if event.comment_threads.find_since_last_login(current_user).count > 0
|
||||
%panel
|
||||
%panel.panel-header
|
||||
%h4.title
|
||||
= link_to event.title, admin_conference_event_path(event.conference.short_title, event)
|
||||
%hr
|
||||
-event.comment_threads.find_since_last_login(current_user).each do |comment|
|
||||
%panel-body
|
||||
%ul.list-unstyled
|
||||
%li= comment.body
|
||||
%ul.list-inline
|
||||
%li Posted by: #{comment.user.name}
|
||||
%li Created at: #{comment.created_at}
|
||||
%hr
|
||||
Loading…
Add table
Add a link
Reference in a new issue