<h1>Project List</h1>

<% if 0 < @projects.size %>
  <dl>
    <% @projects.each do |project| %>
      <dt><h4><%= link_to project.title, project %></h4></dt>
      <dd><em><%= project.description %></em></dd>
      <% if current_user.is_admin %>
        <dd>
          <div class="btn-group">
            <div class="btn btn-mini"><%= link_to 'Edit', edit_project_path(project) %></div> |
            <div class="btn btn-mini btn-danger"><%= link_to 'Destroy', project, method: :delete, data: { confirm: 'Are you sure?' } %></div>
          </div>
        </dd>
      <% end %>
    <% end %>
  </dl>
<% else %>
  <p class="muted">There are no currently no projects available for you.</p>
<% end %>

<% if current_user.is_admin %>
  <div class="btn-toolbar">
    <div class="btn-group">
      <div class="btn btn-small"><%= link_to 'New Project', new_project_path %></div>
    </div>
  </div>
<% end %>

<h1>Project List</h1>

<% if 0 < @projects.size %>
   <table class="table table-striped">
     <thead>
       <th>Project</th>
       <th>Description</th>
       <% if current_user.is_admin %>
         <th>Actions</th>
       <% end %>
     </thead>

     <tbody>
       <% @projects.each do |project| %>
         <tr>
           <td><%= link_to project.title, project %></td>
           <td><%= simple_format(project.description) %></td>
           <% if current_user.is_admin %>
             <td>
               <div class="btn-group">
                 <div class="btn btn-mini"><%= link_to 'Edit', edit_project_path(project) %></div> |
                 <div class="btn btn-mini btn-danger"><%= link_to 'Destroy', project, method: :delete, data: { confirm: 'Are you sure?' } %></div>
               </div>
             </td>
           <% end %>
         </tr>
       <% end %>
     </tbody>
   </table>
<% else %>
   <p class="muted">There are currently no projects available for you.</p>
<% end %>

<% if current_user.is_admin %>
<div class="btn-toolbar">
  <div class="btn-group">
    <div class="btn btn-small"><%= link_to 'New Project', new_project_path %></div>
  </div>
</div>
<% end %>

Convert project list to table format
Convert project list to table format
