diff options
author | Flaburgan <flaburgan@geexxx.fr> | 2015-06-15 18:27:06 +0300 |
---|---|---|
committer | Flaburgan <flaburgan@geexxx.fr> | 2015-06-18 18:26:31 +0300 |
commit | 3e4b8500a4d5d7f46d62a561ad6e1de549427fa3 (patch) | |
tree | 05283ab7a2ec45707d7ca1b7199ff98a9aa9776f /app/views/users/_privacy_settings.haml | |
parent | 5537e8687bb3c609175430f5547e5c3f25f920bb (diff) |
Refactor Account settings page with bootstrap grid
Diffstat (limited to 'app/views/users/_privacy_settings.haml')
-rw-r--r-- | app/views/users/_privacy_settings.haml | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/app/views/users/_privacy_settings.haml b/app/views/users/_privacy_settings.haml index 1c91a637b..9784c7533 100644 --- a/app/views/users/_privacy_settings.haml +++ b/app/views/users/_privacy_settings.haml @@ -1,33 +1,35 @@ = render 'shared/settings_nav' .container-fluid - .col-lg-8.col-lg-offset-2 - %h3 - = t('.title') + .row + .col-lg-8.col-lg-offset-2 + .row + .col-md-12 + %h3 + = t('.title') - = form_for current_user, url: user_path, html: { method: :put } do |f| - = f.error_messages + = form_for current_user, url: user_path, html: { method: :put } do |f| + = f.error_messages - = f.fields_for :stream_preferences do |type| - #stream_prefs - = f.label :strip_exif, class: "checkbox" do - = f.check_box :strip_exif - = t('.strip_exif') + = f.fields_for :stream_preferences do |type| + #stream_prefs.checkbox + = f.label :strip_exif do + = f.check_box :strip_exif + = t('.strip_exif') + = f.submit t('users.edit.change'), class: 'btn btn-primary pull-right' + %hr + + .row + .col-md-12 + %h3 + = t('.ignored_users') - .small-horizontal-spacer - .clearfix - = f.submit t('users.edit.change'), class: 'btn btn-primary pull-right' + - if @blocks.length.zero? + %p + = t('.no_user_ignored_message') - %hr - .small-horizontal-spacer - %h3 - = t('.ignored_users') - - - if @blocks.length.zero? - = t('.no_user_ignored_message') - - - @blocks.each do |block| - = block.person_name - \- - = link_to t('.stop_ignoring'), block_path(block), - method: :delete + - @blocks.each do |block| + = block.person_name + \- + = link_to t('.stop_ignoring'), block_path(block), + method: :delete |