levent/agileista

View on GitHub
app/views/sprint_mailer/summary_email.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
  <head>
    <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
  </head>
  <body>
    <h1>Project: <%= link_to @project.name, project_backlog_index_url(@project) %></h1>
    <h2>Sprint: <%= link_to @sprint.name, @sprint_url %></h1>

    <% if @complete.any? %>
      <h3>Complete stories:</h3>
      <ul>
        <% @complete.each do |us| %>
          <li><%= link_to "##{us.id}", project_user_story_url(@project, us) %> <%= us.definition %> - <%= pluralize(us.story_points, 'point') %></li>
        <% end %>
      </ul>
    <% else %>
      <h3>There are no complete stories.</h3>
    <% end %>

    <% if @inprogress.any? %>
      <h3>In progress:</h3>
      <ul>
        <% @inprogress.each do |us| %>
          <li><%= link_to "##{us.id}", project_user_story_url(@project, us) %> <%= us.definition %> - <%= pluralize(us.story_points, 'point') %></li>
        <% end %>
      </ul>
    <% else %>
      <h3>There are no in progress stories.</h3>
    <% end %>

    <% if @incomplete.any? %>
      <h3>Available:</h3>
      <ul>
        <% @incomplete.each do |us| %>
          <li><%= link_to "##{us.id}", project_user_story_url(@project, us) %> <%= us.definition %> - <%= pluralize(us.story_points, 'point') %></li>
        <% end %>
      </ul>
    <% else %>
      <h3>There are no incomplete stories.</h3>
    <% end %>

    <small><a href="https://app.agileista.com/p/<%= @project.id %>/stop/<%= @unsubscribe_token %>">Click here to stop receiving these notifications.</a></small>
  </body>
</html>