mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 21:54:06 +00:00
WIP changed CommentsController#index; temporary view for all_comments
This commit is contained in:
parent
7ba3cfd473
commit
1addae9cd9
6 changed files with 15 additions and 54 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue