Add comment functionality to tracks

This commit is contained in:
Rishabh Singh 2019-07-18 12:49:50 +05:30
parent 770a63e15c
commit 58208c73ac
19 changed files with 153 additions and 48 deletions

View file

@ -1,11 +1,14 @@
- @posted_comments.each do |conference, events|
- @posted_comments.each do |conference, objects|
.panel.panel-default
.panel-heading
%h4.title.panel-title= conference.title
.panel-body
- events.each do |event, comments|
- objects.each do |obj, comments|
.notifications
%h4.title= link_to event.title, admin_conference_program_event_path(event.program.conference.short_title, event)
- if obj.class.name == 'Event'
%h4.title= link_to obj.title, admin_conference_program_event_path(obj.program.conference.short_title, obj)
- if obj.class.name == 'Track'
%h4.title= link_to obj.name, admin_conference_program_track_path(obj.program.conference.short_title, obj)
%hr
- comments.each do |comment|
%h5.strong Created at: #{comment.created_at}