osem-fcy/app/views/admin/questions/show.html.haml
2016-01-10 18:59:47 +02:00

25 lines
679 B
Text

.container
.row
.col-md-12
.page-header
%h1= @question.title
- @question.answers.each do |answer|
= answer.title
(#{answer.sum_replies @question, @conference})
.row
.col-md-12
%table.table.table-border.table-hover.datatable#question_users
%thead
%th Name
%th Username
%th Email
%th Answer
%tbody
- @registrations.each do |registration|
%tr
%td= registration.name
%td= registration.username
%td= registration.email
%td= registration.qanswers.find_by(question: @question).answer.title