Fix remaining BS3 regressions

This commit is contained in:
Steffen van Bergerem 2015-09-24 21:47:58 +02:00
parent 36637672e3
commit bf6b0e4616
12 changed files with 303 additions and 288 deletions

View file

@ -406,15 +406,11 @@ h3 { margin-top: 0; }
#new_status_message { #new_status_message {
margin: 0; margin: 0;
fieldset {
padding: 10px;
.service_icon { .service_icon {
cursor: pointer; cursor: pointer;
&.dim { &.dim {
opacity: 0.6; opacity: .6;
}
} }
} }

View file

@ -26,7 +26,7 @@
.services_explanation { .services_explanation {
border-top: 1px solid $border-grey; border-top: 1px solid $border-grey;
margin-top: 1rem; margin-top: 1rem;
padding: 1rem; padding: 1rem 0;
} }
} }

View file

@ -3,9 +3,10 @@
-# the COPYRIGHT file. -# the COPYRIGHT file.
.container-fluid .container-fluid
.row
.col-lg-10.col-lg-offset-1
= render "shared/settings_nav" = render "shared/settings_nav"
.container-fluid
.row .row
.col-lg-8.col-lg-offset-2 .col-lg-8.col-lg-offset-2
- content_for :submit_block do - content_for :submit_block do

View file

@ -2,10 +2,11 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
.settings_container .settings_container.container-fluid
.row
.col-lg-10.col-lg-offset-1
= render "shared/settings_nav" = render "shared/settings_nav"
.container-fluid
.row .row
.col-lg-8.col-lg-offset-2 .col-lg-8.col-lg-offset-2
- content_for :submit_block do - content_for :submit_block do

View file

@ -3,18 +3,20 @@
-# the COPYRIGHT file. -# the COPYRIGHT file.
- content_for :page_title do - content_for :page_title do
= t('.edit_services') = t(".edit_services")
.container-fluid .container-fluid
= render 'shared/settings_nav' .row
.col-lg-10.col-lg-offset-1
= render "shared/settings_nav"
.container-fluid
.row .row
.col-lg-8.col-lg-offset-2 .col-lg-8.col-lg-offset-2
%h3= t('.title') %h3= t(".title")
.col-md-7 .row
= render 'add_remove_services' .col-md-7.col-lg-5.col-lg-offset-2
= render "add_remove_services"
.col-md-5 .col-md-5.col-lg-3
%p %p
= t('.services_explanation') = t(".services_explanation")

View file

@ -2,17 +2,19 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
.settings_container.services_page - content_for :page_title do
- content_for :page_title do = t(".edit_services")
= t('.edit_services')
= render 'shared/settings_nav' .settings_container.services_page.container-fluid
.container-fluid
.row .row
.col-md-12 .col-lg-10.col-lg-offset-1
= render 'add_remove_services' = render "shared/settings_nav"
.row .row
.col-md-12.services_explanation .col-lg-8.col-lg-offset-2
= t('.services_explanation') = render "add_remove_services"
.row
.col-lg-8.col-lg-offset-2
.services_explanation
= t(".services_explanation")

View file

@ -1,10 +1,8 @@
.container-fluid #section_header
.col-lg-10.col-lg-offset-1
#section_header
%h2 %h2
= t('settings') = t("settings")
%ul.nav.nav-tabs#settings_nav %ul.nav.nav-tabs#settings_nav
%li{class: current_page?(edit_profile_path) && 'active'}= link_to t('profile'), edit_profile_path %li{class: current_page?(edit_profile_path) && "active"}= link_to t("profile"), edit_profile_path
%li{class: current_page?(edit_user_path) && 'active'}= link_to t('account'), edit_user_path %li{class: current_page?(edit_user_path) && "active"}= link_to t("account"), edit_user_path
%li{class: current_page?(privacy_settings_path) && 'active'}= link_to t('privacy'), privacy_settings_path %li{class: current_page?(privacy_settings_path) && "active"}= link_to t("privacy"), privacy_settings_path
%li{class: current_page?(services_path) && 'active'}= link_to t('_services'), services_path %li{class: current_page?(services_path) && "active"}= link_to t("_services"), services_path

