added pretty view for comments

This commit is contained in:
raluka 2015-09-10 11:46:49 +02:00
parent 21c10166ec
commit 208478ff2d
3 changed files with 45 additions and 27 deletions

View file

@ -1,10 +1,16 @@
.panel.well - @comments.each do |conference, events|
%ul .well
- @comments.each do |conference, events| %p.h4= conference.title
%i.li= conference.title
- events.each do |event, comments| - events.each do |event, comments|
%b.li= event.title %h3.title
- comments.each do |comment| = link_to event.title, admin_conference_event_path(event.conference.short_title, event)
%li= comment.body %body
%li= comment.user.name - comments.each do |comment|
%li= comment.created_at %hr
%ul.list-unstyled
%ul.list-inline
%li
%h5.strong Posted by: #{comment.user.name}
%li
%h5.strong Created at: #{comment.created_at}
%li= comment.body

View file

@ -1,10 +1,16 @@
.panel.well - @posted_comments.each do |conference, events|
%ul .well
- @posted_comments.each do |conference, events| %p.h4= conference.title
%i.li= conference.title
- events.each do |event, comments| - events.each do |event, comments|
%b.li= event.title %h3.title
- comments.each do |comment| = link_to event.title, admin_conference_event_path(event.conference.short_title, event)
%li= comment.body %body
%li= comment.user.name - comments.each do |comment|
%li= comment.created_at %hr
%ul.list-unstyled
%ul.list-inline
%li
%h5.strong Posted by: #{comment.user.name}
%li
%h5.strong Created at: #{comment.created_at}
%li= comment.body

View file

@ -1,10 +1,16 @@
.panel.well - @unread_comments.each do |conference, events|
%ul .well
- @unread_comments.each do |conference, events| %p.h4= conference.title
%i.li= conference.title
- events.each do |event, comments| - events.each do |event, comments|
%b.li= event.title %h3.title
- comments.each do |comment| = link_to event.title, admin_conference_event_path(event.conference.short_title, event)
%li= comment.body %body
%li= comment.user.name - comments.each do |comment|
%li= comment.created_at %hr
%ul.list-unstyled
%ul.list-inline
%li
%h5.strong Posted by: #{comment.user.name}
%li
%h5.strong Created at: #{comment.created_at}
%li= comment.body