2012-06-17 03:15:46 +02:00
|
|
|
<ol class="stories">
|
2013-12-24 00:15:58 +01:00
|
|
|
<%= render :partial => "stories/listdetail",
|
2012-12-09 05:37:30 +01:00
|
|
|
:locals => { :story => @story, :single_story => true } %>
|
2012-06-17 03:15:46 +02:00
|
|
|
</ol>
|
|
|
|
|
|
|
|
<div class="story_content">
|
2013-12-24 00:15:58 +01:00
|
|
|
<% if @story.markeddown_description.present? %>
|
|
|
|
<div class="story_text">
|
|
|
|
<%= raw @story.markeddown_description %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2012-06-17 03:15:46 +02:00
|
|
|
|
|
|
|
<p></p>
|
2012-07-12 01:28:27 +02:00
|
|
|
<% if @user && !@story.is_gone? && !@story.previewing %>
|
2012-06-30 21:14:35 +02:00
|
|
|
<%= render :partial => "comments/commentbox",
|
2012-06-17 03:15:46 +02:00
|
|
|
:locals => { :story => @story, :comment => @comment } %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2012-07-12 01:28:27 +02:00
|
|
|
<% if @comments %>
|
|
|
|
<% indent_level = -1 %>
|
|
|
|
<% @comments.each_with_index do |comment,x| %>
|
|
|
|
<% if comment.indent_level > indent_level %>
|
2012-12-30 19:11:47 +01:00
|
|
|
<ol class="comments comments<%= comment.indent_level %>">
|
2012-07-12 01:28:27 +02:00
|
|
|
<% elsif comment.indent_level < indent_level %>
|
|
|
|
<% (indent_level - comment.indent_level).times do %>
|
|
|
|
</ol>
|
|
|
|
<% end %>
|
2012-06-30 18:18:36 +02:00
|
|
|
<% end %>
|
|
|
|
|
2012-07-12 01:28:27 +02:00
|
|
|
<%= render :partial => "comments/comment", :locals => { :story => @story,
|
2012-12-19 04:30:53 +01:00
|
|
|
:comment => comment } %>
|
2012-06-30 18:18:36 +02:00
|
|
|
|
2012-07-12 01:28:27 +02:00
|
|
|
<% indent_level = comment.indent_level %>
|
|
|
|
<% end %>
|
|
|
|
<% indent_level.times do %>
|
|
|
|
</ol>
|
|
|
|
<% end %>
|
2012-06-30 18:18:36 +02:00
|
|
|
<% end %>
|