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:
authorRobert Speicher <rspeicher@gmail.com>2015-06-10 11:42:02 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-06-14 00:59:11 +0300
commit1eb9a02f21d45f2fa301576723bbb0a23b5ba22d (patch)
tree749c9e8205f023489dfb8bb1d83477787d88194c /app/views/profiles/preferences
parent6de3958364f8d2adb68b8beecd53e4af6b17c353 (diff)
Add a form field to customize the dashboard preference
Diffstat (limited to 'app/views/profiles/preferences')
-rw-r--r--app/views/profiles/preferences/show.html.haml19
1 files changed, 17 insertions, 2 deletions
diff --git a/app/views/profiles/preferences/show.html.haml b/app/views/profiles/preferences/show.html.haml
index 680c0930bba..8f7c57c12bb 100644
--- a/app/views/profiles/preferences/show.html.haml
+++ b/app/views/profiles/preferences/show.html.haml
@@ -1,8 +1,10 @@
-- page_title "Design"
+- page_title 'Preferences'
%h3.page-title
= page_title
%p.light
- Appearance settings will be saved to your profile and made available across all devices.
+ 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.
%hr
= form_for @user, url: profile_preferences_path, remote: true, method: :put, html: {class: 'js-preferences-form'} do |f|
@@ -25,3 +27,16 @@
.preview= image_tag "#{color_scheme}-scheme-preview.png"
= f.radio_button :color_scheme_id, color_scheme_id
= color_scheme.tr('-_', ' ').titleize
+
+ .panel.panel-default
+ .panel-heading
+ Behavior
+ .panel-body
+ .form-group
+ = f.label :dashboard, class: 'control-label'
+ .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'