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,10 @@
.panel.well
-@conferences_available.each do |conference|
-conference.events.each do |event|
- if event.comment_threads.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.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
%ul
- @another_comments.each do |conference, events|
%li= conference.title
- events.each do |event, comments|
%li= event.title
- comments.each do |comment|
%li= comment.body
%li= comment.user.name
%li= comment.created_at