View file

@ -1,4 +1,4 @@
#settings_nav.container-fluid #settings_nav
%h2= t('settings') %h2= t('settings')
%nav %nav
%ul %ul

View file

@ -3,16 +3,17 @@
-# the COPYRIGHT file. -# the COPYRIGHT file.
- content_for :page_title do - content_for :page_title do
= t('.edit_account') = t(".edit_account")
= render 'shared/settings_nav' .row
.col-lg-10.col-lg-offset-1
= render "shared/settings_nav"
.container-fluid .row
.row
.col-lg-8.col-lg-offset-2 .col-lg-8.col-lg-offset-2
.row .row
.col-md-6 .col-md-6
%h3= t('.your_handle') %h3= t(".your_handle")
%p %p
%b= current_user.diaspora_handle %b= current_user.diaspora_handle
@ -22,45 +23,49 @@
%i.entypo-lock.gray.settings_visibility{title: t("users.edit.your_email_private")} %i.entypo-lock.gray.settings_visibility{title: t("users.edit.your_email_private")}
= form_for 'user', url: user_path, html: { method: :put, class: "form-horizontal col-md-12" , id: "email-form"} do |f| = form_for "user", url: user_path,
html: {method: :put, class: "form-horizontal col-md-12", id: "email-form"} do |f|
= f.error_messages = f.error_messages
.form-group .form-group
= f.text_field :email, value: @user.unconfirmed_email || @user.email, class: "col-md-7 form-control" = f.text_field :email, value: @user.unconfirmed_email || @user.email, class: "col-md-7 form-control"
.clearfix= f.submit t('.change_email'), class: "btn btn-primary pull-right" .clearfix= f.submit t(".change_email"), class: "btn btn-primary pull-right"
- if @user.unconfirmed_email.present? - if @user.unconfirmed_email.present?
%div= t('.email_awaiting_confirmation', email: @user.email, :unconfirmed_email => @user.unconfirmed_email) %div= t(".email_awaiting_confirmation", email: @user.email, unconfirmed_email: @user.unconfirmed_email)
%hr %hr
.row .row
.col-md-12 .col-md-12
%h3= t('.change_password') %h3= t(".change_password")
= form_for @user, url: user_path, html: { method: :put, class: "form-horizontal" } do |f| = form_for @user, url: user_path, html: {method: :put, class: "form-horizontal"} do |f|
- if (@user.errors.keys & [:password, :password_confirmation, :current_password]).present? - if (@user.errors.keys & %i(password password_confirmation current_password)).present?
= f.error_messages = f.error_messages
.form-group .form-group
= f.label :current_password, t('.current_password'), class: "col-sm-6 control-label" = f.label :current_password, t(".current_password"), class: "col-sm-6 control-label"
.col-sm-6 .col-sm-6
= f.password_field :current_password, placeholder: t('.current_password_expl'), class: "form-control" = f.password_field :current_password, placeholder: t(".current_password_expl"),
class: "form-control"
.form-group .form-group
= f.label :password, t('.new_password'), class: "col-sm-6 control-label" = f.label :password, t(".new_password"), class: "col-sm-6 control-label"
%div.col-sm-6
= f.password_field :password, placeholder: t('.character_minimum_expl'), class: "form-control"
.form-group
= f.label :password_confirmation, t('password_confirmation'), class: "col-sm-6 control-label"
.col-sm-6 .col-sm-6
= f.password_field :password_confirmation, placeholder: t('.character_minimum_expl'), class: "form-control" = f.password_field :password, placeholder: t(".character_minimum_expl"),
class: "form-control"
.form-group
= f.label :password_confirmation, t("password_confirmation"), class: "col-sm-6 control-label"
.col-sm-6
= f.password_field :password_confirmation, placeholder: t(".character_minimum_expl"),
class: "form-control"
.clearfix .clearfix
= f.submit t('.change_password'), class: "btn btn-primary pull-right", name: 'change_password' = f.submit t(".change_password"), class: "btn btn-primary pull-right", name: "change_password"
%hr %hr
.row .row
.col-md-12 .col-md-12
%h3= t('.change_language') %h3= t(".change_language")
= form_for 'user', url: user_path, html: { method: :put} do |f| = form_for "user", url: user_path, html: {method: :put} do |f|
.form-inline.clearfix .form-inline.clearfix
= f.select :language, available_language_options, {}, { class: 'form-control form-group' } = f.select :language, available_language_options, {}, class: "form-control form-group"
= f.submit t('.change_language'), class: "btn btn-primary pull-right" = f.submit t(".change_language"), class: "btn btn-primary pull-right"
%hr %hr
.row .row
@ -68,137 +73,146 @@
%h3= t(".change_color_theme") %h3= t(".change_color_theme")
= form_for "user", url: user_path, html: {method: :put} do |f| = form_for "user", url: user_path, html: {method: :put} do |f|
.form-inline.clearfix .form-inline.clearfix
= f.select :color_theme, available_color_themes, {}, {class: "form-control form-group"} = f.select :color_theme, available_color_themes, {}, class: "form-control form-group"
= f.submit t(".change_color_theme"), class: "btn btn-primary pull-right" = f.submit t(".change_color_theme"), class: "btn btn-primary pull-right"
%hr %hr
.row .row
.col-md-12 .col-md-12
%h3#stream-preferences %h3#stream-preferences
= t('.stream_preferences') = t(".stream_preferences")
= form_for current_user, url: user_path, html: { method: :put } do |f| = form_for current_user, url: user_path, html: {method: :put} do |f|
= f.fields_for :stream_preferences do |type| = f.fields_for :stream_preferences do
#stream_prefs #stream_prefs
- if AppConfig.settings.community_spotlight.enable? - if AppConfig.settings.community_spotlight.enable?
= f.label :show_community_spotlight_in_stream, class: "checkbox-inline" do = f.label :show_community_spotlight_in_stream, class: "checkbox-inline" do
= f.check_box :show_community_spotlight_in_stream = f.check_box :show_community_spotlight_in_stream
= t('.show_community_spotlight') = t(".show_community_spotlight")
= f.label :getting_started, class: "checkbox-inline" do = f.label :getting_started, class: "checkbox-inline" do
= f.check_box :getting_started = f.check_box :getting_started
= t('.show_getting_started') = t(".show_getting_started")
.clearfix= f.submit t('.change'), class: 'btn btn-primary pull-right' .clearfix= f.submit t(".change"), class: "btn btn-primary pull-right"
%hr %hr
.row .row
.col-md-12 .col-md-12
%h3#auto-follow-back-preferences %h3#auto-follow-back-preferences
= t('.following') = t(".following")
= form_for current_user, url: user_path, html: { method: :put, class: "form-horizontal"} do |f| = form_for current_user, url: user_path, html: {method: :put, class: "form-horizontal"} do |f|
= f.label :auto_follow_back, class: "checkbox-inline" do = f.label :auto_follow_back, class: "checkbox-inline" do
= f.check_box :auto_follow_back = f.check_box :auto_follow_back
= t('.auto_follow_back') = t(".auto_follow_back")
.small-horizontal-spacer .small-horizontal-spacer
.form-group.row .form-group.row
%label.col-sm-6.control-label= t('.auto_follow_aspect') %label.col-sm-6.control-label= t(".auto_follow_aspect")
.col-sm-6 .col-sm-6
= f.select :auto_follow_back_aspect_id, aspect_options_for_select(current_user.aspects), {}, { class: 'form-control' } = f.select :auto_follow_back_aspect_id,
aspect_options_for_select(current_user.aspects),
{},
class: "form-control"
.small-horizontal-spacer .small-horizontal-spacer
.clearfix= f.submit t('.change'), class: 'btn btn-primary pull-right' .clearfix= f.submit t(".change"), class: "btn btn-primary pull-right"
%hr %hr
.row .row
.col-md-12 .col-md-12
%h3 %h3
= t('.receive_email_notifications') = t(".receive_email_notifications")
= form_for 'user', url: user_path, html: { method: :put } do |f| = form_for "user", url: user_path, html: {method: :put} do |f|
= f.fields_for :email_preferences do |type| = f.fields_for :email_preferences do |type|
#email_prefs #email_prefs
- if current_user.admin? - if current_user.admin?
= type.label :someone_reported, class: "checkbox-inline" do = type.label :someone_reported, class: "checkbox-inline" do
= type.check_box :someone_reported, {checked: @email_prefs['someone_reported']}, false, true = type.check_box :someone_reported, {checked: @email_prefs["someone_reported"]}, false, true
= t('.someone_reported') = t(".someone_reported")
.small-horizontal-spacer .small-horizontal-spacer
= type.label :started_sharing, class: "checkbox-inline" do = type.label :started_sharing, class: "checkbox-inline" do
= type.check_box :started_sharing, {checked: @email_prefs['started_sharing']}, false, true = type.check_box :started_sharing, {checked: @email_prefs["started_sharing"]}, false, true
= t('.started_sharing') = t(".started_sharing")
.small-horizontal-spacer .small-horizontal-spacer
= type.label :mentioned, class: "checkbox-inline" do = type.label :mentioned, class: "checkbox-inline" do
= type.check_box :mentioned, {checked: @email_prefs['mentioned']}, false, true = type.check_box :mentioned, {checked: @email_prefs["mentioned"]}, false, true
= t('.mentioned') = t(".mentioned")
.small-horizontal-spacer .small-horizontal-spacer
= type.label :liked, class: "checkbox-inline" do = type.label :liked, class: "checkbox-inline" do
= type.check_box :liked, {checked: @email_prefs['liked']}, false, true = type.check_box :liked, {checked: @email_prefs["liked"]}, false, true
= t('.liked') = t(".liked")
.small-horizontal-spacer .small-horizontal-spacer
= type.label :reshared, class: "checkbox-inline" do = type.label :reshared, class: "checkbox-inline" do
= type.check_box :reshared, {checked: @email_prefs['reshared']}, false, true = type.check_box :reshared, {checked: @email_prefs["reshared"]}, false, true
= t('.reshared') = t(".reshared")
.small-horizontal-spacer .small-horizontal-spacer
= type.label :comment_on_post, class: "checkbox-inline" do = type.label :comment_on_post, class: "checkbox-inline" do
= type.check_box :comment_on_post, {checked: @email_prefs['comment_on_post']}, false, true = type.check_box :comment_on_post, {checked: @email_prefs["comment_on_post"]}, false, true
= t('.comment_on_post') = t(".comment_on_post")
.small-horizontal-spacer .small-horizontal-spacer
= type.label :also_commented, class: "checkbox-inline" do = type.label :also_commented, class: "checkbox-inline" do
= type.check_box :also_commented, {checked: @email_prefs['also_commented']}, false, true = type.check_box :also_commented, {checked: @email_prefs["also_commented"]}, false, true
= t('.also_commented') = t(".also_commented")
.small-horizontal-spacer .small-horizontal-spacer
= type.label :private_message, class: "checkbox-inline" do = type.label :private_message, class: "checkbox-inline" do
= type.check_box :private_message, {checked: @email_prefs['private_message']}, false, true = type.check_box :private_message, {checked: @email_prefs["private_message"]}, false, true
= t('.private_message') = t(".private_message")
.small-horizontal-spacer .small-horizontal-spacer
.clearfix= f.submit t('.change'), class: 'btn btn-primary pull-right', id: "change_email_preferences" .clearfix= f.submit t(".change"), class: "btn btn-primary pull-right", id: "change_email_preferences"
%hr %hr
.row .row
#account_data.col-lg-7 .col-lg-7#account_data
.row .row
.col-md-6 .col-md-6
%h3= t('.export_data') %h3= t(".export_data")
.form-group .form-group
- if current_user.exporting - if current_user.exporting
.export-in-progress= t('.export_in_progress') .export-in-progress= t(".export_in_progress")
- elsif current_user.export.present? - elsif current_user.export.present?
= link_to t('.request_export_update'), export_profile_user_path, method: :post, class: "btn btn-default btn-block" = link_to t(".request_export_update"), export_profile_user_path, method: :post,
class: "btn btn-default btn-block"
.small-horizontal-spacer .small-horizontal-spacer
= link_to t('.download_export'), download_profile_user_path, class: "btn btn-success btn-block" = link_to t(".download_export"), download_profile_user_path,
class: "btn btn-success btn-block"
.small-horizontal-spacer .small-horizontal-spacer
%h6 %h6
= t('.last_exported_at', timestamp: current_user.exported_at) = t(".last_exported_at", timestamp: current_user.exported_at)
- else - else
= link_to t('.request_export'), export_profile_user_path, method: :post, class: "btn btn-default btn-block" = link_to t(".request_export"), export_profile_user_path, method: :post,
class: "btn btn-default btn-block"
.form-group .form-group
- if current_user.exporting_photos - if current_user.exporting_photos
.export-in-progress= t('.export_photos_in_progress') .export-in-progress= t(".export_photos_in_progress")
- elsif current_user.exported_photos_file.present? - elsif current_user.exported_photos_file.present?
= link_to t('.request_export_photos_update'), export_photos_user_path, class: "btn btn-default btn-block" = link_to t(".request_export_photos_update"), export_photos_user_path,
class: "btn btn-default btn-block"
.small-horizontal-spacer .small-horizontal-spacer
= link_to t('.download_export_photos'), download_photos_user_path, method: :post, class: "btn btn-success btn-block" = link_to t(".download_export_photos"), download_photos_user_path, method: :post,
class: "btn btn-success btn-block"
.small-horizontal-spacer .small-horizontal-spacer
%h6 %h6
= t('.last_exported_at', timestamp: current_user.exported_photos_at) = t(".last_exported_at", timestamp: current_user.exported_photos_at)
- else - else
= link_to t('.request_export_photos'), export_photos_user_path, method: :post, class: "btn btn-default btn-block" = link_to t(".request_export_photos"), export_photos_user_path, method: :post,
class: "btn btn-default btn-block"
.col-lg-5 .col-lg-5
%h3 %h3
= t('.close_account_text') = t(".close_account_text")
.form-group .form-group
.btn.btn-danger{ id: "close_account", data: {toggle: "modal", target: "#closeAccountModal"}} .btn.btn-danger{id: "close_account", data: {toggle: "modal", target: "#closeAccountModal"}}
= t(".close_account_text") = t(".close_account_text")
= render "close_account_modal" = render "close_account_modal"

