Archived
cleaned up, added threadreplies, added info
This commit is contained in:
@@ -14,11 +14,12 @@
|
||||
</div>
|
||||
<div id="replies">
|
||||
<h3><%= "#{pluralize(@thread.replies.length, 'reply')}." %></h3>
|
||||
<% @thread.replies.each do |c| %>
|
||||
Reply<%# render "threadreplies/reply", :c => c %>
|
||||
<% @thread.replies.each do |reply| %>
|
||||
<%= render partial: "threadreplies/reply", locals: {reply: reply} %>
|
||||
<% end %>
|
||||
<% unless @thread.can_read?(current_user) %>
|
||||
new
|
||||
<%# render "threadreplies/new" %>
|
||||
<% if @thread.can_write?(current_user) %>
|
||||
<%= render partial: "threadreplies/new", locals: {reply: Threadreply.new(forumthread: @thread)} %>
|
||||
<% else %>
|
||||
You cannot reply here.
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user