summaryrefslogtreecommitdiff
path: root/app/views/profiles/update_username.js.haml
blob: 5307e0b48cb8eb5cbbc8c558d2e13d9047688293 (plain)
1
2
3
4
5
6
7
- if @user.valid?
  :plain
    new Flash("Username successfully changed", "notice")
- else
  - error = @user.errors.full_messages.first
  :plain
    new Flash("Username change failed - #{escape_javascript error.html_safe}", "alert")