<%= render 'layouts/nav' %>
<div class="post-container">
  <div class="post-navigation">
    <%= link_to 'Back to Announcements', announcements_path %>
  </div>
  <div class="panel-body text-center">
    <table class="table table-striped table-bordered table-list">
      <thead>
        <tr>
          <th class="text-center"><em class="fa fa-cog"></em></th>
          <th class="text-center">Text</th>
          <th class="text-center">Start Date</th>
          <th class="text-center">End Date</th>
          <th class="text-center">Active</th>
        </tr>
      </thead>
      <tbody>
        <tr>
        <td align="center">
          <%= link_to edit_announcement_path(@announcement) do %>
            <i class="btn btn-primary"><em class="fa fa-pencil"></em></i>
        <% end %>

          <%= link_to announcement_path(@announcement), method: :delete do %>
            <i class="btn btn-danger"><em class="fa fa-trash"></em></i>
        <% end %>

        </td>
        <td><%= @announcement.text %></td>
        <td><%= @announcement.start_date.strftime("%m/%d/%Y")%></td>
        <td><%= @announcement.end_date.strftime("%m/%d/%Y") %></td>
        <td><em class="<%= @announcement.active? ? 'fa fa-check' : 'fa fa-close'%>"</em></td>
      </tr>
      </tbody>
    </table>
  </div>
</div>

<%= render 'layouts/nav' %>
<div class="post-container">
  <div class="post-navigation">
    <%= link_to 'Back to Announcements', announcements_path %>
  </div>
  <div class="panel-body text-center">
    <table class="table table-striped table-bordered table-list">
      <thead>
        <tr>
          <th class="text-center"><em class="fa fa-cog"></em></th>
          <th class="text-center">Text</th>
          <th class="text-center">Start Date</th>
          <th class="text-center">End Date</th>
          <th class="text-center">Active</th>
        </tr>
      </thead>
      <tbody>
        <tr>
        <td align="center">
          <%= link_to edit_announcement_path(@announcement) do %>
            <i class="btn btn-primary"><em class="fa fa-pencil"></em></i>
        <% end %>

          <%= link_to announcement_path(@announcement), method: :delete do %>
            <i class="btn btn-danger"><em class="fa fa-trash"></em></i>
        <% end %>

        </td>
        <td><%= @announcement.text %></td>
        <td><%= @announcement.start_date.strftime("%m/%d/%Y")%></td>
        <td><%= @announcement.end_date.strftime("%m/%d/%Y") %></td>
        <td><em class="<%= @announcement.active? ? 'fa fa-check' : 'fa fa-close'%>"></em></td>
      </tr>
      </tbody>
    </table>
  </div>
</div>

Add closing tag to <em>
Add closing tag to <em>
