Fix HAML codestyle in views
This commit is contained in:
parent
569f2e3458
commit
416bf19132
|
@ -1,12 +1,12 @@
|
|||
- provide(:title, question_title(@question))
|
||||
= render 'question', question: @question, hidden: false
|
||||
= render 'question', question: @question, hidden: true
|
||||
= render "question", question: @question, hidden: false
|
||||
= render "question", question: @question, hidden: true
|
||||
.container.question-page
|
||||
#answers
|
||||
- @answers.each do |a|
|
||||
= render 'answerbox', a: a, show_question: false
|
||||
= render "answerbox", a: a, show_question: false
|
||||
|
||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id
|
||||
= render "shared/cursored_pagination_dummy", more_data_available: @more_data_available, last_id: @answers_last_id
|
||||
|
||||
- if @more_data_available
|
||||
.d-flex.justify-content-center.justify-content-sm-start
|
||||
|
@ -15,7 +15,7 @@
|
|||
|
||||
- if user_signed_in? && !current_user.answered?(@question) && current_user != @question.user && @question.user&.privacy_allow_stranger_answers
|
||||
.card#q-answer-box
|
||||
.card-header= t('.questionbox.title')
|
||||
.card-header= t(".questionbox.title")
|
||||
.card-body
|
||||
%textarea.form-control#q-answer-text{ placeholder: t("inbox.entry.placeholder"), data: { id: @question.id } }
|
||||
%br/
|
||||
|
@ -23,5 +23,5 @@
|
|||
= t("voc.answer")
|
||||
- current_user.services.each do |service|
|
||||
%label
|
||||
%input{ type: 'checkbox', name: 'share', checked: :checked, data: { q_id: @question.id, service: service.provider } }
|
||||
%input{ type: "checkbox", name: "share", checked: :checked, data: { q_id: @question.id, service: service.provider } }
|
||||
= t("inbox.entry.sharing.post_to", service: service.provider.capitalize)
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
%a{ href: user_path(member.user), title: member.user.screen_name, data: { toggle: :tooltip, placement: :top } }
|
||||
%img.avatar-xs{ src: member.user.profile_picture.url(:medium) }
|
||||
|
||||
= render 'shared/links'
|
||||
= render "shared/links"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
.card
|
||||
.list-group.list-group-horizontal-sm.text-center
|
||||
= list_group_item t('.timeline'), timeline_path
|
||||
= list_group_item t(".timeline"), timeline_path
|
||||
- if APP_CONFIG.dig(:features, :public, :enabled)
|
||||
= list_group_item t('.public'), public_timeline_path
|
||||
%a.list-group-item.list-group-item-action.dropdown.dropdown-toggle{ class: list ? 'active' : '',
|
||||
= list_group_item t(".public"), public_timeline_path
|
||||
%a.list-group-item.list-group-item-action.dropdown.dropdown-toggle{ class: list ? "active" : "",
|
||||
type: :button, data: { toggle: :dropdown }, aria: { haspopup: true, expanded: false } }
|
||||
- if list
|
||||
= list.display_name
|
||||
|
|
|
@ -13,28 +13,28 @@
|
|||
- if user.banned?
|
||||
%span.badge.badge-dark
|
||||
%i.fa.fa-fw.fa-ban
|
||||
= t('.badge.banned')
|
||||
= t(".badge.banned")
|
||||
- if user.following? current_user
|
||||
.badge.badge-light
|
||||
= t('.badge.follows_you')
|
||||
= t(".badge.follows_you")
|
||||
- if user_signed_in? && current_user.has_role?(:administrator)
|
||||
- if user.has_role?(:administrator)
|
||||
%span.badge.badge-danger
|
||||
%i.fa.fa-fw.fa-flask
|
||||
= t('.badge.admin')
|
||||
= t(".badge.admin")
|
||||
- if user.has_role?(:moderator)
|
||||
%span.badge.badge-success
|
||||
%i.fa.fa-fw.fa-users
|
||||
= t('.badge.moderator')
|
||||
= t(".badge.moderator")
|
||||
- unless user.profile.description.blank?
|
||||
.profile__biography
|
||||
= markdown user.profile.description
|
||||
- unless user.profile.website.blank?
|
||||
.profile__website
|
||||
%i.fa.fa-fw.fa-globe
|
||||
%a{ href: user.profile.website, target: '_blank', rel: 'nofollow' }= user.profile.display_website
|
||||
%a{ href: user.profile.website, target: "_blank", rel: "nofollow" }= user.profile.display_website
|
||||
- unless user.profile.location.blank?
|
||||
.profile__location
|
||||
%i.fa.fa-fw.fa-location-arrow
|
||||
= user.profile.location
|
||||
= render 'user/actions', user: user, type: :follower
|
||||
= render "user/actions", user: user, type: :follower
|
||||
|
|
Loading…
Reference in New Issue