mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #999 from differentreality/user_bio_count
Fix bio length when nil in user#edit
This commit is contained in:
commit
5c4fba8b44
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)" }
|
= f.input :biography, input_html: { rows: 5, 'onkeyup' => "word_count(this, 'biography-count', 150)" }
|
||||||
You have used
|
You have used
|
||||||
%span#bio_length
|
%span#bio_length
|
||||||
= @user.biography.split.length
|
= @user.biography ? @user.biography.split.length : 0
|
||||||
words. Biographies are limited to 150 words.
|
words. Biographies are limited to 150 words.
|
||||||
%br
|
%br
|
||||||
%br
|
%br
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue