From 6ee158197dc97924ab6f53ce6075cb3a8b9786ce Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Wed, 6 Sep 2017 11:37:40 -0700 Subject: Add previews in preferences --- app/views/profiles/preferences/show.html.haml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/profiles/preferences/show.html.haml b/app/views/profiles/preferences/show.html.haml index 9787a567b4d..2b72eeab8d6 100644 --- a/app/views/profiles/preferences/show.html.haml +++ b/app/views/profiles/preferences/show.html.haml @@ -5,11 +5,18 @@ = form_for @user, url: profile_preferences_path, remote: true, method: :put, html: { class: 'row prepend-top-default js-preferences-form' } do |f| .col-lg-4.application-theme %h4.prepend-top-0 - GitLab theme + GitLab navigation theme + %p Customize the appearance of the application header and navigation sidebar. .col-lg-8.application-theme - Gitlab::Themes.each do |theme| = label_tag do - .preview{ class: theme.css_class } + .preview{ class: theme.name.downcase } + .preview-row + .quadrant.one + .quadrant.two + .preview-row + .quadrant.three + .quadrant.four = f.radio_button :theme_id, theme.id = theme.name -- cgit v1.2.3