debian-mirror-gitlab/app/views/profiles/update_username.js.haml

7 lines
186 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- if @user.valid?
:plain
new Flash("Username sucessfully changed", "notice")
- else
:plain
new Flash("Username change failed - #{@user.errors.full_messages.first}", "alert")