mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix bio length when nil in user#edit
This commit is contained in:
parent
65ee166570
commit
50ab392c0f
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
|||
= f.input :biography, input_html: { rows: 5, 'onkeyup' => "word_count(this, 'biography-count', 150)" }
|
||||
You have used
|
||||
%span#bio_length
|
||||
= @user.biography.split.length
|
||||
= @user.biography ? @user.biography.split.length : 0
|
||||
words. Biographies are limited to 150 words.
|
||||
%br
|
||||
%br
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue