mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
||||
|
|
|
|||
|
|
@ -18,6 +18,6 @@
|
|||
- if object.picture?
|
||||
= image_tag get_logo(object), class: img_classes
|
||||
%p.description
|
||||
= object.description
|
||||
= markdown(object.description)
|
||||
.modal-footer
|
||||
= link_to nil, object.website_url, target: '_blank'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue