Fix HAML codestyle of Discover views
This commit is contained in:
parent
d23ace86b0
commit
6a0c7034ee
|
@ -3,7 +3,7 @@
|
||||||
.jumbotron
|
.jumbotron
|
||||||
.jumbotron__content
|
.jumbotron__content
|
||||||
%h1= t(".heading")
|
%h1= t(".heading")
|
||||||
%p= t(".subheading", app_title: APP_CONFIG['site_name'])
|
%p= t(".subheading", app_title: APP_CONFIG["site_name"])
|
||||||
.container
|
.container
|
||||||
.row
|
.row
|
||||||
.col-md-7.col-sm-6
|
.col-md-7.col-sm-6
|
||||||
|
@ -11,29 +11,29 @@
|
||||||
%p= t(".content.description")
|
%p= t(".content.description")
|
||||||
%div{ role: :tabpanel }
|
%div{ role: :tabpanel }
|
||||||
%ul.nav.nav-tabs{ role: :tablist }
|
%ul.nav.nav-tabs{ role: :tablist }
|
||||||
%li.nav-item{ role: 'presentation' }
|
%li.nav-item{ role: "presentation" }
|
||||||
%a.nav-link.active{ href: '#answers', role: :tab, aria: { controls: 'answers' }, data: { toggle: :tab } }= t(".content.tab.answers")
|
%a.nav-link.active{ href: "#answers", role: :tab, aria: { controls: "answers" }, data: { toggle: :tab } }= t(".content.tab.answers")
|
||||||
%li.nav-item{ role: 'presentation' }
|
%li.nav-item{ role: "presentation" }
|
||||||
%a.nav-link{ href: '#questions', role: :tab, aria: { controls: 'questions' }, data: { toggle: :tab } }= t(".content.tab.questions")
|
%a.nav-link{ href: "#questions", role: :tab, aria: { controls: "questions" }, data: { toggle: :tab } }= t(".content.tab.questions")
|
||||||
%li.nav-item{ role: 'presentation' }
|
%li.nav-item{ role: "presentation" }
|
||||||
%a.nav-link{ href: '#comments', role: :tab, aria: { controls: 'comments' }, data: { toggle: :tab } }= t(".content.tab.comments")
|
%a.nav-link{ href: "#comments", role: :tab, aria: { controls: "comments" }, data: { toggle: :tab } }= t(".content.tab.comments")
|
||||||
.tab-content.mt-3
|
.tab-content.mt-3
|
||||||
= render 'discover/tab/answers', answers: @popular_answers
|
= render "discover/tab/answers", answers: @popular_answers
|
||||||
= render 'discover/tab/questions', questions: @popular_questions
|
= render "discover/tab/questions", questions: @popular_questions
|
||||||
= render 'discover/tab/discussed', comments: @most_discussed
|
= render "discover/tab/discussed", comments: @most_discussed
|
||||||
.col-md-5.col-sm-6
|
.col-md-5.col-sm-6
|
||||||
%h2= t(".people.heading")
|
%h2= t(".people.heading")
|
||||||
%p= t(".people.description")
|
%p= t(".people.description")
|
||||||
%div{ role: :tabpanel }
|
%div{ role: :tabpanel }
|
||||||
%ul.nav.nav-tabs{ role: :tablist }
|
%ul.nav.nav-tabs{ role: :tablist }
|
||||||
%li.nav-item{ role: 'presentation' }
|
%li.nav-item{ role: "presentation" }
|
||||||
%a.nav-link.active{ href: '#new', role: :tab, aria: { controls: 'new' }, data: { toggle: :tab } }= t(".people.tab.new")
|
%a.nav-link.active{ href: "#new", role: :tab, aria: { controls: "new" }, data: { toggle: :tab } }= t(".people.tab.new")
|
||||||
%li.nav-item{ role: 'presentation' }
|
%li.nav-item{ role: "presentation" }
|
||||||
%a.nav-link{ href: '#asked', role: :tab, aria: { controls: 'asked' }, data: { toggle: :tab } }= t(".people.tab.questions")
|
%a.nav-link{ href: "#asked", role: :tab, aria: { controls: "asked" }, data: { toggle: :tab } }= t(".people.tab.questions")
|
||||||
%li.nav-item{ role: 'presentation' }
|
%li.nav-item{ role: "presentation" }
|
||||||
%a.nav-link{ href: '#answered', role: :tab, aria: { controls: 'answered' }, data: { toggle: :tab } }= t(".people.tab.answers")
|
%a.nav-link{ href: "#answered", role: :tab, aria: { controls: "answered" }, data: { toggle: :tab } }= t(".people.tab.answers")
|
||||||
.tab-content.mt-3
|
.tab-content.mt-3
|
||||||
= render 'discover/tab/new', new: @new_users
|
= render "discover/tab/new", new: @new_users
|
||||||
= render 'discover/tab/asked', asked: @users_with_most_questions
|
= render "discover/tab/asked", asked: @users_with_most_questions
|
||||||
= render 'discover/tab/most', answered: @users_with_most_answers
|
= render "discover/tab/most", answered: @users_with_most_answers
|
||||||
= render 'shared/links'
|
= render "shared/links"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
.tab-pane.active.fade.show{ role: :tabpanel, id: 'answers' }
|
.tab-pane.active.fade.show{ role: :tabpanel, id: "answers" }
|
||||||
- answers.each do |a|
|
- answers.each do |a|
|
||||||
= render 'answerbox', a: a
|
= render "answerbox", a: a
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
.tab-pane.fade{ role: :tabpanel, id: 'asked' }
|
.tab-pane.fade{ role: :tabpanel, id: "asked" }
|
||||||
- asked.each do |user|
|
- asked.each do |user|
|
||||||
= render 'discover/userbox', u: user.user, type: 'asked', value: user.question_count
|
= render "discover/userbox", u: user.user, type: "asked", value: user.question_count
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
.tab-pane.fade{ role: :tabpanel, id: 'comments' }
|
.tab-pane.fade{ role: :tabpanel, id: "comments" }
|
||||||
- comments.each do |a|
|
- comments.each do |a|
|
||||||
= render 'answerbox', a: a
|
= render "answerbox", a: a
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
.tab-pane.fade{ role: :tabpanel, id: 'answered' }
|
.tab-pane.fade{ role: :tabpanel, id: "answered" }
|
||||||
- answered.each do |user|
|
- answered.each do |user|
|
||||||
= render 'discover/userbox', u: user.user, type: 'most', value: user.answer_count
|
= render "discover/userbox", u: user.user, type: "most", value: user.answer_count
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
.tab-pane.active.fade.show{ role: :tabpanel, id: 'new' }
|
.tab-pane.active.fade.show{ role: :tabpanel, id: "new" }
|
||||||
- new.each do |user|
|
- new.each do |user|
|
||||||
= render 'discover/userbox', u: user, type: 'new', value: time_ago_in_words(user.created_at)
|
= render "discover/userbox", u: user, type: "new", value: time_ago_in_words(user.created_at)
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
.tab-pane.fade{ role: :tabpanel, id: 'questions' }
|
.tab-pane.fade{ role: :tabpanel, id: "questions" }
|
||||||
- questions.each do |q|
|
- questions.each do |q|
|
||||||
= render 'shared/question', q: q, type: 'discover'
|
= render "shared/question", q: q, type: "discover"
|
||||||
|
|
Loading…
Reference in New Issue