Commit b93c1a56 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Use same login layout between CE and EE versions

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent a66d6a52
...@@ -6,11 +6,18 @@ ...@@ -6,11 +6,18 @@
} }
.login-box{ .login-box{
max-width: 304px;
position: relative; position: relative;
@include border-radius(5px);
margin: auto; margin: auto;
background: white; padding: 20px;
background: #f5f5f5;
border: 1px solid #EEE;
}
.brand-image {
margin-bottom: 20px;
img {
max-width: 100%;
}
} }
.login-logo{ .login-logo{
...@@ -19,7 +26,7 @@ ...@@ -19,7 +26,7 @@
} }
.form-control { .form-control {
background-color: #f1f1f1; background-color: #FFF;
font-size: 16px; font-size: 16px;
padding: 14px 10px; padding: 14px 10px;
width: 100%; width: 100%;
......
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
...@@ -5,13 +5,16 @@ ...@@ -5,13 +5,16 @@
= render "layouts/flash" = render "layouts/flash"
.container .container
.content .content
.center .login-title
%h1 GitLab %h1= brand_title
%p.light
GitLab is open source software to collaborate on code.
%br
Sign in or browse for #{link_to "public projects", public_projects_path}.
%hr %hr
.container .container
.content .content
.row
.col-sm-7
.brand-image
= brand_image
.brand_text
= brand_text
.col-sm-5
= yield = yield
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment