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

55 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-07-31 14:39:57 +00:00
%h3.page-title
My appearance settings
%p.light
Appearance settings saved to your profile and available across all devices
%hr
= form_for @user, url: profile_path, remote: true, method: :put do |f|
%fieldset.application-theme
%legend
Application theme
.update-feedback.hide
%i.icon-ok
Saved
.themes_opts
= label_tag do
2012-11-21 04:14:05 +00:00
.prev.default
2012-04-10 05:51:08 +00:00
= f.radio_button :theme_id, 1
Default
2012-03-01 19:23:50 +00:00
= label_tag do
2012-11-21 04:14:05 +00:00
.prev.classic
2012-04-10 05:51:08 +00:00
= f.radio_button :theme_id, 2
Classic
= label_tag do
2012-11-21 04:14:05 +00:00
.prev.modern
= f.radio_button :theme_id, 3
Modern
2012-11-21 04:14:05 +00:00
= label_tag do
.prev.gray
= f.radio_button :theme_id, 4
2013-07-02 11:06:25 +00:00
Gray
2012-11-21 04:14:05 +00:00
= label_tag do
.prev.violet
= f.radio_button :theme_id, 5
Violet
2012-04-10 05:51:08 +00:00
%br
.clearfix
%fieldset.code-preview-theme
%legend
Code preview theme
.update-feedback.hide
%i.icon-ok
Saved
2012-11-21 04:14:05 +00: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