Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Conditional rendering of lists
Browse files Browse the repository at this point in the history
  • Loading branch information
joegatt committed Jul 10, 2013
1 parent 07049f2 commit abc9184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/notes/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

= render 'downloads', :downloads => @note.resources.attached_files unless @note.resources.attached_files.empty?

= render 'tag_list', :tags => @tags
= render 'tag_list', :tags => @tags unless @tags.empty?

= render 'books_list', :books => @note.books
= render 'books_list', :books => @note.books unless @note.books.empty?

= render 'versions_list', :note => @note

0 comments on commit abc9184

Please sign in to comment.