<h1>
  Latest Guides
  <%= link_to 'New Guide', new_guide_path, class: 'btn btn-primary pull-right' %>
  <%= link_to 'Show All Categories', guide_categories_path, class: 'btn btn-primary pull-right category-btn' %>
</h1>

<% @guide_categories.select do |category| %>
  <% if category.guides.exists? %>
    <h4><%= category.name %></h4>
  <% end %>

  <table class="posts table">
    <tbody>
      <% category.guides.each do |post| %>
        <tr>
          <td>
            <% if post.instance_of? Guide %>
              <%= image_tag 'Guide.png', alt: 'Guides', class: 'guide-xs pull-left show', width: 25 %>
            <% end %>
            <%= link_to post.title, post_path(post) %>
            <br><span class="text-muted">Submitted by <%= post.username %> on <%= post.created_at.strftime("%m/%d/%Y") %></span>
            <br><%= render 'posts/tags', post: post %>
          </td>
          <td>
            <%= render 'votes/vote', post: post %>
            <span class="badge pull-right" title="<%= pluralize(post.number_of_comments, 'comment') %>"><%= post.number_of_comments %></span>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

<h1>
  Latest Guides
  <%= link_to 'New Guide', new_guide_path, class: 'btn btn-primary pull-right' %>
  <%= link_to 'Show All Categories', guide_categories_path, class: 'btn btn-primary pull-right category-btn' %>

  <%if @guide_revisions.exists? %>
    <%= link_to 'My Revisions', guide_revisions_path, class: 'btn btn-primary pull-right' %>
  <% end %>
  
</h1>

<% @guide_categories.select do |category| %>
  <% if category.guides.exists? %>
    <h4><%= category.name %></h4>
  <% end %>

  <table class="posts table">
    <tbody>
      <% category.guides.each do |post| %>
        <tr>
          <td>
            <% if post.instance_of? Guide %>
              <%= image_tag 'Guide.png', alt: 'Guides', class: 'guide-xs pull-left show', width: 25 %>
            <% end %>
            <%= link_to post.title, post_path(post) %>
            <br><span class="text-muted">Submitted by <%= post.username %> on <%= post.created_at.strftime("%m/%d/%Y") %></span>
            <br><%= render 'posts/tags', post: post %>
          </td>
          <td>
            <%= render 'votes/vote', post: post %>
            <span class="badge pull-right" title="<%= pluralize(post.number_of_comments, 'comment') %>"><%= post.number_of_comments %></span>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Add option for the user to see all his revisions
Add option for the user to see all his revisions
