socialforge/app/views/users/show.html.erb

39 lines
1.6 KiB
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<% unless @events_by_day.empty? %>
<div id="activity">
2013-08-08 10:04:44 +08:00
<% @events_by_day_.each do |e| %>
<table width="660" border="0" align="left" style="border-bottom: 1px solid rgb(225, 225, 225); margin-bottom: 10px;">
<tr>
<!-- fq -->
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(e.event_author), :class => "avatar"), user_path(e.event_author), :class => "avatar" %></td>
<td>
<table width="580" border="0">
<tr>
<% if e.event_author == User.current%>
2013-08-10 22:07:48 +08:00
<td colspan="2" valign="top"><strong> <%= link_to("#{l(:label_i)}", user_path(e.event_author)) %></strong><span class="font_lighter"><%= l(:label_new_activity) %></span> <%= link_to format_activity_title(e.event_title), e.event_url %></td>
<% else %>
2013-08-10 16:09:07 +08:00
<td colspan="2" valign="top"><strong> <%= link_to(h(e.event_author), user_path(e.event_author)) %></strong><span class="font_lighter"><%= l(:label_new_activity) %></span> <%= link_to format_activity_title(e.event_title), e.event_url %></td>
<% end %>
</tr>
<tr>
<td colspan="2" width="580" >
<p class="font_description">
<%= textilizable e.event_description %>
</p></td>
</tr>
<tr>
<td align="left"><a class="font_lighter"></a></td>
2013-08-08 10:04:44 +08:00
<td width="200" align="right" class="a"><span class="font_lighter"><%= format_time(e.event_datetime) %></span></td>
</tr>
<!-- <tr><div class="line_under"></div></tr> -->
</table></td>
</tr>
</table>
<% end %>
2013-08-01 10:33:49 +08:00
</div>
2013-08-08 10:04:44 +08:00
<div class="pagination" style="float:left;">
<ul>
<%= pagination_links_full @activity_pages %>
<ul>
</div>
<% end %>