updated rails to 4.2.4
This commit is contained in:
parent
37697517df
commit
42e8bb11ea
55 changed files with 766 additions and 365 deletions
12
app/views/admin/comments/_all_comments.html.haml
Normal file
12
app/views/admin/comments/_all_comments.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
- @comments.each do |conference, events|
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h4.title.panel-title= conference.title
|
||||
.panel-body
|
||||
- events.each do |event, comments|
|
||||
.notifications
|
||||
%h4.title= link_to event.title, admin_conference_event_path(event.conference.short_title, event)
|
||||
%hr
|
||||
- comments.each do |comment|
|
||||
%h5.strong Posted by: #{comment.user.name} | Created at: #{comment.created_at}
|
||||
%p= comment.body
|
||||
12
app/views/admin/comments/_posted_comments.html.haml
Normal file
12
app/views/admin/comments/_posted_comments.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
- @posted_comments.each do |conference, events|
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h4.title.panel-title= conference.title
|
||||
.panel-body
|
||||
- events.each do |event, comments|
|
||||
.notifications
|
||||
%h4.title= link_to event.title, admin_conference_event_path(event.conference.short_title, event)
|
||||
%hr
|
||||
- comments.each do |comment|
|
||||
%h5.strong Created at: #{comment.created_at}
|
||||
%p= comment.body
|
||||
12
app/views/admin/comments/_unread_comments.html.haml
Normal file
12
app/views/admin/comments/_unread_comments.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
- @unread_comments.each do |conference, events|
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h4.title.panel-title= conference.title
|
||||
.panel-body
|
||||
- events.each do |event, comments|
|
||||
.notifications
|
||||
%h4.title= link_to event.title, admin_conference_event_path(event.conference.short_title, event)
|
||||
%hr
|
||||
- comments.each do |comment|
|
||||
%h5.strong Posted by: #{comment.user.name} | Created at: #{comment.created_at}
|
||||
%p= comment.body
|
||||
24
app/views/admin/comments/index.html.haml
Normal file
24
app/views/admin/comments/index.html.haml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
%h1 Comments
|
||||
%br
|
||||
.row
|
||||
.col-md-12
|
||||
%ul.nav.nav-tabs#commentsTable
|
||||
%li.active
|
||||
%a{:href=>"#unread_comments", "data-toggle"=>"tab"}
|
||||
%span.fa.fa-comment
|
||||
Unread
|
||||
%li
|
||||
%a{:href=>"#posted_comments", "data-toggle"=>"tab"}
|
||||
%span.fa.fa-pencil
|
||||
Posted
|
||||
%li
|
||||
%a{:href=>"#all_comments", "data-toggle"=>"tab"}
|
||||
%span.fa.fa-comments-o
|
||||
All
|
||||
.tab-content
|
||||
.tab-pane.active#unread_comments
|
||||
= render partial: 'unread_comments'
|
||||
.tab-pane#posted_comments
|
||||
= render partial: 'posted_comments'
|
||||
.tab-pane#all_comments
|
||||
= render partial: 'all_comments'
|
||||
Loading…
Add table
Add a link
Reference in a new issue