<% switch(exercise.type){ case 'weightrep': _.each(instance.sets, function(set){ %> <%= set.reps %> x <%= set.weight %><%= units.weight %> <%if(set.comment){%> <%= set.comment %><%}%> <% }); break; case 'reps': _.each(instance.sets, function(set){ %> <%= set.reps %> reps <%if(set.comment){%> <%= set.comment %><%}%> <% }); break; case 'weight': _.each(instance.sets, function(set){ %> <%= set.weight %> <%= units.weight %> <%if(set.comment){%> <%= set.comment %><%}%> <% }); break; case 'time': _.each(instance.sets, function(set){ %> <%= set.time %> <%= units.time %> <%if(set.comment){%> <%= set.comment %><%}%> <% }); break; case 'beats': _.each(instance.sets, function(set){ %> <%= set.beats %> <%= units.beats %> <%if(set.comment){%> <%= set.comment %><%}%> <% }); break; case 'distance': _.each(instance.sets, function(set){ %> <%= set.distance %> <%= units.farLength %> <%if(set.comment){%> <%= set.comment %><%}%> <% }); break; } %>
<%if(instance.comment){%><%= instance.comment %>
<%}%>