2012-08-11 00:07:50 +02:00
|
|
|
= form_for @user, url: profile_update_path, remote: true, method: :put do |f|
|
2012-04-11 23:54:07 +02:00
|
|
|
%div
|
2012-08-13 07:52:10 +02:00
|
|
|
%h3.page_title Application theme
|
|
|
|
%br
|
|
|
|
.themes_opts
|
2012-06-04 00:37:27 +02:00
|
|
|
= label_tag do
|
2012-08-13 07:52:10 +02:00
|
|
|
.prev
|
|
|
|
= image_tag "gitlab_default.png"
|
2012-04-10 07:51:08 +02:00
|
|
|
= f.radio_button :theme_id, 1
|
|
|
|
Default
|
2012-03-01 20:23:50 +01:00
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
= label_tag do
|
2012-08-13 07:52:10 +02:00
|
|
|
.prev
|
|
|
|
= image_tag "gitlab_classic.png"
|
2012-04-10 07:51:08 +02:00
|
|
|
= f.radio_button :theme_id, 2
|
|
|
|
Classic
|
2012-06-11 19:52:32 +02:00
|
|
|
|
|
|
|
= label_tag do
|
2012-08-13 07:52:10 +02:00
|
|
|
.prev
|
|
|
|
= image_tag "gitlab_modern.png"
|
2012-06-11 19:52:32 +02:00
|
|
|
= f.radio_button :theme_id, 3
|
|
|
|
Modern
|
2012-04-10 07:51:08 +02:00
|
|
|
%br
|
2012-08-13 07:52:10 +02:00
|
|
|
.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
|
2011-12-20 21:47:09 +01:00
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
:javascript
|
|
|
|
$(function(){
|
2012-03-01 20:23:50 +01:00
|
|
|
$(".edit_user input").bind("click", function() {
|
|
|
|
$(".edit_user").submit();
|
|
|
|
});
|
|
|
|
})
|