Rename j2-page class to container--main

This commit is contained in:
Andreas Nedbal 2020-05-02 17:37:19 +02:00
parent 4e9311c25b
commit 1e2259fe40
16 changed files with 19 additions and 18 deletions

View File

@ -0,0 +1,4 @@
.container--main {
padding-top: map-get($spacers, 3);
padding-bottom: map-get($spacers, 3);
}

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title("Edit announcement"))
.container.j2-page
.container.container--main
= bootstrap_form_for(@announcement, url: {action: "update"}, method: "PATCH") do |f|
- if @announcement.errors.any?
.row

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title("Announcements"))
.container.j2-page
.container.container--main
.row
.col-md-12
= link_to "Add new", :announcement_new, class: "btn btn-default"

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title("Add new announcement"))
.container.j2-page
.container.container--main
= bootstrap_form_for(@announcement, url: {action: "create"}) do |f|
- if @announcement.errors.any?
.row

View File

@ -1,3 +1,3 @@
- provide(:title, answer_title(@answer))
.container.j2-page
.container.container--main
= render 'answerbox', a: @answer

View File

@ -1,5 +1,5 @@
= render 'navigation/feed'
.container.j2-page
.container.container--main
.row
.col-md-3.col-sm-4.d-none.d-sm-block
= render 'shared/sidebar'

View File

@ -1,4 +1,4 @@
.container.j2-page
.container.container--main
.row
.col-md-3.col-xs-12.col-sm-4.order-2.order-sm-1
= render 'inbox/sidebar'

View File

@ -1,5 +1,5 @@
= render 'navigation/moderation'
.container.j2-page
.container.container--main
.row
.col-md-3.col-sm-4.col-xs-12
= render 'tabs/moderation'

View File

@ -1,5 +1,5 @@
= render 'navigation/notification'
.container.j2-page
.container.container--main
.row
.col-md-3.col-xs-12.col-sm-4
= render 'tabs/notifications'

View File

@ -1,4 +1,4 @@
.container.j2-page
.container.container--main
.row
.col-md-3.col-xs-12.col-sm-4
= render 'tabs/settings'

View File

@ -10,6 +10,6 @@
%span{id: "#{group.name}-members"}= group.members.count
= t 'views.modal.group.members'
·
%a.j2-delete#delete-group{href: "#", data: { group: group.name }}
%a.text-danger#delete-group{href: "#", data: { group: group.name }}
%i.fa.fa-close
= t 'views.actions.delete'

View File

@ -4,8 +4,8 @@
- checked = requires_role ? user.has_role?(role_mapping.fetch(privilege, privilege).to_sym) : user.public_send("#{privilege}?")
%li.list-group-item{id: "privilege-#{privilege}"}
.media
.pull-left.j2-table
%input.input--center{type: :checkbox, name: 'check-your-privileges', data: { type: privilege, user: user.screen_name }, checked: checked, autocomplete: 'off'}
.pull-left
%input{type: :checkbox, name: 'check-your-privileges', data: { type: privilege, user: user.screen_name }, checked: checked, autocomplete: 'off'}
.media-body
.list-group-item-heading= privilege.capitalize
- unless description.blank?

View File

@ -1,4 +1,4 @@
.text-center.text-muted.links
.text-center.text-muted.pb-3
©
= Date.today.year
= APP_CONFIG['site_name']

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title("Privacy Policy"))
.container.j2-page
.container.container--main
.card
.card-body
= raw_markdown_io "service-docs/en/policy/privacy.md"

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title("Terms of Service"))
.container.j2-page
.container.container--main
.card
.card-body
= raw_markdown_io "service-docs/en/policy/terms.md"

View File

@ -1,6 +1,3 @@
%h1.j2-lh.hidden-xs Groups
%h1.visible-xs Groups
%ul
- @groups.each do |group|
%li