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-body
%h6.media-heading.text-muted.answerbox--question-user
= user_screen_name a.question.user
= user_screen_name q.user
asked
= time_ago_in_words(a.question.created_at)
= time_ago_in_words(q.created_at)
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.question.answer_count} answers
%a{href: show_user_question_path(q.user.screen_name, q.id)}
#{q.answer_count} answers
%p.answerbox--question-text
= a.question.content

View File

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