<div class='assignment_summary'>
  <h2 class='title'>
    <%= link_to I18n.t(:assignment_link,
                       short_id: assignment.short_identifier,
                       description: assignment.description),
                edit_assignment_path(id: assignment.id),
                class: 'title' %>
  </h2>

  <div id='assignment_<%= assignment.id %>_graph' class='left'>
    <%= render partial: 'assignments/grade_distribution_graph', locals: { assignment: assignment } %>
  </div>

  <div class='right'>
    <%= render partial: 'assignments/assignment_info_summary', locals: { assignment: assignment } %>
    <%= render partial: 'assignments/grader_summary', locals: { assignment: assignment } %>
    <p>
      <%= link_to I18n.t(:refresh_graph),
                  refresh_graph_assignment_path(id: assignment.id),
                  remote: true %>
     </p>
  </div>
</div>

<% unless assignment.nil? %>
  <div class='assignment_summary'>
    <h2 class='title'>
      <%= link_to I18n.t(:assignment_link,
                         short_id: assignment.short_identifier,
                         description: assignment.description),
                  edit_assignment_path(id: assignment.id),
                  class: 'title' %>
    </h2>

    <div id='assignment_<%= assignment.id %>_graph' class='left'>
      <%= render partial: 'assignments/grade_distribution_graph', locals: { assignment: assignment } %>
    </div>

    <div class='right'>
      <%= render partial: 'assignments/assignment_info_summary', locals: { assignment: assignment } %>
      <%= render partial: 'assignments/grader_summary', locals: { assignment: assignment } %>
      <p>
        <%= link_to I18n.t(:refresh_graph),
                    refresh_graph_assignment_path(id: assignment.id),
                    remote: true %>
       </p>
    </div>
  </div>
<% end %>


Fix error with dashboard for no assignments
Fix error with dashboard for no assignments
