gitlabhq/app/views/profile/design.html.haml
2012-03-01 21:23:50 +02:00

35 lines
880 B
Plaintext

= form_for @user, :url => profile_update_path, :remote => true, :method => :put do |f|
%h3 Application theme
%hr
.clearfix
= label_tag do
= f.radio_button :theme_id, 1
Default
= label_tag do
= f.radio_button :theme_id, 2
Classic
%br
%h3 Code review
%hr
.row
%label.span4{:for => "user_dark_scheme_false"}
%center
%h4
= f.radio_button :dark_scheme, false
White code preview
= image_tag "white.png", :width => 210, :class => "styled_image"
%label.span4{:for => "user_dark_scheme_true"}
%center
%h4
= f.radio_button :dark_scheme, true
Dark code preview
= image_tag "dark.png", :width => 210, :class => "styled_image"
:javascript
$(function(){
$(".edit_user input").bind("click", function() {
$(".edit_user").submit();
});
})