Added partial to display long description properly

This commit is contained in:
Christoph Haas 2016-06-29 21:49:32 +02:00
parent 73c2361471
commit 8dc2514852
3 changed files with 27 additions and 1 deletions

View file

@ -44,7 +44,8 @@
p.subtitle Description
// TODO: split long_description by <p> tags
- if @package.long_description.present?
p =@package.long_description
= render(partial: 'long_description', locals: {text: @package.long_description})
/ p =@package.long_description
- else
p Sorry - no more information available.
- if @package.homepage.present?