Skip to content

Commit

Permalink
apply change reply
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee authored and xdite committed Feb 22, 2012
1 parent 00094d6 commit 7185777
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/views/topics/_replies.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<% if replies.blank? %>
<div class="no_result">
<%= t("topics.no_replies") %>
<% cache("topic:#{topic.id}:replies:#{topic.updated_at}") do %>
<% if replies.blank? %>
<div class="no_result">
<%= t("topics.no_replies") %>
</div>
<% else %>
<div id="replies" class="box">
<%= render "topics/translation/topic_reply_statics", :topic => topic %>
<%= render :partial => "replies/reply", :collection => replies %>
</div>
<% else %>
<div id="replies" class="box">
<%= render "topics/translation/topic_reply_statics", :topic => topic %>
<%= render :partial => "replies/reply", :collection => replies %>
</div>
<% end %>
<% end %>

0 comments on commit 7185777

Please sign in to comment.