diff --git a/app/views/forums/_forum_list.html.erb b/app/views/forums/_forum_list.html.erb index df897151e..9d0eba923 100644 --- a/app/views/forums/_forum_list.html.erb +++ b/app/views/forums/_forum_list.html.erb @@ -1,12 +1,10 @@ -
+
<% if forums.any? %> <% forums.each do |forum| %>
- <% unless forum.creator.nil? %> - <%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %> - <% end %> + <%= forum.creator.nil? ? (link_to image_tag(url_to_avatar(forum.creator), :class => "avatar")) : (link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator)) %>

<%= link_to h(forum.name), forum_path(forum) %>

diff --git a/public/stylesheets/nyan.css b/public/stylesheets/nyan.css index 1693b3a09..7b35559e6 100644 --- a/public/stylesheets/nyan.css +++ b/public/stylesheets/nyan.css @@ -672,7 +672,10 @@ input[class='nyan-clean-gray']:active, .nyan-clean-gray:active { /* 贴吧 forum memo *******************************************************************************/ - +.forums-list{ + padding-top: 10px; + min-height: 400px; +} div.actions input[type="text"] { padding: 3px; width: 100%; @@ -861,8 +864,10 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -box-sizing: border-box; + min-height: 200px; } + .resource_sum { height: auto; }