<div id="section">
<% @assignments.each do |assignment| %>
<a href="/assignments/<%= assignment.id %>"><%= assignment.name %></a> : <%= assignment.abstract %><br/>
<% end %>
</div>

<div id="section">
<% if !current_user.nil? && current_user.admin? %>
<%= link_to "New assignment", new_assignment_path, :class => "command" %>
<% end %>
</div>
<table width="100%" border="1" cellspacing="0">
<tr><th>Name</th><th>Abstract</th><th>Due Date</th></tr>
<% @assignments.each do |assignment| %>
<tr>
  <td><%= link_to assignment.name, assignment_path(assignment) %></td>
  <td><%= link_to assignment.abstract, assignment_path(assignment) %></td>
  <td><%= link_to assignment.due.to_s(:assignment), assignment_path(assignment) %></td>
</tr>
<% end %>
</table>

<div id="section">
<% if !current_user.nil? && current_user.admin? %>
<%= link_to "New assignment", new_assignment_path, :class => "command" %>
<% end %>
</div>
Move assignments view to tabular format.
Move assignments view to tabular format.