<h2>
  Top Post Ideas
  <%= link_to 'Deleted Ideas', admin_deleted_things_contents_path, class: 'btn pull-right' %>
</h2>

<ul class="social-media-ideas mixed-contents">
  <% @contents.each do |content| %>
    <li>
      <div class="pull-left">
        <%= link_to admin_posts_path(type: 'facebook', content_id: content.id), class: 'pull-right no-decoration', method: :post do %>
          <i class="icon-facebook-sign"></i>
        <% end %>
        <%= link_to admin_posts_path(type: 'twitter', content_id: content.id), class: 'pull-right no-decoration', method: :post do %>
          <i class="icon-twitter-sign"></i>
        <% end %>
      </div>
      <%= content.body %>
      <br />
      <%= link_to content.link_domain, content.link_url %>
      <div class="pull-right">
        <%= link_to link_content_path(link_id: content.link.id, id: content.id), method: :delete, class: 'no-decoration', data: { confirm: 'Are you sure you want to delete this idea?' } do %>
          <i class="icon-trash"></i>
        <% end %>
      </div>
    </li>
  <% end %>
</ul>

<h2>
  Top Post Ideas
  <%= link_to 'Deleted Ideas', admin_deleted_things_contents_path, class: 'btn pull-right' %>
</h2>

<ul class="social-media-ideas mixed-contents">
  <% @contents.each do |content| %>
    <li>
      <div class="pull-left">
        <%= link_to admin_posts_path(type: 'facebook', content_id: content.id), class: 'pull-right no-decoration', method: :post do %>
          <i class="icon-facebook-sign"></i>
        <% end %>
        <%= link_to admin_posts_path(type: 'twitter', content_id: content.id), class: 'pull-right no-decoration', method: :post do %>
          <i class="icon-twitter-sign"></i>
        <% end if content.valid_for_twitter? %>
      </div>
      <%= content.body %>
      <br />
      <%= link_to content.link_domain, content.link_url %>
      <div class="pull-right">
        <%= link_to link_content_path(link_id: content.link.id, id: content.id), method: :delete, class: 'no-decoration', data: { confirm: 'Are you sure you want to delete this idea?' } do %>
          <i class="icon-trash"></i>
        <% end %>
      </div>
    </li>
  <% end %>
</ul>

Hide Tweet link for posts too long for Twitter
Hide Tweet link for posts too long for Twitter
