Modern theme restyled. Better Profile -> Ui page

This commit is contained in:
Dmitriy Zaporozhets 2012-08-13 08:52:10 +03:00
parent 463644c882
commit 6ebd360cf2
7 changed files with 276 additions and 185 deletions

View file

@ -1,7 +1,7 @@
- commit = CommitDecorator.decorate(commit)
%li.wll.commit
%li.commit
%p
= link_to commit.short_id(8), project_commit_path(project, id: commit.id), class: "commit_short_id"
= link_to commit.short_id(8), project_commit_path(project, id: commit.id), class: "commit_short_id"
%strong.cdark= commit.author_name
–
= image_tag gravatar_icon(commit.author_email), class: "avatar", width: 16

View file

@ -1,37 +1,41 @@
= form_for @user, url: profile_update_path, remote: true, method: :put do |f|
%div
%h3 Application theme
%hr
.clearfix
%h3.page_title Application theme
%br
.themes_opts
= label_tag do
.prev
= image_tag "gitlab_default.png"
= f.radio_button :theme_id, 1
Default
= label_tag do
.prev
= image_tag "gitlab_classic.png"
= f.radio_button :theme_id, 2
Classic
= label_tag do
.prev
= image_tag "gitlab_modern.png"
= f.radio_button :theme_id, 3
Modern
%br
%h3 Code review
%hr
.row
%label.span3{for: "user_dark_scheme_false"}
.thumbnail
= image_tag "white.png", width: 260, class: "styled_image"
.caption
%h5
= f.radio_button :dark_scheme, false
White code preview
%label.span3{for: "user_dark_scheme_true"}
.thumbnail
= image_tag "dark.png", width: 260, class: "styled_image"
.caption
%h5
= f.radio_button :dark_scheme, true
Dark code preview
.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(){