Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/profiles/show.html.haml')
-rw-r--r--app/views/profiles/show.html.haml41
1 files changed, 6 insertions, 35 deletions
diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml
index a64968cdcbb..f38d6021b18 100644
--- a/app/views/profiles/show.html.haml
+++ b/app/views/profiles/show.html.haml
@@ -2,8 +2,6 @@
- page_title s_("Profiles|Edit Profile")
- @content_class = "limit-container-width" unless fluid_layout
- gravatar_link = link_to Gitlab.config.gravatar.host, 'https://' + Gitlab.config.gravatar.host
-- availability = availability_values
-- custom_emoji = @user.status&.customized?
= gitlab_ui_form_for @user, url: profile_path, method: :put, html: { multipart: true, class: 'edit-user js-edit-user gl-mt-3 js-quick-submit gl-show-field-errors js-password-prompt-form', remote: true }, authenticity_token: true do |f|
.row.js-search-settings-section
@@ -43,39 +41,12 @@
%h4.gl-mt-0= s_("Profiles|Current status")
%p= s_("Profiles|This emoji and message will appear on your profile and throughout the interface.")
.col-lg-8
- = f.fields_for :status, @user.status do |status_form|
- - emoji_button = render Pajamas::ButtonComponent.new(button_options: { title: s_("Profiles|Add status emoji"),
- class: 'js-toggle-emoji-menu emoji-menu-toggle-button has-tooltip' } ) do
- - if custom_emoji
- = emoji_icon(@user.status.emoji, class: 'gl-mr-0!')
- %span#js-no-emoji-placeholder.no-emoji-placeholder{ class: ('hidden' if custom_emoji) }
- = sprite_icon('slight-smile', css_class: 'award-control-icon-neutral')
- = sprite_icon('smiley', css_class: 'award-control-icon-positive')
- = sprite_icon('smile', css_class: 'award-control-icon-super-positive')
- - reset_message_button = render Pajamas::ButtonComponent.new(icon: 'close',
- button_options: { id: 'js-clear-user-status-button',
- class: 'has-tooltip',
- title: s_("Profiles|Clear status") } )
-
- = status_form.hidden_field :emoji, id: 'js-status-emoji-field'
- .form-group.gl-form-group
- = status_form.label :message, s_("Profiles|Your status")
- .input-group{ role: 'group' }
- .input-group-prepend
- = emoji_button
- = status_form.text_field :message,
- id: 'js-status-message-field',
- class: 'form-control gl-form-input input-lg',
- placeholder: s_("Profiles|What's your status?")
- .input-group-append
- = reset_message_button
- .form-group.gl-form-group
- = status_form.gitlab_ui_checkbox_component :availability,
- s_("Profiles|Busy"),
- help_text: s_('Profiles|An indicator appears next to your name and avatar.'),
- checkbox_options: { data: { testid: "user-availability-checkbox" } },
- checked_value: availability["busy"],
- unchecked_value: availability["not_set"]
+ #js-user-profile-set-status-form
+ = f.fields_for :status, @user.status do |status_form|
+ = status_form.hidden_field :emoji, data: { js_name: 'emoji' }
+ = status_form.hidden_field :message, data: { js_name: 'message' }
+ = status_form.hidden_field :availability, data: { js_name: 'availability' }
+ = status_form.hidden_field :clear_status_after, data: { js_name: 'clearStatusAfter' }
.col-lg-12
%hr
.row.user-time-preferences.js-search-settings-section