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
|
|
@ -4,6 +4,7 @@
|
|||
= f.input :name, :as => :string
|
||||
= f.input :email
|
||||
= f.input :affiliation, :as => :string
|
||||
= f.input :biography, :input_html => {:rows => 10}
|
||||
= f.input :biography, input_html: { rows: 10, data: { provide: 'markdown-editable' } },
|
||||
hint: markdown_hint
|
||||
= f.actions do
|
||||
= f.action :submit, :button_html => {:class => "btn btn-primary"}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@
|
|||
- if attr == 'roles'
|
||||
%td
|
||||
= show_roles(@user.get_roles)
|
||||
- elsif attr == 'biography'
|
||||
%td
|
||||
= markdown(@user.biography)
|
||||
- else
|
||||
%td= @user.send(attr)
|
||||
#submissions-content.tab-pane{class: "#{'active' if params[:tab] == 'submissions-content'}"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue