how about new template

This commit is contained in:
Andreas N 2014-12-19 22:52:12 +01:00
parent 75bca2430b
commit e9985ed0aa
3 changed files with 16 additions and 2 deletions

View file

@ -1,4 +1,4 @@
.answerbox .text-muted a, .answerbox .text-muted a:hover {
.text-muted a, .answerbox .text-muted a:hover {
color: $gray-dark;
text-decoration: none;
}

View file

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

View file

@ -7,7 +7,7 @@
%h1.j2-lh= @title
#questions
- @questions.each do |a|
= render 'shared/answerbox', a: a
= render 'shared/question', a: a
#pagination= will_paginate @questions, renderer: BootstrapPagination::Rails, page_links: false