Rename j2-page class to container--main
This commit is contained in:
parent
4e9311c25b
commit
1e2259fe40
|
@ -0,0 +1,4 @@
|
|||
.container--main {
|
||||
padding-top: map-get($spacers, 3);
|
||||
padding-bottom: map-get($spacers, 3);
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
- provide(:title, answer_title(@answer))
|
||||
.container.j2-page
|
||||
.container.container--main
|
||||
= render 'answerbox', a: @answer
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.container.j2-page
|
||||
.container.container--main
|
||||
.row
|
||||
.col-md-3.col-xs-12.col-sm-4
|
||||
= render 'tabs/settings'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.text-center.text-muted.links
|
||||
.text-center.text-muted.pb-3
|
||||
©
|
||||
= Date.today.year
|
||||
= APP_CONFIG['site_name']
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
%h1.j2-lh.hidden-xs Groups
|
||||
%h1.visible-xs Groups
|
||||
|
||||
%ul
|
||||
- @groups.each do |group|
|
||||
%li
|
||||
|
|
Loading…
Reference in New Issue