Merge branch 'small_profile_changes' into 'master'
Fixes grammatical consistency and small changes This commit adds consistency to small things like periods, commas, and gives additional information to buttons and headers, etc. Fixes #2002, #2005, #2003. See merge request !1570
This commit is contained in:
commit
fc7f3bf8a1
12 changed files with 27 additions and 26 deletions
|
@ -1,5 +1,5 @@
|
|||
%h3.page-title
|
||||
Account settings
|
||||
Account Settings
|
||||
%p.light
|
||||
You can change your username and private token here.
|
||||
- if current_user.ldap_user?
|
||||
|
@ -10,7 +10,7 @@
|
|||
.account-page
|
||||
%fieldset.update-token
|
||||
%legend
|
||||
Private token
|
||||
Reset Private token
|
||||
%div
|
||||
= form_for @user, url: reset_private_token_profile_path, method: :put do |f|
|
||||
.data
|
||||
|
@ -25,7 +25,7 @@
|
|||
- if current_user.private_token
|
||||
= text_field_tag "token", current_user.private_token, class: "form-control"
|
||||
%div
|
||||
= f.submit 'Reset', data: { confirm: "Are you sure?" }, class: "btn btn-primary btn-build-token"
|
||||
= f.submit 'Reset private token', data: { confirm: "Are you sure?" }, class: "btn btn-primary btn-build-token"
|
||||
- else
|
||||
%span You don`t have one yet. Click generate to fix it.
|
||||
= f.submit 'Generate', class: "btn success btn-build-token"
|
||||
|
@ -43,7 +43,7 @@
|
|||
- if show_profile_username_tab?
|
||||
%fieldset.update-username
|
||||
%legend
|
||||
Username
|
||||
Change Username
|
||||
= form_for @user, url: update_username_profile_path, method: :put, remote: true do |f|
|
||||
%p
|
||||
Changing your username will change path to all personal projects!
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
%h3.page-title
|
||||
OAuth2
|
||||
Application Settings
|
||||
%p.light
|
||||
OAuth2 protocol settings below.
|
||||
|
||||
%fieldset.oauth-applications
|
||||
%legend Your applications
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
%h3.page-title
|
||||
My appearance settings
|
||||
Design Settings
|
||||
%p.light
|
||||
Appearance settings saved to your profile and available across all devices
|
||||
Appearance settings will be saved to your profile and made available across all devices.
|
||||
%hr
|
||||
|
||||
= form_for @user, url: profile_path, remote: true, method: :put do |f|
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%h3.page-title
|
||||
My email addresses
|
||||
Email Settings
|
||||
%p.light
|
||||
Your
|
||||
%b Primary Email
|
||||
|
@ -34,4 +34,4 @@
|
|||
.col-sm-10
|
||||
= f.text_field :email, class: 'form-control'
|
||||
.form-actions
|
||||
= f.submit 'Add', class: 'btn btn-create'
|
||||
= f.submit 'Add email address', class: 'btn btn-create'
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
%h3.page-title
|
||||
Group membership
|
||||
Group Membership
|
||||
- if current_user.can_create_group?
|
||||
%span.pull-right
|
||||
= link_to new_group_path, class: "btn btn-new" do
|
||||
%i.fa.fa-plus
|
||||
New Group
|
||||
%p.light
|
||||
Group members have access to all a group's projects
|
||||
Group members have access to all group projects.
|
||||
%hr
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
%h3.page-title
|
||||
Account history
|
||||
My Account History
|
||||
%p.light
|
||||
All events created by your account are listed here
|
||||
All events created by your account are listed below.
|
||||
%hr
|
||||
.profile_history
|
||||
= render @events
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
%h3.page-title
|
||||
My SSH keys (#{@keys.count})
|
||||
SSH Keys Settings
|
||||
.pull-right
|
||||
= link_to "Add SSH Key", new_profile_key_path, class: "btn btn-new"
|
||||
%p.light
|
||||
SSH keys allow you to establish a secure connection between your computer and GitLab
|
||||
My SSH keys: #{@keys.count}
|
||||
%br
|
||||
Before you can add an SSH key you need to
|
||||
= link_to "generate it", help_page_path("ssh", "README")
|
||||
= link_to "generate it.", help_page_path("ssh", "README")
|
||||
%hr
|
||||
|
||||
= render 'key_table'
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
%h3.page-title
|
||||
Notifications settings
|
||||
Notifications Settings
|
||||
%p.light
|
||||
These are your global notification settings.
|
||||
%hr
|
||||
|
||||
|
||||
= form_for @user, url: profile_notifications_path, method: :put, html: { class: 'update-notifications form-horizontal global-notifications-form' } do |f|
|
||||
-if @user.errors.any?
|
||||
%div.alert.alert-danger
|
||||
|
@ -60,7 +59,7 @@
|
|||
%p
|
||||
You can also specify notification level per group or per project.
|
||||
%br
|
||||
By default all projects and groups uses notification level set above.
|
||||
By default, all projects and groups will use the notification level set above.
|
||||
%h4 Groups:
|
||||
%ul.bordered-list
|
||||
- @group_members.each do |users_group|
|
||||
|
@ -69,7 +68,7 @@
|
|||
|
||||
.col-md-6
|
||||
%p
|
||||
To specify notification level per project of a group you belong to,
|
||||
To specify the notification level per project of a group you belong to,
|
||||
%br
|
||||
you need to be a member of the project itself, not only its group.
|
||||
%h4 Projects:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%h3.page-title Password
|
||||
%h3.page-title Password Settings
|
||||
%p.light
|
||||
- if @user.password_automatically_set?
|
||||
Set your password.
|
||||
|
@ -12,7 +12,7 @@
|
|||
- unless @user.password_automatically_set?
|
||||
You must provide current password in order to change it.
|
||||
%br
|
||||
After a successful password update you will be redirected to login page where you should login with your new password
|
||||
After a successful password update, you will be redirected to the login page where you can log in with your new password.
|
||||
-if @user.errors.any?
|
||||
.alert.alert-danger
|
||||
%ul
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
%h3.page-title
|
||||
Profile settings
|
||||
Profile Settings
|
||||
%p.light
|
||||
This information appears on your profile.
|
||||
This information will appear on your profile.
|
||||
- if current_user.ldap_user?
|
||||
Some options are unavailable for LDAP accounts
|
||||
%hr
|
||||
|
|
|
@ -7,6 +7,6 @@ class Spinach::Features::ProfileNotifications < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
step 'I should see global notifications settings' do
|
||||
page.should have_content "Notifications settings"
|
||||
page.should have_content "Notifications Settings"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
|
|||
include SharedPaths
|
||||
|
||||
step 'I should see my profile info' do
|
||||
page.should have_content "Profile settings"
|
||||
page.should have_content "Profile Settings"
|
||||
end
|
||||
|
||||
step 'I change my profile info' do
|
||||
|
|
Loading…
Reference in a new issue