mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 06:01:12 +00:00
Add markdown to users biography
Closes https://github.com/openSUSE/osem/issues/1090 Closes https://github.com/openSUSE/osem/issues/701
This commit is contained in:
parent
72cd463dc7
commit
eee4e4f22c
8 changed files with 11 additions and 14 deletions
|
|
@ -14,7 +14,8 @@
|
|||
= link_to 'Change your avatar here', 'https://gravatar.com'
|
||||
= f.input :affiliation, as: :string,
|
||||
hint: 'This could be a company, a user group, or nothing at all.'
|
||||
= f.input :biography, input_html: { rows: 5, 'onkeyup' => "word_count(this, 'biography-count', 150)" }
|
||||
= f.input :biography, input_html: { rows: 5, data: { provide: 'markdown-editable' }, 'onkeyup' => "word_count(this, 'biography-count', 150)" },
|
||||
hint: markdown_hint
|
||||
You have used
|
||||
%span#bio_length
|
||||
= @user.biography ? @user.biography.split.length : 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue