空数据库时的贴吧列表优化

This commit is contained in:
z9hang 2014-10-23 15:44:30 +08:00
parent a16cdb5068
commit 14a6dec46a
2 changed files with 8 additions and 5 deletions

View File

@ -1,12 +1,10 @@
<!-- added by fq -->
<div style="padding-top: 10px">
<div class="forums-list">
<% if forums.any? %>
<% forums.each do |forum| %>
<div class="forums-index">
<div class="forums-inex-avatar">
<% 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)) %>
</div>
<div class="forums-index-content">
<p ><%= link_to h(forum.name), forum_path(forum) %></p>

View File

@ -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;
}