Permalink
Browse files

added no meeting message

  • Loading branch information...
Ryan Svihla
Ryan Svihla committed Dec 4, 2011
1 parent 54e6e78 commit 3e2488938b07639ae6518cb02101a97dd5d26df6
Showing with 9 additions and 5 deletions.
  1. +9 −5 views/index.haml
View
@@ -12,8 +12,12 @@
%p.dotline
%h3 Upcoming Meetings
%br
-- @next_meetings.each do |meeting|
- = partial :meeting_kind , :locals=>{:next_meeting => meeting}
- %p.dotline
- %img{:src=>"images/blank.gif", :width => "40", :height => "1", :alt => ""}
- %br
+- if @next_meetings.count == 0
+ %p
+ There are no upcoming meetings.
+- else
+ - @next_meetings.each do |meeting|
+ = partial :meeting_kind , :locals=>{:next_meeting => meeting}
+ %p.dotline
+ %img{:src=>"images/blank.gif", :width => "40", :height => "1", :alt => ""}
+ %br

0 comments on commit 3e24889

Please sign in to comment.