<%= post_wrapper_for "Workout: #{@plan.name}" do %>
Printable Versions (PDF): <%= link_to 'Summary', workout_plan_path(@plan, :format=>'pdf') %> | <%= link_to 'Worksheet', workout_plan_path(@plan, :format=>'pdf', :worksheet=>true) %>
<% 7.times do |day| %>
<% dw = @plan.for_day(day) %> <% if dw.nil? || dw.workout.nil? %>
Day <%= day+1 %>: No Workout
<% else %>
Day <%= day+1 %>: <%= dw.workout.name %>
<% dw.workout.get_routines_and_reps.each do |r_hash| %>
<%= r_hash[:routine].name %> <% r_hash[:exercises].each do |e_hash| %>
<%= e_hash[:exercise].name %>: <%= e_hash[:rep].try(:combined) %> <%= %>
<% end %>
<% end %>
<% end %>
<% end %> <% end %>