<%= @story.snippet.content %>(<%= link_to "link", @story.snippet %>)<br>
<% if @story.title %>
  <%= @story.title.html_safe %><br>
<% end %>
<% if @story.content %>
<%= @story.content.html_safe %>
<% end %>
<%= @story.vote_count %><br>
  <% if current_user %>
    <div id="upvote">
    <% if @vote != nil && @vote.user_id == current_user.id %>
      <%= button_to "Delete",vote_delete_path(@vote), :method => :delete, :class => "delete", :confirm => "Are you sure ?"%>
    <% else %>
      <%= render "votes/new" %>
    <% end %>
    </div>
  <% end %>

<% if current_user.id == @story.author_id %>
<div>
  <% if !@story.published %><Br><br>
    <%= link_to "Edit", edit_story_path(@story) %><br>
    <%= link_to "Delete", root_path, :method => :delete %>
  <% end %>
<% end %>
</div>
<br><br>


<div class="story-tags">
  <% @story.tags.each do |tag| %>
    <%= link_to "#{tag.name}", tags_show_path(tag) %>
  <% end %>
  <%= render :partial => 'tags/tagform'%>
</div>

<%= @story.snippet.content %>(<%= link_to "link", @story.snippet %>)<br>
<% if @story.title %>
  <%= @story.title.html_safe %><br>
<% end %>
<% if @story.content %>
<%= @story.content.html_safe %>
<% end %>
<%= @story.vote_count %><br>
  <% if current_user %>
    <div id="upvote">
    <% if @vote != nil && @vote.user_id == current_user.id %>
      <%= button_to "Delete",vote_delete_path(@vote), :method => :delete, :class => "delete", :confirm => "Are you sure ?"%>
    <% else %>
      <%= render "votes/new" %>
    <% end %>
    </div>
  <% end %>

<% if current_user.id == @story.author_id %>
<div>
  <% if !@story.published %><Br><br>
    <%= link_to "Edit", edit_story_path(@story) %><br>
    <%= link_to "Delete", root_path, :method => :delete %>
  <% end %>
<% end %>
</div>
<br><br>

<%= form_for @story do |f| %>
  <%= f.hidden_field :title, :value => @story.title %>
  <%= f.hidden_field :content, :value => @story.content %>
  <%= f.hidden_field :flagged, :value => true %>
<%= f.submit "Report inappropriate" %>
<% end %>

<div class="story-tags">
  <% @story.tags.each do |tag| %>
    <%= link_to "#{tag.name}", tags_show_path(tag) %>
  <% end %>
  <%= render :partial => 'tags/tagform'%>
</div>

Add form with hidden fields to report story inappropriate
Add form with hidden fields to report story inappropriate
