|
|
|
@ -30,11 +30,11 @@
|
|
|
|
|
<% case e.act_type %>
|
|
|
|
|
<% when 'JournalsForMessage' %>
|
|
|
|
|
<% if User.current.login == @user.login %>
|
|
|
|
|
<% if e.user_id == act.jour.id %>
|
|
|
|
|
<tr><td colspan="2" valign="top"><strong><%= link_to("#{e.user.show_name}", user_path(e.user_id)) %></strong> <span class="font_lighter">有了留言</span></td></tr>
|
|
|
|
|
<% else %>
|
|
|
|
|
<tr><td colspan="2" valign="top" class="font_lighter"><strong><%= link_to("#{e.user.show_name}", user_path(e.user_id)) %> 给 <%= link_to("#{act.jour.show_name}", user_path(act.jour.id)) %> 留言了</strong> </td></tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# if e.user_id == act.jour.id %>
|
|
|
|
|
<tr><td colspan="2" valign="top"><strong><%= link_to("#{e.user.show_name}", user_path(e.user_id)) %></strong> <span class="font_lighter">有了<%= link_to("#{e.act.user.show_name}", user_path(e.user.id))%>的留言</span></td></tr>
|
|
|
|
|
<%# else %>
|
|
|
|
|
<!-- <tr><td colspan="2" valign="top" class="font_lighter"><strong><%#= link_to("#{e.user.show_name}", user_path(e.user_id)) %> 给 <%#= link_to("#{act.at_user.show_name if act.at_user}", user_path(act.jour.id)) %> 留言了</strong> </td></tr> -->
|
|
|
|
|
<%# end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<tr><td colspan="2" valign="top"><strong><%= link_to("#{@user.show_name}", user_path(e.user_id)) %></strong> <span class="font_lighter">有了新的动态</span></td></tr>
|
|
|
|
|
<% end %>
|
|
|
|
@ -209,8 +209,10 @@
|
|
|
|
|
<% if e.reply_id == User.current.id%>
|
|
|
|
|
<%if e.jour_type == 'Bid'%>
|
|
|
|
|
<%= l(:label_in_bids)%><%= link_to(e.jour.name, respond_path(e.jour))%> <%= l(:label_quote_my_words) %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% elsif e.jour_type == 'User' %>
|
|
|
|
|
<%= l(:label_in_users)%><%= link_to(e.jour.firstname, feedback_path(e.jour))%> <%= l(:label_quote_my_words) %>
|
|
|
|
|
<% elsif e.jour_type == 'Project' %>
|
|
|
|
|
<%= '在'<<l(:field_project)%><%= link_to(e.jour.name, feedback_path(e.jour))%> <%= l(:label_reply_plural) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= l(:label_about_requirement) %><%= link_to(e.jour.name, respond_path(e.jour_id))%> <%= l(:label_have_respond) %>
|
|
|
|
|