2015-05-13 15:02:19 -07:00
|
|
|
- provide(:title, generate_title("Profile Settings"))
|
2014-11-02 11:52:19 -08:00
|
|
|
.container.j2-page
|
|
|
|
= render 'settings_tabs'
|
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
2014-12-13 07:03:18 -08:00
|
|
|
= render 'layouts/messages'
|
2014-11-11 11:01:24 -08:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
2014-12-29 02:21:43 -08:00
|
|
|
= bootstrap_form_for(current_user, url: {action: "edit"}, :html => { :multipart => true }, method: "patch") do |f|
|
2014-11-11 11:01:24 -08:00
|
|
|
|
2015-06-07 06:10:17 -07:00
|
|
|
= f.text_field :display_name, label: t('views.settings.profile.displayname')
|
2014-11-11 11:01:24 -08:00
|
|
|
|
2015-05-15 15:39:33 -07:00
|
|
|
.media#profile-picture-media
|
2014-12-29 04:52:19 -08:00
|
|
|
.pull-left
|
2014-12-29 07:29:46 -08:00
|
|
|
%img.img-rounded.profile--img{src: current_user.profile_picture.url(:medium)}
|
2014-12-29 04:52:19 -08:00
|
|
|
.media-body
|
2015-06-08 07:05:20 -07:00
|
|
|
= f.file_field :profile_picture, label: t('views.settings.profile.avatar')
|
2014-12-29 04:52:19 -08:00
|
|
|
|
2014-12-29 07:29:46 -08:00
|
|
|
.row#profile-picture-crop-controls{style: 'display: none;'}
|
|
|
|
.col-sm-10.col-md-8
|
2015-06-07 06:10:17 -07:00
|
|
|
%strong= t('views.settings.profile.avatar_adjust')
|
2014-12-29 07:29:46 -08:00
|
|
|
%img#profile-picture-cropper{src: current_user.profile_picture.url(:medium)}
|
|
|
|
.col-sm-2.col-md-4
|
|
|
|
.btn-group
|
|
|
|
%button#cropper-zoom-out.btn.btn-inverse{type: :button}
|
|
|
|
%i.fa.fa-search-minus
|
|
|
|
%button#cropper-zoom-in.btn.btn-inverse{type: :button}
|
|
|
|
%i.fa.fa-search-plus
|
2014-12-29 02:21:43 -08:00
|
|
|
|
2015-05-15 15:39:33 -07:00
|
|
|
.media#profile-header-media
|
2015-05-08 08:44:16 -07:00
|
|
|
.pull-left
|
|
|
|
%img.img-rounded.header--img{src: current_user.profile_header.url(:mobile)}
|
|
|
|
.media-body
|
2015-06-08 07:05:20 -07:00
|
|
|
= f.file_field :profile_header, label: t('views.settings.profile.header')
|
2015-05-08 08:44:16 -07:00
|
|
|
|
|
|
|
.row#profile-header-crop-controls{style: 'display: none;'}
|
|
|
|
.col-sm-10.col-md-8
|
2015-06-07 06:10:17 -07:00
|
|
|
%strong= t('views.settings.profile.header_adjust')
|
2015-05-08 08:44:16 -07:00
|
|
|
%img#profile-header-cropper{src: current_user.profile_header.url(:web)}
|
|
|
|
.col-sm-2.col-md-4
|
|
|
|
.btn-group
|
2015-05-08 09:14:54 -07:00
|
|
|
%button#cropper-header-zoom-out.btn.btn-inverse{type: :button}
|
2015-05-08 08:44:16 -07:00
|
|
|
%i.fa.fa-search-minus
|
2015-05-08 09:14:54 -07:00
|
|
|
%button#cropper-header-zoom-in.btn.btn-inverse{type: :button}
|
2015-05-08 08:44:16 -07:00
|
|
|
%i.fa.fa-search-plus
|
|
|
|
|
2015-06-07 06:10:17 -07:00
|
|
|
= f.text_field :motivation_header, label: t('views.settings.profile.motivation'), placeholder: t('views.settings.profile.placeholder.motivation')
|
2014-11-29 13:34:11 -08:00
|
|
|
|
2015-06-07 06:10:17 -07:00
|
|
|
= f.text_field :website, label: t('views.settings.profile.website'), placeholder: 'http://example.com'
|
2014-12-01 11:47:10 -08:00
|
|
|
|
2015-06-07 06:10:17 -07:00
|
|
|
= f.text_field :location, label: t('views.settings.profile.location'), placeholder: t('views.settings.profile.placeholder.location')
|
2014-12-01 11:47:10 -08:00
|
|
|
|
2015-06-07 06:10:17 -07:00
|
|
|
= f.text_area :bio, label: t('views.settings.profile.bio'), placeholder: t('views.settings.profile.placeholder.bio')
|
2014-12-01 11:47:10 -08:00
|
|
|
|
2015-08-25 11:27:06 -07:00
|
|
|
= f.check_box :show_foreign_themes, label: 'Render other user themes when visiting their profile'
|
|
|
|
|
2014-12-29 05:50:25 -08:00
|
|
|
- for attrib in %i(crop_x crop_y crop_w crop_h)
|
|
|
|
= f.hidden_field attrib, id: attrib
|
|
|
|
|
2015-05-08 08:44:16 -07:00
|
|
|
- for attrib in %i(crop_h_x crop_h_y crop_h_w crop_h_h)
|
|
|
|
= f.hidden_field attrib, id: attrib
|
|
|
|
|
2015-06-07 06:10:17 -07:00
|
|
|
= f.submit t('views.actions.save'), class: 'btn btn-primary'
|