gitlab-org--gitlab-foss/app/views/profiles/design.html.haml

55 lines
1.2 KiB
Text
Raw Normal View History

2015-04-30 13:06:18 -04:00
- page_title "Design"
2013-07-31 10:39:57 -04:00
%h3.page-title
Design Settings
2013-07-31 10:39:57 -04:00
%p.light
Appearance settings will be saved to your profile and made available across all devices.
2013-07-31 10:39:57 -04:00
%hr
= form_for @user, url: profile_path, remote: true, method: :put do |f|
%fieldset.application-theme
%legend
Application theme
.themes_opts
= label_tag do
2012-11-20 23:14:05 -05:00
.prev.default
2012-04-10 01:51:08 -04:00
= f.radio_button :theme_id, 1
Graphite
2012-03-01 14:23:50 -05:00
= label_tag do
2012-11-20 23:14:05 -05:00
.prev.classic
2012-04-10 01:51:08 -04:00
= f.radio_button :theme_id, 2
Charcoal
= label_tag do
2012-11-20 23:14:05 -05:00
.prev.modern
= f.radio_button :theme_id, 3
Green
2012-11-20 23:14:05 -05:00
= label_tag do
.prev.gray
= f.radio_button :theme_id, 4
2013-07-02 07:06:25 -04:00
Gray
2012-11-20 23:14:05 -05:00
= label_tag do
.prev.violet
= f.radio_button :theme_id, 5
Violet
2015-03-12 00:29:11 -04:00
= label_tag do
.prev.blue
= f.radio_button :theme_id, 6
Blue
2012-04-10 01:51:08 -04:00
%br
.clearfix
%fieldset.code-preview-theme
%legend
Code preview theme
2012-11-20 23:14:05 -05:00
.code_highlight_opts
- color_schemes.each do |color_scheme_id, color_scheme|
= label_tag do
.prev
= image_tag "#{color_scheme}-scheme-preview.png"
= f.radio_button :color_scheme_id, color_scheme_id
= color_scheme.gsub(/[-_]+/, ' ').humanize