2015-06-10 04:42:02 -04:00
|
|
|
- page_title 'Preferences'
|
2015-06-05 13:57:01 -04:00
|
|
|
%h3.page-title
|
|
|
|
= page_title
|
|
|
|
%p.light
|
2015-06-10 04:42:02 -04:00
|
|
|
These settings allow you to customize the appearance and behavior of the site.
|
|
|
|
They are saved with your account and will persist to any device you use to
|
|
|
|
access the site.
|
2015-06-05 13:57:01 -04:00
|
|
|
%hr
|
|
|
|
|
2015-06-05 18:01:45 -04:00
|
|
|
= form_for @user, url: profile_preferences_path, remote: true, method: :put, html: {class: 'js-preferences-form'} do |f|
|
2015-06-05 13:57:01 -04:00
|
|
|
.panel.panel-default.application-theme
|
|
|
|
.panel-heading
|
|
|
|
Application theme
|
|
|
|
.panel-body
|
2015-06-05 15:50:36 -04:00
|
|
|
- Gitlab::Themes.each do |theme|
|
2015-06-05 13:57:01 -04:00
|
|
|
= label_tag do
|
2015-06-05 15:50:36 -04:00
|
|
|
.preview{class: theme.css_class}
|
|
|
|
= f.radio_button :theme_id, theme.id
|
|
|
|
= theme.name
|
2015-06-05 13:57:01 -04:00
|
|
|
|
2015-06-05 18:13:12 -04:00
|
|
|
.panel.panel-default.syntax-theme
|
2015-06-05 13:57:01 -04:00
|
|
|
.panel-heading
|
2015-06-05 18:13:12 -04:00
|
|
|
Syntax highlighting theme
|
2015-06-05 13:57:01 -04:00
|
|
|
.panel-body
|
2015-06-05 18:01:45 -04:00
|
|
|
- color_schemes.each do |color_scheme_id, color_scheme|
|
|
|
|
= label_tag do
|
|
|
|
.preview= image_tag "#{color_scheme}-scheme-preview.png"
|
|
|
|
= f.radio_button :color_scheme_id, color_scheme_id
|
|
|
|
= color_scheme.tr('-_', ' ').titleize
|
2015-06-10 04:42:02 -04:00
|
|
|
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Behavior
|
|
|
|
.panel-body
|
|
|
|
.form-group
|
2015-06-10 17:08:10 -04:00
|
|
|
= f.label :dashboard, 'Default Dashboard', class: 'control-label'
|
2015-06-10 04:42:02 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.select :dashboard, dashboard_choices, {}, class: 'form-control'
|
|
|
|
%p.help-block.hint
|
|
|
|
This setting allows you to customize the default Dashboard page.
|
|
|
|
.panel-footer
|
|
|
|
= f.submit 'Save', class: 'btn btn-save'
|