forked from jacknudt/trustieforge
修复论坛热帖折行的bug,修改热门项目列表分数部分显示内容
This commit is contained in:
parent
825b1e7fd7
commit
b4fb17a467
|
@ -70,7 +70,8 @@
|
|||
<%= javascript_tag "$('#password').focus();" %>
|
||||
<% else %>
|
||||
<%= javascript_tag "$('#username').focus();" %>
|
||||
<% end %> </td>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -102,12 +103,9 @@
|
|||
<h3 style="">论坛热帖</h3>
|
||||
<div class="welcome-box-list">
|
||||
<% find_hot_forum_topics.each do |topic|%>
|
||||
<li class="message-brief-intro" style="height: 25px;">
|
||||
<div style="display: inline-block; float: left;">
|
||||
<img src="/images/list-icon.png"></img>
|
||||
</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>
|
||||
<li class="message-brief-intro" style="min-height: 25px;">
|
||||
<div style="display: inline-block;">
|
||||
<span style="color:gray;display: inline-block; background: url('/images/list-icon.png') no-repeat scroll ;background-position: left center;"> <%= 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">
|
||||
<%= link_to topic.author, user_path(topic.author) %>
|
||||
</span>
|
||||
|
@ -151,7 +149,7 @@
|
|||
<div style="float: left; margin-left: 10px; width: 360px;">
|
||||
<p class="layout">
|
||||
<%= 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="项目得分"> <%= 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="项目得分,综合考虑了项目的各项活动,反映了该项目的活跃程度"> <%= show_grade project %></span>
|
||||
</p>
|
||||
<p class="layout-1" >
|
||||
<%= content_tag "span", project.description.truncate(50, omission: '...'), :class => "d-p-project-intro" , :title => project.description %>
|
||||
|
|
Loading…
Reference in New Issue