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

46 lines
1,002 B
Text
Raw Normal View History

= form_for @user, url: profile_update_path, remote: true, method: :put do |f|
2012-04-11 17:54:07 -04:00
%div
%h3.page_title Application theme
%br
.themes_opts
= label_tag do
.prev
= image_tag "gitlab_default.png"
2012-04-10 01:51:08 -04:00
= f.radio_button :theme_id, 1
Default
2012-03-01 14:23:50 -05:00
= label_tag do
.prev
= image_tag "gitlab_classic.png"
2012-04-10 01:51:08 -04:00
= f.radio_button :theme_id, 2
Classic
= label_tag do
.prev
= image_tag "gitlab_modern.png"
= f.radio_button :theme_id, 3
Modern
2012-04-10 01:51:08 -04:00
%br
.clearfix
%h3.page_title Code review
%br
.themes_opts
= label_tag do
.prev
= image_tag "white.png"
= f.radio_button :dark_scheme, false
White code preview
= label_tag do
.prev
= image_tag "dark.png"
= f.radio_button :dark_scheme, true
Dark code preview
:javascript
$(function(){
2012-03-01 14:23:50 -05:00
$(".edit_user input").bind("click", function() {
$(".edit_user").submit();
});
})