View file

@ -1,32 +1,33 @@
= render 'shared/settings_nav' .row
.col-lg-10.col-lg-offset-1
= render "shared/settings_nav"
.container-fluid .row
.row
.col-lg-8.col-lg-offset-2 .col-lg-8.col-lg-offset-2
.row .row
.col-md-12 .col-md-12
%h3 %h3
= t('.title') = t(".title")
= form_for current_user, url: user_path, html: { method: :put } do |f| = form_for current_user, url: user_path, html: {method: :put} do |f|
= f.error_messages = f.error_messages
= f.fields_for :stream_preferences do |type| = f.fields_for :stream_preferences do
#stream_prefs.checkbox .checkbox#stream_prefs
= f.label :strip_exif do = f.label :strip_exif do
= f.check_box :strip_exif = f.check_box :strip_exif
= t('.strip_exif') = t(".strip_exif")
= f.submit t('users.edit.change'), class: 'btn btn-primary pull-right' = f.submit t("users.edit.change"), class: "btn btn-primary pull-right"
%hr %hr
.row .row
.col-md-12 .col-md-12
%h3 %h3
= t('.ignored_users') = t(".ignored_users")
- if @blocks.length.zero? - if @blocks.length.zero?
%p %p
= t('.no_user_ignored_message') = t(".no_user_ignored_message")
- else - else
#blocked_people #blocked_people
- @blocks.each do |block| - @blocks.each do |block|

View file

@ -1,2 +1,2 @@
.settings_container .settings_container.container-fluid
= render "edit" = render "edit"

View file

@ -2,8 +2,8 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
.settings_container - content_for :page_title do
- content_for :page_title do = t(".title")
= t('.title')
.settings_container.container-fluid
= render "privacy_settings" = render "privacy_settings"