修复论坛热帖折行的bug,修改热门项目列表分数部分显示内容

This commit is contained in:
nieguanghui 2013-12-02 15:44:11 +08:00
parent 825b1e7fd7
commit b4fb17a467
1 changed files with 6 additions and 8 deletions

View File

@ -70,7 +70,8 @@
<%= javascript_tag "$('#password').focus();" %> <%= javascript_tag "$('#password').focus();" %>
<% else %> <% else %>
<%= javascript_tag "$('#username').focus();" %> <%= javascript_tag "$('#username').focus();" %>
<% end %> </td> <% end %>
</td>
</tr> </tr>
</table> </table>
</div> </div>
@ -102,12 +103,9 @@
<h3 style="">论坛热帖</h3> <h3 style="">论坛热帖</h3>
<div class="welcome-box-list"> <div class="welcome-box-list">
<% find_hot_forum_topics.each do |topic|%> <% find_hot_forum_topics.each do |topic|%>
<li class="message-brief-intro" style="height: 25px;"> <li class="message-brief-intro" style="min-height: 25px;">
<div style="display: inline-block; float: left;"> <div style="display: inline-block;">
<img src="/images/list-icon.png"></img> <span style="color:graydisplay: inline-block; background: url('/images/list-icon.png') no-repeat scroll ;background-position: left center;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%= link_to topic.subject.truncate(30, omission: '...'), forum_memo_path(topic.forum_id,topic.id), :class => "gray" %></span>
</div>
<div style="display: inline-block;float: left;">
<span style="color:gray"><%= link_to topic.subject.truncate(30, omission: '...'), forum_memo_path(topic.forum_id,topic.id), :class => "gray" %></span>
<span style="margin-left: 10px; color: green"> <span style="margin-left: 10px; color: green">
<%= link_to topic.author, user_path(topic.author) %> <%= link_to topic.author, user_path(topic.author) %>
</span> </span>
@ -151,7 +149,7 @@
<div style="float: left; margin-left: 10px; width: 360px;"> <div style="float: left; margin-left: 10px; width: 360px;">
<p class="layout"> <p class="layout">
<%= link_to( project.name, project_path(project.project_id), :class => "d-g-blue d-p-project-name", :title => "#{project.name}")%> <%= link_to( project.name, project_path(project.project_id), :class => "d-g-blue d-p-project-name", :title => "#{project.name}")%>
<span style="display: inline-block; float: right; color: #ec6300; background: url('/images/score.png') no-repeat scroll ;background-position: left center;" title="项目得分">&nbsp;&nbsp;&nbsp;&nbsp;<%= show_grade project %></span> <span style="cursor: help; display: inline-block; float: right; color: #ec6300; background: url('/images/score.png') no-repeat scroll ;background-position: left center;" title="项目得分,综合考虑了项目的各项活动,反映了该项目的活跃程度">&nbsp;&nbsp;&nbsp;&nbsp;<%= show_grade project %></span>
</p> </p>
<p class="layout-1" > <p class="layout-1" >
<%= content_tag "span", project.description.truncate(50, omission: '...'), :class => "d-p-project-intro" , :title => project.description %> <%= content_tag "span", project.description.truncate(50, omission: '...'), :class => "d-p-project-intro" , :title => project.description %>