summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 14:40:52 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-02 14:41:57 +0100
commitd0166334ba9997b5eed89d6f54c99f7bfbe9c816 (patch)
treeaa3dda7930ef35251087dd4868b2040e72f53515
parent8d98245783832a4d6617fb7076343469918ed273 (diff)
downloadgitlab-ce-d0166334ba9997b5eed89d6f54c99f7bfbe9c816.tar.gz
Add `http://gitlab.example.com/u/` prefix to "Change username" field.
-rw-r--r--app/views/profiles/accounts/show.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml
index 2fd65cc9944..319bdd57c39 100644
--- a/app/views/profiles/accounts/show.html.haml
+++ b/app/views/profiles/accounts/show.html.haml
@@ -85,14 +85,15 @@
%p
Changing your username will change path to all personal projects!
%div
- = f.text_field :username, required: true, class: 'form-control'
+ .input-group
+ .input-group-addon
+ = "#{root_url}u/"
+ = f.text_field :username, required: true, class: 'form-control'
&nbsp;
.loading-gif.hide
%p
= icon('spinner spin')
Saving new username
- %p.light
- = user_url(@user)
.form-actions
= f.submit 'Save username', class: "btn btn-warning"