mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
added logic for available conferences based on roles in comments_controller.rb
This commit is contained in:
parent
52a503afd2
commit
800a41b3f9
5 changed files with 48 additions and 44 deletions
|
|
@ -1,16 +1,18 @@
|
|||
.panel.well
|
||||
-@ordered_events.each do |event|
|
||||
- if event.comment_threads.count > 0
|
||||
%panel
|
||||
%panel.panel-header
|
||||
%h4.title
|
||||
= link_to event.title, admin_conference_event_path(event.conference.short_title, event)
|
||||
-@conferences_available.each do |conference|
|
||||
-conference.events.each do |event|
|
||||
- if event.comment_threads.count > 0
|
||||
%panel
|
||||
%panel.panel-header
|
||||
%h4.title
|
||||
= link_to event.title, admin_conference_event_path(event.conference.short_title, event)
|
||||
= 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
|
||||
-event.comment_threads.order(created_at: :desc).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