diff --git a/app/views/forums/_forum_list.html.erb b/app/views/forums/_forum_list.html.erb new file mode 100644 index 000000000..e5bd3b140 --- /dev/null +++ b/app/views/forums/_forum_list.html.erb @@ -0,0 +1,42 @@ + +
+<% if forums.any? %> + <% forums.each do |forum| %> + + + + + +
<%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %> + + + + + + + + + + + + + + +
<%= link_to h(forum.name), forum_path(forum) %> + + + + + + + + + +
<%= link_to (forum.topic_count), forum_path(forum) %><%= link_to (forum.memo_count), forum_path(forum) %>
帖子回答
<%= forum.description%>
标签~~~~~~~~~~
<%= authoring forum.created_at, forum.creator %> +
+
+ <% end %> + +<% else %> +<% end %> +
\ No newline at end of file