fix stuff

This commit is contained in:
Andreas N 2014-12-19 22:56:16 +01:00
parent e9985ed0aa
commit f7e35a3977
2 changed files with 7 additions and 7 deletions

View File

@ -2,13 +2,13 @@
.media .media
.media-body .media-body
%h6.media-heading.text-muted.answerbox--question-user %h6.media-heading.text-muted.answerbox--question-user
= user_screen_name a.question.user = user_screen_name q.user
asked asked
= time_ago_in_words(a.question.created_at) = time_ago_in_words(q.created_at)
ago ago
- if a.question.answer_count > 1 - if q.answer_count > 1
· ·
%a{href: show_user_question_path(a.question.user.screen_name, a.question.id)} %a{href: show_user_question_path(q.user.screen_name, q.id)}
#{a.question.answer_count} answers #{q.answer_count} answers
%p.answerbox--question-text %p.answerbox--question-text
= a.question.content = a.question.content

View File

@ -6,8 +6,8 @@
.col-md-9.col-xs-12.col-sm-9 .col-md-9.col-xs-12.col-sm-9
%h1.j2-lh= @title %h1.j2-lh= @title
#questions #questions
- @questions.each do |a| - @questions.each do |q|
= render 'shared/question', a: a = render 'shared/question', a: q
#pagination= will_paginate @questions, renderer: BootstrapPagination::Rails, page_links: false #pagination= will_paginate @questions, renderer: BootstrapPagination::Rails, page_links: false