|
|
@ -46,9 +46,10 @@
|
|
|
|
<% act = e.act %>
|
|
|
|
<% act = e.act %>
|
|
|
|
<% unless act.nil? %>
|
|
|
|
<% unless act.nil? %>
|
|
|
|
<% if e.act_type == 'JournalsForMessage' || e.act_type == 'Bid' || e.act_type == 'Journal'|| e.act_type == 'Changeset' || e.act_type == 'Message' || e.act_type == 'Principal' || e.act_type == 'News' || e.act_type == 'Issue' || e.act_type == 'Contest'%>
|
|
|
|
<% if e.act_type == 'JournalsForMessage' || e.act_type == 'Bid' || e.act_type == 'Journal'|| e.act_type == 'Changeset' || e.act_type == 'Message' || e.act_type == 'Principal' || e.act_type == 'News' || e.act_type == 'Issue' || e.act_type == 'Contest'%>
|
|
|
|
<table width="660" border="0" align="left" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
|
|
|
|
|
|
|
|
|
|
|
|
<table width="660" border="0" align="left" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" valign="top" width="50">
|
|
|
|
<td colspan="2" valign="top" width="50">
|
|
|
|
<%= image_tag(url_to_avatar(e.user), :class => "avatar") %>
|
|
|
|
<%= image_tag(url_to_avatar(e.user), :class => "avatar") %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
@ -430,8 +431,9 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<% when 'Issue' %>
|
|
|
|
<% when 'Issue' %>
|
|
|
|
<tr>
|
|
|
|
<% if e.user == User.current %>
|
|
|
|
<% if e.user == User.current %>
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
<strong>
|
|
|
|
<strong>
|
|
|
|
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
|
|
|
|
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
|
|
|
@ -445,20 +447,42 @@
|
|
|
|
:action => 'show',
|
|
|
|
:action => 'show',
|
|
|
|
:id => act.id} %>
|
|
|
|
:id => act.id} %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<% else %>
|
|
|
|
</tr>
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
<tr>
|
|
|
|
<strong>
|
|
|
|
<td colspan="2" width="580" style="WORD-BREAK: break-all; WORD-WRAP: break-word">
|
|
|
|
<%= link_to(h(e.user), user_path(e.user_id)) %>
|
|
|
|
<%= textAreailizable act, :description %>
|
|
|
|
</strong>
|
|
|
|
</td>
|
|
|
|
<span class="font_lighter">
|
|
|
|
</tr>
|
|
|
|
<%= l(:label_new_activity) %>
|
|
|
|
<tr>
|
|
|
|
</span>
|
|
|
|
<td>
|
|
|
|
<%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"),
|
|
|
|
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
|
|
|
|
{:controller => 'issues',
|
|
|
|
<span class="font_lighter">
|
|
|
|
:action => 'show',
|
|
|
|
<%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
|
|
|
|
:id => act.id} %>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div style="display: inline-block; float: right; margin-top: 0px">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<%= link_to l(:label_find_all_comments), {:controller => 'issues', :action => 'show', :id => act.id} %>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<a class="font_lighter">
|
|
|
|
|
|
|
|
<%= l(:label_comments_count, :count => e.act.journals.count) %>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
|
|
|
|
<strong>
|
|
|
|
|
|
|
|
<%= link_to(h(e.user), user_path(e.user_id)) %>
|
|
|
|
|
|
|
|
</strong>
|
|
|
|
|
|
|
|
<span class="font_lighter">
|
|
|
|
|
|
|
|
<%= l(:label_new_activity) %>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"),
|
|
|
|
|
|
|
|
{:controller => 'issues',
|
|
|
|
|
|
|
|
:action => 'show',
|
|
|
|
|
|
|
|
:id => act.id} %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" width="580" style="WORD-BREAK: break-all; WORD-WRAP: break-word">
|
|
|
|
<td colspan="2" width="580" style="WORD-BREAK: break-all; WORD-WRAP: break-word">
|
|
|
@ -482,6 +506,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% when 'Contest' %>
|
|
|
|
<% when 'Contest' %>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<% if e.user == User.current && @show_contest == 1%>
|
|
|
|
<% if e.user == User.current && @show_contest == 1%>
|
|
|
@ -531,7 +558,9 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %><!-- < % #unless act.nil? end %> -->
|
|
|
|
<% end %><!-- < % #unless act.nil? end %> -->
|
|
|
|
<% end %><!-- < % #@activity.each do |e| end%> -->
|
|
|
|
<% end %><!-- < % #@activity.each do |e| end%> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|