Skip to content
Browse files

bug fix for last commit

  • Loading branch information...
1 parent b31434b commit 749022d02dd9d4e12348feb2c8370710174b8226 @ambtus committed Jun 10, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/views/downloads/show.html.haml
View
4 app/views/downloads/show.html.haml
@@ -3,10 +3,12 @@
#page
- if @parts.size > 0
- for part in @parts
- = render :partial => 'download_part.html', :locals => {:part => part}
- if part.parts.size > 0
+ %h2{:style=> "page-break-before:always"}= part.title
- for subpart in part.parts
= render :partial => 'download_part.html', :locals => {:part => subpart, :subpart => true}
+ - else
+ = render :partial => 'download_part.html', :locals => {:part => part}
- else
.content{:style=> "page-break-before:always"}
=raw @page.clean_html

0 comments on commit 749022d

Please sign in to comment.
Something went wrong with that request. Please try again.