<% if issue.variations.size == 1 %>
<%= erb 'issue/info.erb', issue: issue.variations.first, parent_issue: issue, id: issue_id( issue ) %>
<% else %> <% issue.variations.each.with_index do |v, i| %>
Variation <%= i %> <%= erb 'issue/info.erb', issue: v, parent_issue: issue, id: issue_id( v ) %>
<% end %> <% end %> <%= erb 'issue/details.erb', issue: issue.variations.first, parent_issue: issue, id: issue_id( issue ) %>