WIP changed CommentsController#index; temporary view for all_comments

This commit is contained in:
raluka 2015-09-07 18:56:26 +02:00
parent 7ba3cfd473
commit 1addae9cd9
6 changed files with 15 additions and 54 deletions

View file

@ -1,19 +1,2 @@
.panel.well
-@conferences_available.each do |conference|
-conference.events.each do |event|
- if event.comment_threads.find_since_last_login(current_user).count > 0
%panel
%panel.panel-header
%h4.title
%ul.list-unstyled
%li= link_to event.title, admin_conference_event_path(event.conference.short_title, event)
%li= conference.title
%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
Some text