Use same login layout between CE and EE versions

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-07-11 15:05:40 +03:00
parent a66d6a523b
commit b93c1a562c
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
4 changed files with 44 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View file

@ -6,11 +6,18 @@
}
.login-box{
max-width: 304px;
position: relative;
@include border-radius(5px);
margin: auto;
background: white;
padding: 20px;
background: #f5f5f5;
border: 1px solid #EEE;
}
.brand-image {
margin-bottom: 20px;
img {
max-width: 100%;
}
}
.login-logo{
@ -19,7 +26,7 @@
}
.form-control {
background-color: #f1f1f1;
background-color: #FFF;
font-size: 16px;
padding: 14px 10px;
width: 100%;

View file

@ -0,0 +1,23 @@
module BrandHelper
def brand_title
'GitLab Community Edition'
end
def brand_image
image_tag 'brand_logo.png'
end
def brand_text
default_text =<<eos
### GitLab is open source software to collaborate on code.
Manage git repositories with fine grained access controls that keep your code secure.
Perform code reviews and enhance collaboration with merge requests.
Each project can also have an issue tracker and a wiki.
Used by more than 50,000 organizations, GitLab is the most popular solution to manage git repositories on-premises.
Read more about GitLab at #{link_to "www.gitlab.com", "https://www.gitlab.com/", target: "_blank"}.
eos
markdown default_text
end
end

View file

@ -5,13 +5,16 @@
= render "layouts/flash"
.container
.content
.center
%h1 GitLab
%p.light
GitLab is open source software to collaborate on code.
%br
Sign in or browse for #{link_to "public projects", public_projects_path}.
.login-title
%h1= brand_title
%hr
.container
.content
.row
.col-sm-7
.brand-image
= brand_image
.brand_text
= brand_text
.col-sm-5
= yield