Add markdown formatting for sponsor descriptions
This commit is contained in:
parent
4e96f76926
commit
ef4b7fda92
3 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
|||
.col-md-8
|
||||
= semantic_form_for(@sponsor, url: (@sponsor.new_record? ? admin_conference_sponsors_path : admin_conference_sponsor_path(@conference.short_title, @sponsor))) do |f|
|
||||
= f.input :name, input_html: { autofocus: true }
|
||||
= f.input :description
|
||||
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint
|
||||
= image_tag f.object.picture.thumb.url if f.object.picture?
|
||||
= f.input :picture
|
||||
= f.input :website_url
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
%td
|
||||
= sponsor.name
|
||||
%td
|
||||
= truncate(sponsor.description)
|
||||
= truncate(markdown(sponsor.description))
|
||||
%td
|
||||
= sponsor.website_url
|
||||
%td
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue