Commit a9b0cfbf authored by 神楽坂玲奈's avatar 神楽坂玲奈

板块列表最后发帖微调

parent 2ad5822e
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
<td class="boardnums"> <td class="boardnums">
<em><%= board.topics.size %></em> / <%= board.posts.size %></td> <em><%= board.topics.size %></em> / <%= board.posts.size %></td>
<td class="boardlast"> <td class="boardlast">
<% if board.topics.last %> <% if post = board.posts.last %>
<p><%= board.topics.last %></p> <p><%= post.topic %></p>
<cite><%= board.posts.last.user %> - <span title="<%= board.posts.last.updated_at %>"><%=l board.posts.last.updated_at, :format => :short %></span></cite> <cite><%= post.user %> - <span title="<%= post.updated_at %>"><%=l post.updated_at, :format => :short %></span></cite>
<% else %> <% else %>
<%=t 'board.none' %> <%=t 'board.none' %>
<% end %> <% end %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment