修改显示
This commit is contained in:
parent
47a7bcaa31
commit
fb9e9aa8ee
|
@ -149,6 +149,19 @@
|
|||
<ul class="user-welcome-message-list" style="width: 80%; margin-top: 80px;">
|
||||
<h3 style="margin-left: -5px;">用户动态</h3>
|
||||
<div class="user-message-box-list">
|
||||
<% find_all_activities.each do |event|%>
|
||||
<li style="display: block;height:60px;">
|
||||
<div class="inner-right" style="float: left; height: 100%;">
|
||||
<img class="avatar-3" style="width: 40px; height: 40px; margin-top:10px;" src="/images/avatars/User/4861?1385345302"></img>
|
||||
<%= image_tag url_to_avatar(event[:event_author]), :class => "avatar-3"%>
|
||||
</div>
|
||||
<div class="inner-right" style="float: right; width:88%; height: 100%;">
|
||||
<span style="color: green;"><%= event[:event_author] %></span> 发表了评论:<span style="color: blue;"><%#= truncate(event[:event_description], length: 15, omission:'...') %>
|
||||
</span>
|
||||
<p><span><%= time_tag event[:date_time] %></span> <span>评论(4)</span></p>
|
||||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
<li style="display: block;height:60px;">
|
||||
<div class="inner-right" style="float: left; height: 100%;">
|
||||
<img class="avatar-3" style="width: 40px; height: 40px; margin-top:10px;" src="/images/avatars/User/4861?1385345302"></img>
|
||||
|
@ -219,7 +232,7 @@
|
|||
<%= link_to( project.name, project_path(project.project_id), :class => "d-g-blue d-p-project-name", :target => "_blank", :title => "#{project.name}")%>
|
||||
</p>
|
||||
<p class="layout-1" >
|
||||
<span class="d-p-project-intro"><%= project.description %></span>
|
||||
<span class="d-p-project-intro"><%= project.description.truncate(50, omission: '... (continued)') %></span>
|
||||
</p>
|
||||
<!-- <p class="layout">
|
||||
<span><%= project.members.count%></span>
|
||||
|
@ -251,7 +264,7 @@
|
|||
<%= link_to( contest.name, respond_path(contest.id), :class => "d-g-blue d-p-project-name", :target => "_blank", :title => "#{contest.name}")%>
|
||||
</p>
|
||||
<p class="layout-1" >
|
||||
<span class="d-p-project-intro"><%= contest.description %></span>
|
||||
<span class="d-p-project-intro"><%= contest.description.truncate(50, omission: '... (continued)') %></span>
|
||||
</p>
|
||||
<!-- <p style="margin-top: -10px;">
|
||||
<span><%= contest.created_on %></span>
|
||||
|
@ -283,7 +296,7 @@
|
|||
<%= link_to( bid.name, respond_path(bid.id), :class => "d-g-blue d-p-project-name", :target => "_blank", :title => "#{bid.name}")%>
|
||||
</p>
|
||||
<p class="layout-1" >
|
||||
<span class="d-p-project-intro"><%= bid.description %></span>
|
||||
<span class="d-p-project-intro"><%= bid.description.truncate(50, omission: '... (continued)') %></span>
|
||||
</p>
|
||||
</li>
|
||||
<% end %>
|
||||
|
@ -312,7 +325,7 @@
|
|||
<%= link_to( project.name, project_path(project.project_id), :class => "d-g-blue d-p-project-name", :target => "_blank", :title => "#{project.name}")%>
|
||||
</p>
|
||||
<p class="layout-1" >
|
||||
<span class="d-p-project-intro"><%= project.description %></span>
|
||||
<span class="d-p-project-intro"><%= project.description.truncate(50, omission: '... (continued)') %></span>
|
||||
</p>
|
||||
</li>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue