BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ce5928f4
Unverified
Commit
ce5928f4
authored
May 28, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'profile-settings'
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
Conflicts: app/views/profiles/accounts/show.html.haml
parents
ad346233
9e50f28e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
129 additions
and
110 deletions
+129
-110
profile.html.haml
app/views/layouts/profile.html.haml
+2
-2
show.html.haml
app/views/profiles/accounts/show.html.haml
+49
-41
applications.html.haml
app/views/profiles/applications.html.haml
+10
-6
design.html.haml
app/views/profiles/design.html.haml
+41
-39
index.html.haml
app/views/profiles/emails/index.html.haml
+19
-15
index.html.haml
app/views/profiles/keys/index.html.haml
+1
-1
show.html.haml
app/views/profiles/notifications/show.html.haml
+1
-1
edit.html.haml
app/views/profiles/passwords/edit.html.haml
+2
-1
show.html.haml
app/views/profiles/show.html.haml
+2
-2
notifications.rb
features/steps/profile/notifications.rb
+1
-1
profile.rb
features/steps/profile/profile.rb
+1
-1
No files found.
app/views/layouts/profile.html.haml
View file @
ce5928f4
-
page_title
"
Profile
"
-
page_title
"
Settings
"
-
header_title
"
Profile
"
,
profile_path
-
header_title
"
Settings
"
,
profile_path
-
sidebar
"profile"
-
sidebar
"profile"
=
render
template:
"layouts/application"
=
render
template:
"layouts/application"
app/views/profiles/accounts/show.html.haml
View file @
ce5928f4
-
page_title
"Account"
-
page_title
"Account"
%h3
.page-title
=
page_title
%p
.light
Change your username and basic account settings.
%hr
-
if
current_user
.
ldap_user?
-
if
current_user
.
ldap_user?
.alert.alert-info
.alert.alert-info
Some options are unavailable for LDAP accounts
Some options are unavailable for LDAP accounts
.account-page
.account-page
%fieldse
t
.update-token
.panel.panel-defaul
t.update-token
%legend
.panel-heading
Reset Private token
Reset Private token
%div
.panel-body
=
form_for
@user
,
url:
reset_private_token_profile_path
,
method: :put
do
|
f
|
=
form_for
@user
,
url:
reset_private_token_profile_path
,
method: :put
do
|
f
|
.data
.data
%p
%p
...
@@ -27,12 +32,11 @@
...
@@ -27,12 +32,11 @@
=
f
.
submit
'Generate'
,
class:
"btn success btn-build-token"
=
f
.
submit
'Generate'
,
class:
"btn success btn-build-token"
-
unless
current_user
.
ldap_user?
-
unless
current_user
.
ldap_user?
%fieldset
-
if
current_user
.
otp_required_for_login
-
if
current_user
.
otp_required_for_login
.panel.panel-success
%legend
.text-success
.panel-heading
=
icon
(
'check'
)
Two-factor Authentication enabled
Two-factor Authentication enabled
%div
.panel-body
.pull-right
.pull-right
=
link_to
'Disable Two-factor Authentication'
,
profile_two_factor_auth_path
,
method: :delete
,
class:
'btn btn-close btn-sm'
,
=
link_to
'Disable Two-factor Authentication'
,
profile_two_factor_auth_path
,
method: :delete
,
class:
'btn btn-close btn-sm'
,
data:
{
confirm:
'Are you sure?'
}
data:
{
confirm:
'Are you sure?'
}
...
@@ -43,9 +47,11 @@
...
@@ -43,9 +47,11 @@
=
link_to
'generate new ones'
,
codes_profile_two_factor_auth_path
,
method: :post
,
data:
{
confirm:
'Are you sure?'
}
=
link_to
'generate new ones'
,
codes_profile_two_factor_auth_path
,
method: :post
,
data:
{
confirm:
'Are you sure?'
}
invalidating all previous codes.
invalidating all previous codes.
-
else
-
else
%legend
Two-factor Authentication
.panel.panel-default
%div
.panel-heading
Two-factor Authentication
.panel-body
%p
%p
Increase your account's security by enabling two-factor authentication (2FA).
Increase your account's security by enabling two-factor authentication (2FA).
%p
%p
...
@@ -55,42 +61,45 @@
...
@@ -55,42 +61,45 @@
=
link_to
'Enable Two-factor Authentication'
,
new_profile_two_factor_auth_path
,
class:
'btn btn-success'
=
link_to
'Enable Two-factor Authentication'
,
new_profile_two_factor_auth_path
,
class:
'btn btn-success'
-
if
show_profile_social_tab?
-
if
show_profile_social_tab?
%fieldset
.panel.panel-default
%legend
Connected Accounts
.panel-heading
.oauth-buttons.append-bottom-10
Connected Accounts
%p
Click on icon to activate signin with one of the following services
.panel-body
-
enabled_social_providers
.
each
do
|
provider
|
.oauth-buttons.append-bottom-10
.btn-group
%p
Click on icon to activate signin with one of the following services
=
link_to
oauth_image_tag
(
provider
),
omniauth_authorize_path
(
User
,
provider
),
-
enabled_social_providers
.
each
do
|
provider
|
method: :post
,
class:
"btn btn-lg
#{
'active'
if
oauth_active?
(
provider
)
}
"
.btn-group
-
if
oauth_active?
(
provider
)
=
link_to
oauth_image_tag
(
provider
),
omniauth_authorize_path
(
User
,
provider
),
=
link_to
unlink_profile_account_path
(
provider:
provider
),
method: :delete
,
class:
'btn btn-lg'
do
method: :post
,
class:
"btn btn-lg
#{
'active'
if
oauth_active?
(
provider
)
}
"
=
icon
(
'close'
)
-
if
oauth_active?
(
provider
)
=
link_to
unlink_profile_account_path
(
provider:
provider
),
method: :delete
,
class:
'btn btn-lg'
do
=
icon
(
'close'
)
-
if
show_profile_username_tab?
-
if
show_profile_username_tab?
%fieldset
.update-username
.panel.panel-warning
.update-username
%legend
.panel-heading
Change Username
Change Username
=
form_for
@user
,
url:
update_username_profile_path
,
method: :put
,
remote:
true
do
|
f
|
.panel-body
%p
=
form_for
@user
,
url:
update_username_profile_path
,
method: :put
,
remote:
true
do
|
f
|
Changing your username will change path to all personal projects!
%div
=
f
.
text_field
:username
,
required:
true
,
class:
'form-control'
.loading-gif.hide
%p
%p
=
icon
(
'spinner spin'
)
Changing your username will change path to all personal projects!
Saving new username
%div
%p
.light
=
f
.
text_field
:username
,
required:
true
,
class:
'form-control'
=
user_url
(
@user
)
%div
.loading-gif.hide
=
f
.
submit
'Save username'
,
class:
"btn btn-warning"
%p
=
icon
(
'spinner spin'
)
Saving new username
%p
.light
=
user_url
(
@user
)
%div
=
f
.
submit
'Save username'
,
class:
"btn btn-warning"
-
if
show_profile_remove_tab?
-
if
show_profile_remove_tab?
%fieldset
.remove-account
.panel.panel-danger
.remove-account
%legend
.panel-heading
Remove account
Remove account
%div
.panel-body
-
if
@user
.
can_be_removed?
-
if
@user
.
can_be_removed?
%p
Deleting an account has the following effects:
%p
Deleting an account has the following effects:
%ul
%ul
...
@@ -106,4 +115,3 @@
...
@@ -106,4 +115,3 @@
%strong
#{
@user
.
solo_owned_groups
.
map
(
&
:name
).
join
(
', '
)
}
%strong
#{
@user
.
solo_owned_groups
.
map
(
&
:name
).
join
(
', '
)
}
%p
%p
You must transfer ownership or delete these groups before you can delete yur account.
You must transfer ownership or delete these groups before you can delete yur account.
app/views/profiles/applications.html.haml
View file @
ce5928f4
-
page_title
"Applications"
-
page_title
"Applications"
%h3
.page-title
%h3
.page-title
Application Settings
=
page_title
%p
.light
%p
.light
OAuth2 protocol settings below.
OAuth2 protocol settings below.
%hr
%fieldset
.oauth-applications
.oauth-applications
%legend
Your applications
%h3
%p
=
link_to
'New Application'
,
new_oauth_application_path
,
class:
'btn btn-success'
Your applications
.pull-right
=
link_to
'New Application'
,
new_oauth_application_path
,
class:
'btn btn-success'
-
if
@applications
.
any?
-
if
@applications
.
any?
%table
.table.table-striped
%table
.table.table-striped
%thead
%thead
...
@@ -27,8 +30,9 @@
...
@@ -27,8 +30,9 @@
%td
=
link_to
'Edit'
,
edit_oauth_application_path
(
application
),
class:
'btn btn-link btn-sm'
%td
=
link_to
'Edit'
,
edit_oauth_application_path
(
application
),
class:
'btn btn-link btn-sm'
%td
=
render
'doorkeeper/applications/delete_form'
,
application:
application
%td
=
render
'doorkeeper/applications/delete_form'
,
application:
application
%fieldset
.oauth-authorized-applications.prepend-top-20
.oauth-authorized-applications.prepend-top-20
%legend
Authorized applications
%h3
Authorized applications
-
if
@authorized_tokens
.
any?
-
if
@authorized_tokens
.
any?
%table
.table.table-striped
%table
.table.table-striped
...
...
app/views/profiles/design.html.haml
View file @
ce5928f4
-
page_title
"Design"
-
page_title
"Design"
%h3
.page-title
%h3
.page-title
Design Settings
=
page_title
%p
.light
%p
.light
Appearance settings will be saved to your profile and made available across all devices.
Appearance settings will be saved to your profile and made available across all devices.
%hr
%hr
=
form_for
@user
,
url:
profile_path
,
remote:
true
,
method: :put
do
|
f
|
=
form_for
@user
,
url:
profile_path
,
remote:
true
,
method: :put
do
|
f
|
%fieldse
t
.application-theme
.panel.panel-defaul
t.application-theme
%legend
.panel-heading
Application theme
Application theme
.themes_opts
.panel-body
=
label_tag
do
.themes_opts
.prev.default
=
label_tag
do
=
f
.
radio_button
:theme_id
,
1
.prev.default
Graphite
=
f
.
radio_button
:theme_id
,
1
Graphite
=
label_tag
do
=
label_tag
do
.prev.classic
.prev.classic
=
f
.
radio_button
:theme_id
,
2
=
f
.
radio_button
:theme_id
,
2
Charcoal
Charcoal
=
label_tag
do
=
label_tag
do
.prev.modern
.prev.modern
=
f
.
radio_button
:theme_id
,
3
=
f
.
radio_button
:theme_id
,
3
Green
Green
=
label_tag
do
=
label_tag
do
.prev.gray
.prev.gray
=
f
.
radio_button
:theme_id
,
4
=
f
.
radio_button
:theme_id
,
4
Gray
Gray
=
label_tag
do
=
label_tag
do
.prev.violet
.prev.violet
=
f
.
radio_button
:theme_id
,
5
=
f
.
radio_button
:theme_id
,
5
Violet
Violet
=
label_tag
do
=
label_tag
do
.prev.blue
.prev.blue
=
f
.
radio_button
:theme_id
,
6
=
f
.
radio_button
:theme_id
,
6
Blue
Blue
%br
%br
.clearfix
.clearfix
%fieldse
t
.code-preview-theme
.panel.panel-defaul
t.code-preview-theme
%legend
.panel-heading
Code preview theme
Code preview theme
.code_highlight_opts
.panel-body
-
color_schemes
.
each
do
|
color_scheme_id
,
color_scheme
|
.code_highlight_opts
=
label_tag
do
-
color_schemes
.
each
do
|
color_scheme_id
,
color_scheme
|
.prev
=
label_tag
do
=
image_tag
"
#{
color_scheme
}
-scheme-preview.png"
.prev
=
f
.
radio_button
:color_scheme_id
,
color_scheme_id
=
image_tag
"
#{
color_scheme
}
-scheme-preview.png"
=
color_scheme
.
gsub
(
/[-_]+/
,
' '
).
humanize
=
f
.
radio_button
:color_scheme_id
,
color_scheme_id
=
color_scheme
.
gsub
(
/[-_]+/
,
' '
).
humanize
app/views/profiles/emails/index.html.haml
View file @
ce5928f4
-
page_title
"Emails"
-
page_title
"Emails"
%h3
.page-title
%h3
.page-title
Email Settings
=
page_title
%p
.light
%p
.light
Your
Control emails linked to your account
%b
Primary Email
will be used for avatar detection and web based operations, such as edits and merges.
%p
.light
Your
%b
Notification Email
will be used for account notifications.
%p
.light
Your
%b
Public Email
will be displayed on your public profile.
%p
.light
All email addresses will be used to identify your commits.
%hr
%hr
%ul
%li
Your
%b
Primary Email
will be used for avatar detection and web based operations, such as edits and merges.
%li
Your
%b
Notification Email
will be used for account notifications.
%li
Your
%b
Public Email
will be displayed on your public profile.
%li
All email addresses will be used to identify your commits.
.panel.panel-default
.panel.panel-default
.panel-heading
.panel-heading
Emails (
#{
@emails
.
count
+
1
}
)
Emails (
#{
@emails
.
count
+
1
}
)
...
...
app/views/profiles/keys/index.html.haml
View file @
ce5928f4
-
page_title
"SSH Keys"
-
page_title
"SSH Keys"
%h3
.page-title
%h3
.page-title
SSH Keys Settings
=
page_title
.pull-right
.pull-right
=
link_to
"Add SSH Key"
,
new_profile_key_path
,
class:
"btn btn-new"
=
link_to
"Add SSH Key"
,
new_profile_key_path
,
class:
"btn btn-new"
%p
.light
%p
.light
...
...
app/views/profiles/notifications/show.html.haml
View file @
ce5928f4
-
page_title
"Notifications"
-
page_title
"Notifications"
%h3
.page-title
%h3
.page-title
Notifications Settings
=
page_title
%p
.light
%p
.light
These are your global notification settings.
These are your global notification settings.
%hr
%hr
...
...
app/views/profiles/passwords/edit.html.haml
View file @
ce5928f4
-
page_title
"Password"
-
page_title
"Password"
%h3
.page-title
Password Settings
%h3
.page-title
=
page_title
%p
.light
%p
.light
-
if
@user
.
password_automatically_set?
-
if
@user
.
password_automatically_set?
Set your password.
Set your password.
...
...
app/views/profiles/show.html.haml
View file @
ce5928f4
-
page_title
"
Settings
"
-
page_title
"
Profile
"
%h3
.page-title
%h3
.page-title
Profile Settings
=
page_title
%p
.light
%p
.light
This information will appear on your profile.
This information will appear on your profile.
-
if
current_user
.
ldap_user?
-
if
current_user
.
ldap_user?
...
...
features/steps/profile/notifications.rb
View file @
ce5928f4
...
@@ -7,6 +7,6 @@ class Spinach::Features::ProfileNotifications < Spinach::FeatureSteps
...
@@ -7,6 +7,6 @@ class Spinach::Features::ProfileNotifications < Spinach::FeatureSteps
end
end
step
'I should see global notifications settings'
do
step
'I should see global notifications settings'
do
page
.
should
have_content
"Notifications
Settings
"
page
.
should
have_content
"Notifications"
end
end
end
end
features/steps/profile/profile.rb
View file @
ce5928f4
...
@@ -3,7 +3,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
...
@@ -3,7 +3,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
include
SharedPaths
include
SharedPaths
step
'I should see my profile info'
do
step
'I should see my profile info'
do
page
.
should
have_content
"
Profile Settings
"
page
.
should
have_content
"
This information will appear on your profile
"
end
end
step
'I change my profile info'
do
step
'I change my profile info'
do
...
...
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