time spell error.

This commit is contained in:
yanxd 2013-11-28 10:40:19 +08:00
parent e4162bbff9
commit 9f3d29a1f9
1 changed files with 4 additions and 4 deletions

View File

@ -155,16 +155,16 @@
<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|%>
<% 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"%>
<%= 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>&nbsp;发表了评论:<span style="color: blue;"><%= truncate(event[:event_description], length: 15, omission:'...') %>
<span style="color: green;"><%= event.event_author %></span>&nbsp;发表了评论:<span style="color: blue;"><%= truncate(event.event_description, length: 15, omission:'...') %>
</span>
<p><span><%= time_tag event[:date_time] unless event[:date_time].nil?%></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>评论(4)</span></p>
<p><span><%= time_tag event.event_datetime %></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>评论(4)</span></p>
</div>
</li>
<% end %>