Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
acc5302c
Commit
acc5302c
authored
Sep 12, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve profile layout after omniauth changes
parent
64f026b2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
67 additions
and
47 deletions
+67
-47
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+14
-0
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
+4
-0
app/helpers/profile_helper.rb
app/helpers/profile_helper.rb
+7
-0
app/views/profile/password.html.haml
app/views/profile/password.html.haml
+22
-24
app/views/profile/show.html.haml
app/views/profile/show.html.haml
+19
-20
config/gitlab.yml.example
config/gitlab.yml.example
+1
-3
No files found.
app/assets/stylesheets/common.scss
View file @
acc5302c
...
@@ -689,3 +689,17 @@ li.note {
...
@@ -689,3 +689,17 @@ li.note {
text-align
:center
;
text-align
:center
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.oauth_select_holder
{
padding
:
20px
;
img
{
padding
:
5px
;
margin-right
:
10px
;
}
.active
{
img
{
border
:
1px
solid
#ccc
;
@include
border-radius
(
5px
);
}
}
}
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
View file @
acc5302c
...
@@ -65,6 +65,10 @@
...
@@ -65,6 +65,10 @@
border-color
:
#CCC
;
border-color
:
#CCC
;
@include
solid_shade
;
@include
solid_shade
;
&
.white
{
background
:
#fff
;
}
ul
{
ul
{
margin
:
0
;
margin
:
0
;
}
}
...
...
app/helpers/profile_helper.rb
0 → 100644
View file @
acc5302c
module
ProfileHelper
def
oauth_active_class
provider
if
current_user
.
provider
==
provider
.
to_s
'active'
end
end
end
app/views/profile/password.html.haml
View file @
acc5302c
-
if
Gitlab
.
config
.
omniauth_enabled?
%h3
.page_title
Accounts
%hr
%p
.hint
Tip: Click on icon to activate sigin with one of the following services
.oauth_select_holder
-
User
.
omniauth_providers
.
each
do
|
provider
|
%span
{
class:
oauth_active_class
(
provider
)
}
=
link_to
authbutton
(
provider
,
32
),
omniauth_authorize_path
(
User
,
provider
)
.clearfix.prepend-top-20
%h3
.page_title
Password
%h3
.page_title
Password
%hr
%hr
=
form_for
@user
,
url:
profile_password_path
,
method: :put
do
|
f
|
=
form_for
@user
,
url:
profile_password_path
,
method: :put
do
|
f
|
.row
.span7
.data
%p
.slead
After successful password update you will be redirected to login page where you should login with new password
%p
.slead
After successful password update you will be redirected to login page where you should login with new password
-
if
@user
.
errors
.
any?
-
if
@user
.
errors
.
any?
.alert-message.block-message.error
.alert-message.block-message.error
...
@@ -18,14 +25,5 @@
...
@@ -18,14 +25,5 @@
.clearfix
.clearfix
=
f
.
label
:password_confirmation
=
f
.
label
:password_confirmation
.input
=
f
.
password_field
:password_confirmation
.input
=
f
.
password_field
:password_confirmation
-
if
Gitlab
.
config
.
omniauth_enabled?
.span5.right
.alert.alert-info
%strong
Tip: Use one of the following sites to login
%ul
.unstyled
-
User
.
omniauth_providers
.
each
do
|
provider
|
%li
=
link_to
authbutton
(
provider
),
|
omniauth_authorize_path
(
User
,
provider
)
|
.actions
.actions
=
f
.
submit
'Save'
,
class:
"btn save-btn"
=
f
.
submit
'Save'
,
class:
"btn save-btn"
app/views/profile/show.html.haml
View file @
acc5302c
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
%small
%small
=
@user
.
email
=
@user
.
email
%hr
%hr
=
form_for
@user
,
url:
profile_update_path
,
method: :put
,
html:
{
class:
"edit_user form-horizontal"
}
do
|
f
|
=
form_for
@user
,
url:
profile_update_path
,
method: :put
,
html:
{
class:
"edit_user form-horizontal"
}
do
|
f
|
...
@@ -28,7 +27,23 @@
...
@@ -28,7 +27,23 @@
=
f
.
text_field
:email
,
class:
"input-xlarge"
=
f
.
text_field
:email
,
class:
"input-xlarge"
%span
.help-block
We also use email for avatar detection.
%span
.help-block
We also use email for avatar detection.
.span5.right
%div
.tips
%h6
Tips:
%ul
-
unless
Gitlab
.
config
.
disable_gravatar?
%li
%p
.hint
You can change your avatar at gravatar.com
-
if
Gitlab
.
config
.
omniauth_enabled?
&&
@user
.
provider?
%li
%p
.hint
You can login through
#{
@user
.
provider
.
titleize
}
!
=
link_to
"click here to change"
,
profile_password_path
%hr
%hr
.row
.span7
.control-group
.control-group
=
f
.
label
:skype
,
class:
"control-label"
=
f
.
label
:skype
,
class:
"control-label"
.controls
=
f
.
text_field
:skype
,
class:
"input-xlarge"
.controls
=
f
.
text_field
:skype
,
class:
"input-xlarge"
...
@@ -44,23 +59,7 @@
...
@@ -44,23 +59,7 @@
=
f
.
text_area
:bio
,
rows:
6
,
class:
"input-xlarge"
,
maxlength:
250
=
f
.
text_area
:bio
,
rows:
6
,
class:
"input-xlarge"
,
maxlength:
250
%span
.help-block
Tell us about yourself in fewer than 250 characters.
%span
.help-block
Tell us about yourself in fewer than 250 characters.
.span5.right
.span5.right
.ui-box.white
-
unless
Gitlab
.
config
.
disable_gravatar?
%p
.alert.alert-info
%strong
Tip:
You can change your avatar at gravatar.com
-
@user
.
provider
=
'twitter'
-
if
Gitlab
.
config
.
omniauth_enabled?
&&
@user
.
provider?
.ui-box
.ui-box-body
%h4
Omniauth Providers:
=
link_to
"Change"
,
profile_password_path
,
class:
"btn small right"
You can login through
#{
@user
.
provider
.
titleize
}
!
=
authbutton
(
@user
.
provider
,
32
)
.ui-box
.ui-box-body
.ui-box-body
%h4
%h4
Personal projects:
Personal projects:
...
@@ -71,7 +70,7 @@
...
@@ -71,7 +70,7 @@
.progress
.progress
.bar
{
style:
"width: #{current_user.projects_limit_percent}%;"
}
.bar
{
style:
"width: #{current_user.projects_limit_percent}%;"
}
.ui-box
.ui-box
.white
.ui-box-body
.ui-box-body
%h4
%h4
SSH public keys:
SSH public keys:
...
...
config/gitlab.yml.example
View file @
acc5302c
...
@@ -26,8 +26,6 @@ app:
...
@@ -26,8 +26,6 @@ app:
# disable_gravatar: true # default: false - Disable user avatars from Gravatar.com
# disable_gravatar: true # default: false - Disable user avatars from Gravatar.com
#
#
# 2. Auth settings
# 2. Auth settings
# ==========================
# ==========================
...
@@ -44,7 +42,7 @@ ldap:
...
@@ -44,7 +42,7 @@ ldap:
omniauth:
omniauth:
# Enable ability for users
# Enable ability for users
# to login via twitter, google ..
# to login via twitter, google ..
enabled:
tru
e
enabled:
fals
e
# IMPORTANT!
# IMPORTANT!
# It allows user to login without having user account
# It allows user to login without having user account
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment