2013-08-06 22:26:52 +08:00
|
|
|
<!-- fq -->
|
|
|
|
<% unless @message.empty? %>
|
|
|
|
<div id="activity">
|
2013-08-11 10:36:55 +08:00
|
|
|
<% @message.each do |e| -%>
|
2013-08-06 22:26:52 +08:00
|
|
|
<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.user), :class => "avatar"), user_path(e.user), :class => "avatar" %></td>
|
|
|
|
<td>
|
|
|
|
<table width="580" border="0">
|
|
|
|
<tr>
|
2013-08-11 15:53:41 +08:00
|
|
|
<td colspan="2" valign="top"><strong> <%= link_to(h(e.user), user_path(e.user)) %></strong><span class="font_lighter">
|
2013-08-11 10:36:55 +08:00
|
|
|
<% if e.instance_of?(JournalsForMessage)%>
|
|
|
|
<% if e.reply_id == User.current.id%>
|
2013-08-11 15:53:41 +08:00
|
|
|
<%if e.jour_type == 'Bid'%>
|
|
|
|
<%= l(:label_in_bids)%><%= link_to(e.jour.name, respond_path(e.jour))%><%= l(:label_quote_my_words) %>
|
|
|
|
<% else %>
|
|
|
|
<%= l(:label_in_users)%><%= link_to(e.jour.firstname, feedback_path(e.jour))%><%= l(:label_quote_my_words) %>
|
|
|
|
<% end %>
|
2013-08-11 10:36:55 +08:00
|
|
|
<% else %>
|
2013-08-11 10:52:43 +08:00
|
|
|
<%= l(:label_about_requirement) %><%= link_to(e.jour.name, respond_path(e.jour_id))%><%= l(:label_have_respond) %>
|
2013-08-11 10:36:55 +08:00
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<% if e.journal_reply.nil? || e.journal_reply.reply_id != User.current.id %>
|
2013-08-11 10:52:43 +08:00
|
|
|
<%= l(:label_about_issue) %><%= link_to(e.issue.subject, issue_path(e.journalized_id))%><%= l(:label_have_respond) %>
|
2013-08-11 15:53:41 +08:00
|
|
|
|
2013-08-11 10:36:55 +08:00
|
|
|
<% else %>
|
2013-08-11 15:53:41 +08:00
|
|
|
<%= l(:label_in_issues)%><%= link_to(e.issue.subject, issue_path(e.issue))%><%= l(:label_quote_my_words) %>
|
2013-08-11 10:36:55 +08:00
|
|
|
<% end %>
|
2013-08-11 15:53:41 +08:00
|
|
|
<% end %> </span></td>
|
2013-08-06 22:26:52 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" width="580" >
|
|
|
|
<p class="font_description">
|
|
|
|
<%= textilizable e.notes %>
|
|
|
|
</p></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="left"><a class="font_lighter"></a></td>
|
2013-08-11 10:36:55 +08:00
|
|
|
<td width="200" align="right" class="a"><span class="font_lighter"><%= format_time e.created_on %></span></td>
|
2013-08-06 22:26:52 +08:00
|
|
|
</tr>
|
|
|
|
<!-- <tr><div class="line_under"></div></tr> -->
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-08-11 10:36:55 +08:00
|
|
|
<div class="pagination">
|
|
|
|
<ul>
|
|
|
|
<%= pagination_links_full @info_pages %>
|
|
|
|
<ul>
|
|
|
|
</div>
|