2015-06-10 04:42:02 -04:00
|
|
|
- page_title 'Preferences'
|
2015-09-09 17:05:47 -04:00
|
|
|
- header_title page_title, profile_preferences_path
|
2015-09-09 17:29:19 -04:00
|
|
|
- @blank_container = true
|
2015-09-09 17:05:47 -04:00
|
|
|
|
2015-09-09 17:29:19 -04:00
|
|
|
.alert.alert-help
|
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
|
|
|
|
2015-06-11 23:08:47 -04:00
|
|
|
= form_for @user, url: profile_preferences_path, remote: true, method: :put, html: {class: 'js-preferences-form form-horizontal'} 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-08-25 17:31:33 -04:00
|
|
|
- Gitlab::ColorSchemes.each do |scheme|
|
2015-06-05 18:01:45 -04:00
|
|
|
= label_tag do
|
2015-08-25 17:31:33 -04:00
|
|
|
.preview= image_tag "#{scheme.css_class}-scheme-preview.png"
|
|
|
|
= f.radio_button :color_scheme_id, scheme.id
|
|
|
|
= scheme.name
|
2015-06-10 04:42:02 -04:00
|
|
|
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Behavior
|
|
|
|
.panel-body
|
2015-10-05 11:22:47 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :layout, class: 'control-label' do
|
|
|
|
Layout width
|
|
|
|
.col-sm-10
|
|
|
|
= f.select :layout, layout_choices, {}, class: 'form-control'
|
|
|
|
.help-block
|
2015-10-17 13:19:33 -04:00
|
|
|
Choose between fixed (max. 1200px) and fluid (100%) application layout.
|
2015-06-10 04:42:02 -04:00
|
|
|
.form-group
|
2015-06-11 23:08:47 -04:00
|
|
|
= f.label :dashboard, class: 'control-label' do
|
|
|
|
Default Dashboard
|
|
|
|
= link_to('(?)', help_page_path('profile', 'preferences') + '#default-dashboard', target: '_blank')
|
2015-06-10 04:42:02 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.select :dashboard, dashboard_choices, {}, class: 'form-control'
|
2015-07-13 12:24:15 -04:00
|
|
|
.form-group
|
|
|
|
= f.label :project_view, class: 'control-label' do
|
|
|
|
Project view
|
|
|
|
= link_to('(?)', help_page_path('profile', 'preferences') + '#default-project-view', target: '_blank')
|
|
|
|
.col-sm-10
|
|
|
|
= f.select :project_view, project_view_choices, {}, class: 'form-control'
|
|
|
|
.help-block
|
2015-10-17 13:19:33 -04:00
|
|
|
Choose what content you want to see on a project's home page.
|
2015-06-10 04:42:02 -04:00
|
|
|
.panel-footer
|
|
|
|
= f.submit 'Save', class: 'btn btn-save'
|