2021-06-08 01:23:25 +05:30
|
|
|
- parsed_with_gfm = (_("Content parsed with %{link}.") % { link: link_to('GitLab Flavored Markdown', help_page_path('user/markdown'), target: '_blank') }).html_safe
|
2020-05-24 23:13:21 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
= form_for @appearance, url: admin_appearances_path, html: { class: 'gl-mt-3' } do |f|
|
2016-06-02 11:05:42 +05:30
|
|
|
= form_errors(@appearance)
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
.row
|
|
|
|
.col-lg-4.profile-settings-sidebar
|
2021-06-08 01:23:25 +05:30
|
|
|
%h4.gl-mt-0= _('Navigation bar')
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
.col-lg-8
|
|
|
|
.form-group
|
2021-06-08 01:23:25 +05:30
|
|
|
= f.label :header_logo, _('Header logo'), class: 'col-form-label label-bold pt-0'
|
2019-03-02 22:35:43 +05:30
|
|
|
%p
|
|
|
|
- if @appearance.header_logo?
|
|
|
|
= image_tag @appearance.header_logo_path, class: 'appearance-light-logo-preview'
|
|
|
|
- if @appearance.persisted?
|
|
|
|
%br
|
2021-06-08 01:23:25 +05:30
|
|
|
= link_to _('Remove header logo'), header_logos_admin_appearances_path, data: { confirm: _("Header logo will be removed. Are you sure?") }, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm"
|
2019-03-02 22:35:43 +05:30
|
|
|
%hr
|
|
|
|
= f.hidden_field :header_logo_cache
|
2021-02-22 17:27:13 +05:30
|
|
|
= f.file_field :header_logo, class: "", accept: 'image/*'
|
2019-03-02 22:35:43 +05:30
|
|
|
.hint
|
2021-06-08 01:23:25 +05:30
|
|
|
= _('Maximum file size is 1MB. Pages are optimized for a 28px tall header logo')
|
2019-03-02 22:35:43 +05:30
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.col-lg-4.profile-settings-sidebar
|
2020-06-23 00:09:42 +05:30
|
|
|
%h4.gl-mt-0 Favicon
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
.col-lg-8
|
|
|
|
.form-group
|
2021-06-08 01:23:25 +05:30
|
|
|
= f.label :favicon, _('Favicon'), class: 'col-form-label label-bold pt-0'
|
2019-03-02 22:35:43 +05:30
|
|
|
%p
|
|
|
|
- if @appearance.favicon?
|
|
|
|
= image_tag @appearance.favicon_path, class: 'appearance-light-logo-preview'
|
|
|
|
- if @appearance.persisted?
|
|
|
|
%br
|
2021-06-08 01:23:25 +05:30
|
|
|
= link_to _('Remove favicon'), favicon_admin_appearances_path, data: { confirm: _("Favicon will be removed. Are you sure?") }, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm"
|
2019-03-02 22:35:43 +05:30
|
|
|
%hr
|
|
|
|
= f.hidden_field :favicon_cache
|
2021-02-22 17:27:13 +05:30
|
|
|
= f.file_field :favicon, class: '', accept: 'image/*'
|
2019-03-02 22:35:43 +05:30
|
|
|
.hint
|
2021-06-08 01:23:25 +05:30
|
|
|
= _("Maximum file size is 1MB. Image size must be 32x32px. Allowed image formats are %{favicon_extension_whitelist}.") % { favicon_extension_whitelist: favicon_extension_whitelist }
|
2019-03-02 22:35:43 +05:30
|
|
|
%br
|
2021-06-08 01:23:25 +05:30
|
|
|
= _("Images with incorrect dimensions are not resized automatically, and may result in unexpected behavior.")
|
2018-11-08 19:23:39 +05:30
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
= render partial: 'admin/appearances/system_header_footer_form', locals: { form: f }
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.col-lg-4.profile-settings-sidebar
|
2021-06-08 01:23:25 +05:30
|
|
|
%h4.gl-mt-0= _('Sign in/Sign up pages')
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
.col-lg-8
|
|
|
|
.form-group
|
|
|
|
= f.label :title, class: 'col-form-label label-bold'
|
2021-03-11 19:13:27 +05:30
|
|
|
= f.text_field :title, class: "form-control gl-form-input"
|
2019-03-02 22:35:43 +05:30
|
|
|
.form-group
|
|
|
|
= f.label :description, class: 'col-form-label label-bold'
|
2021-03-11 19:13:27 +05:30
|
|
|
= f.text_area :description, class: "form-control gl-form-input", rows: 10
|
2019-03-02 22:35:43 +05:30
|
|
|
.hint
|
2020-05-24 23:13:21 +05:30
|
|
|
= parsed_with_gfm
|
2019-03-02 22:35:43 +05:30
|
|
|
.form-group
|
|
|
|
= f.label :logo, class: 'col-form-label label-bold pt-0'
|
|
|
|
%p
|
|
|
|
- if @appearance.logo?
|
|
|
|
= image_tag @appearance.logo_path, class: 'appearance-logo-preview'
|
|
|
|
- if @appearance.persisted?
|
|
|
|
%br
|
2021-06-08 01:23:25 +05:30
|
|
|
= link_to _('Remove logo'), logo_admin_appearances_path, data: { confirm: _("Logo will be removed. Are you sure?") }, method: :delete, class: "btn gl-button btn-danger btn-danger-secondary btn-sm remove-logo"
|
2019-03-02 22:35:43 +05:30
|
|
|
%hr
|
|
|
|
= f.hidden_field :logo_cache
|
2021-02-22 17:27:13 +05:30
|
|
|
= f.file_field :logo, class: "", accept: 'image/*'
|
2019-03-02 22:35:43 +05:30
|
|
|
.hint
|
2021-06-08 01:23:25 +05:30
|
|
|
= _('Maximum file size is 1MB. Pages are optimized for a 640x360 px logo.')
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.col-lg-4.profile-settings-sidebar
|
2021-06-08 01:23:25 +05:30
|
|
|
%h4.gl-mt-0= _('New project pages')
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
.col-lg-8
|
|
|
|
.form-group
|
|
|
|
= f.label :new_project_guidelines, class: 'col-form-label label-bold'
|
|
|
|
%p
|
2021-03-11 19:13:27 +05:30
|
|
|
= f.text_area :new_project_guidelines, class: "form-control gl-form-input", rows: 10
|
2019-03-02 22:35:43 +05:30
|
|
|
.hint
|
2020-05-24 23:13:21 +05:30
|
|
|
= parsed_with_gfm
|
|
|
|
|
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.col-lg-4.profile-settings-sidebar
|
2021-06-08 01:23:25 +05:30
|
|
|
%h4.gl-mt-0= _('Profile image guideline')
|
2020-05-24 23:13:21 +05:30
|
|
|
|
|
|
|
.col-lg-8
|
|
|
|
.form-group
|
|
|
|
= f.label :profile_image_guidelines, class: 'col-form-label label-bold'
|
|
|
|
%p
|
2021-03-11 19:13:27 +05:30
|
|
|
= f.text_area :profile_image_guidelines, class: "form-control gl-form-input", rows: 10
|
2020-05-24 23:13:21 +05:30
|
|
|
.hint
|
|
|
|
= parsed_with_gfm
|
2019-03-02 22:35:43 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
.gl-mt-3.gl-mb-3
|
2021-06-08 01:23:25 +05:30
|
|
|
= f.submit _('Update appearance settings'), class: 'btn gl-button btn-confirm'
|
2020-05-24 23:13:21 +05:30
|
|
|
- if @appearance.persisted? || @appearance.updated_at
|
|
|
|
.mt-4
|
|
|
|
- if @appearance.persisted?
|
|
|
|
Preview last save:
|
2021-06-08 01:23:25 +05:30
|
|
|
= link_to _('Sign-in page'), preview_sign_in_admin_appearances_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer'
|
|
|
|
= link_to _('New project page'), new_project_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer'
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
- if @appearance.updated_at
|
|
|
|
%span.float-right
|
|
|
|
Last edit #{time_ago_with_tooltip(@appearance.updated_at)}
|