mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +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,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue