mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 04:16:03 +01:00
Rename j2-page class to container--main
This commit is contained in:
parent
4e9311c25b
commit
1e2259fe40
16 changed files with 19 additions and 18 deletions
4
app/assets/stylesheets/components/_container.scss
Normal file
4
app/assets/stylesheets/components/_container.scss
Normal file
|
@ -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"))
|
- provide(:title, generate_title("Edit announcement"))
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
= bootstrap_form_for(@announcement, url: {action: "update"}, method: "PATCH") do |f|
|
= bootstrap_form_for(@announcement, url: {action: "update"}, method: "PATCH") do |f|
|
||||||
- if @announcement.errors.any?
|
- if @announcement.errors.any?
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- provide(:title, generate_title("Announcements"))
|
- provide(:title, generate_title("Announcements"))
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= link_to "Add new", :announcement_new, class: "btn btn-default"
|
= link_to "Add new", :announcement_new, class: "btn btn-default"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- provide(:title, generate_title("Add new announcement"))
|
- provide(:title, generate_title("Add new announcement"))
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
= bootstrap_form_for(@announcement, url: {action: "create"}) do |f|
|
= bootstrap_form_for(@announcement, url: {action: "create"}) do |f|
|
||||||
- if @announcement.errors.any?
|
- if @announcement.errors.any?
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- provide(:title, answer_title(@answer))
|
- provide(:title, answer_title(@answer))
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
= render 'answerbox', a: @answer
|
= render 'answerbox', a: @answer
|
|
@ -1,5 +1,5 @@
|
||||||
= render 'navigation/feed'
|
= render 'navigation/feed'
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
.row
|
.row
|
||||||
.col-md-3.col-sm-4.d-none.d-sm-block
|
.col-md-3.col-sm-4.d-none.d-sm-block
|
||||||
= render 'shared/sidebar'
|
= render 'shared/sidebar'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
.row
|
.row
|
||||||
.col-md-3.col-xs-12.col-sm-4.order-2.order-sm-1
|
.col-md-3.col-xs-12.col-sm-4.order-2.order-sm-1
|
||||||
= render 'inbox/sidebar'
|
= render 'inbox/sidebar'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
= render 'navigation/moderation'
|
= render 'navigation/moderation'
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
.row
|
.row
|
||||||
.col-md-3.col-sm-4.col-xs-12
|
.col-md-3.col-sm-4.col-xs-12
|
||||||
= render 'tabs/moderation'
|
= render 'tabs/moderation'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
= render 'navigation/notification'
|
= render 'navigation/notification'
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
.row
|
.row
|
||||||
.col-md-3.col-xs-12.col-sm-4
|
.col-md-3.col-xs-12.col-sm-4
|
||||||
= render 'tabs/notifications'
|
= render 'tabs/notifications'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
.row
|
.row
|
||||||
.col-md-3.col-xs-12.col-sm-4
|
.col-md-3.col-xs-12.col-sm-4
|
||||||
= render 'tabs/settings'
|
= render 'tabs/settings'
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
%span{id: "#{group.name}-members"}= group.members.count
|
%span{id: "#{group.name}-members"}= group.members.count
|
||||||
= t 'views.modal.group.members'
|
= 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
|
%i.fa.fa-close
|
||||||
= t 'views.actions.delete'
|
= 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}?")
|
- checked = requires_role ? user.has_role?(role_mapping.fetch(privilege, privilege).to_sym) : user.public_send("#{privilege}?")
|
||||||
%li.list-group-item{id: "privilege-#{privilege}"}
|
%li.list-group-item{id: "privilege-#{privilege}"}
|
||||||
.media
|
.media
|
||||||
.pull-left.j2-table
|
.pull-left
|
||||||
%input.input--center{type: :checkbox, name: 'check-your-privileges', data: { type: privilege, user: user.screen_name }, checked: checked, autocomplete: 'off'}
|
%input{type: :checkbox, name: 'check-your-privileges', data: { type: privilege, user: user.screen_name }, checked: checked, autocomplete: 'off'}
|
||||||
.media-body
|
.media-body
|
||||||
.list-group-item-heading= privilege.capitalize
|
.list-group-item-heading= privilege.capitalize
|
||||||
- unless description.blank?
|
- unless description.blank?
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.text-center.text-muted.links
|
.text-center.text-muted.pb-3
|
||||||
©
|
©
|
||||||
= Date.today.year
|
= Date.today.year
|
||||||
= APP_CONFIG['site_name']
|
= APP_CONFIG['site_name']
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- provide(:title, generate_title("Privacy Policy"))
|
- provide(:title, generate_title("Privacy Policy"))
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
= raw_markdown_io "service-docs/en/policy/privacy.md"
|
= raw_markdown_io "service-docs/en/policy/privacy.md"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- provide(:title, generate_title("Terms of Service"))
|
- provide(:title, generate_title("Terms of Service"))
|
||||||
.container.j2-page
|
.container.container--main
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
= raw_markdown_io "service-docs/en/policy/terms.md"
|
= raw_markdown_io "service-docs/en/policy/terms.md"
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
%h1.j2-lh.hidden-xs Groups
|
|
||||||
%h1.visible-xs Groups
|
|
||||||
|
|
||||||
%ul
|
%ul
|
||||||
- @groups.each do |group|
|
- @groups.each do |group|
|
||||||
%li
|
%li
|
||||||
|
|
Loading…
Reference in a new issue