<tr>
<td height="70px" width="95%">
	<% User.all.each do |x|%>
	<% if x.name == @chatpost.user_name %>
	<% @postuser = x %>
	<% end %>
	<% end %>
	<%= gravatar_for @postuser %><%= link_to @chatpost.user_name, @postuser %>
	<div class="popover fade right in" style="display: inline-block; position: relative;">
	<div class="arrow"></div>
	<div class="popover-content">
	<%= @chatpost.post %>
	</div>
	</div>
</td>
<td>
<p style="float: right;" class="small"><%= @chatpost.created_at.to_datetime.strftime('%H:%M %D')  %></p>
</td>
	<% @chat.administrators.each do |z| %>
	<% if z == current_user.email %>
		<td>
			<%= link_to "", chatlog_chatpost_path(@chat, @chatpost), method: :delete, title: "Delete this post", class: "glyphicon glyphicon-remove", style: "float: right;margin-right:10px;padding-left: 0px;margin-left:25px;" %>
		</td>
	<% end %>
	<% end %>
</tr>
<tr>
  <td height="70px" width="95%">
    <%= gravatar_for @chatpost.user %>
    <%= link_to @chatpost.user_name, @chatpost.user %>
    <div class="popover fade right in" style="display:inline-block;position:relative;">
      <div class="arrow"></div>
      <div class="popover-content">
        <%= @chatpost.post %>
      </div>
    </div>
  </td>
  <td>
    <p style="float: right;" class="small">
      <%= @chatpost.created_at.to_datetime.strftime('%H:%M %D')  %>
    </p>
  </td>
  <% if (@chat.administrators.detect {|id| id == current_user.id}) then %>
  <td>
    <%= link_to "", chatlog_chatpost_path(@chat, @chatpost), method: :delete, title: "Delete this post", class: "glyphicon glyphicon-remove", style: "float:right;margin-right:10px;padding-left:0px;margin-left:25px;" %>
  </td>
  <% end %>
</tr>

Fix chatposts/_show view and bring it up to speed.
Fix chatposts/_show view and bring it up to speed.
