#1233修复个人主页--动态:点击项目链接报500错误的BUG

优化页面代码
This commit is contained in:
sw 2014-10-23 09:44:06 +08:00
parent e9124c62ce
commit 91d08d5b9a
1 changed files with 484 additions and 341 deletions

View File

@ -48,353 +48,485 @@
<% 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"><%= image_tag(url_to_avatar(e.user), :class => "avatar") %></td> <td colspan="2" valign="top" width="50">
<%= image_tag(url_to_avatar(e.user), :class => "avatar") %>
</td>
<td> <td>
<table width="580" border="0" class="info-break"> <table width="580" border="0" class="info-break">
<% case e.act_type %> <% case e.act_type %>
<% when 'JournalsForMessage' %> <% when 'JournalsForMessage' %>
<tr> <tr>
<td colspan="2" valign="top">
<% if User.current.login == e.user.try(:login) %>
<strong>
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
</strong>
&nbsp;
<% else %>
<strong><%= link_to("#{e.user.name}", user_path(e.user_id)) %></strong>
<% end %>
<span class="font_lighter">
<%= l(:label_have_feedback) %>
<%= link_to("#{e.act.user.name}", user_path(e.act.user.id)) %><%= l(:label_of_feedback) + l(:label_layouts_feedback) %>
</span>
</td>
</tr>
<tr>
<td colspan="2" width="580">
<p class="font_description"> <%= textAreailizable act.notes %> </p>
<div style="display: inline-block; float: right; margin-top: 0px">
<span>
<%= link_to(l(:label_goto), user_newfeedback_user_path(e.user_id)) %>
</span>
</div>
</td>
</tr>
<tr>
<td>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span>
</div>
<div style="display: inline-block; float: right; margin-top: 0px"></div>
</td>
</tr>
<% when 'Bid' %>
<tr>
<% if act.reward_type == 3 && @show_course == 1%>
<% if e.user == User.current %>
<td colspan="2" valign="top"> <td colspan="2" valign="top">
<strong> <% if User.current.login == e.user.try(:login) %>
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <strong>
</strong> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
</strong>
&nbsp;
<% else %>
<strong>
<%= link_to("#{e.user.name}", user_path(e.user_id)) %>
</strong>
<% end %>
<span class="font_lighter"> <span class="font_lighter">
<%= l(:label_i_new_activity) %> <%= l(:label_have_feedback) %>
<%= link_to("#{e.act.user.name}", user_path(e.act.user.id)) %>
<%= l(:label_of_feedback) + l(:label_layouts_feedback) %>
</span> </span>
<%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
</td> </td>
<% else %> </tr>
<td colspan="2" valign="top"> <tr>
<strong> <td colspan="2" width="580">
<%= link_to(h(e.user), user_path(e.user_id)) %> <p class="font_description">
</strong>&nbsp; <%= textAreailizable act.notes %>
<span class="font_lighter"> </p>
<%= l(:label_new_activity) %> <div style="display: inline-block; float: right; margin-top: 0px">
</span>&nbsp; <span>
<%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %> <%= link_to(l(:label_goto), user_newfeedback_user_path(e.user_id)) %>
</span>
</div>
</td> </td>
<% end %> </tr>
<% else %> <tr>
<% if e.user == User.current %> <td>
<td colspan="2" valign="top"> <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<strong> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong> <span class="font_lighter">
<span class="font_lighter"><%= l(:label_i_new_activity) %></span> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
<%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %> </span>
</div>
<div style="display: inline-block; float: right; margin-top: 0px"></div>
</td> </td>
<% else %> </tr>
<td colspan="2" valign="top"> <% when 'Bid' %>
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; <tr>
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; <% if act.reward_type == 3 && @show_course == 1%>
<%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %> <% if e.user == User.current %>
<td colspan="2" valign="top">
<strong>
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
</strong>
<span class="font_lighter">
<%= l(:label_i_new_activity) %>
</span>
<%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
</td>
<% else %>
<td colspan="2" valign="top">
<strong>
<%= link_to(h(e.user), user_path(e.user_id)) %>
</strong>&nbsp;
<span class="font_lighter">
<%= l(:label_new_activity) %>
</span>&nbsp;
<%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
</td>
<% end %>
<% else %>
<% if e.user == User.current %>
<td colspan="2" valign="top">
<strong>
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
</strong>
<span class="font_lighter">
<%= l(:label_i_new_activity) %>
</span>
<%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
</td>
<% else %>
<td colspan="2" valign="top">
<strong>
<%= link_to(h(e.user), user_path(e.user_id)) %>
</strong>&nbsp;
<span class="font_lighter">
<%= l(:label_new_activity) %>
</span>&nbsp;
<%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
</td>
<% end %>
<% end %>
</tr>
<tr>
<td colspan="2" width="580">
<p class="font_description">
<%=textAreailizable act, :description %>
</p></td>
</tr>
<tr>
<td>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<span class="font_lighter">
<%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
</span>
</div>
<div style="display: inline-block; float: right; margin-top: 0px">
<span>
<%= link_to l(:label_find_all_comments), respond_path(e.act_id) %>
</span>
<a class="font_lighter">
<%= l(:label_comments_count, :count => e.act.commit) %>
</a>
</div>
</td> </td>
<% end %> </tr>
<% end %> <% when 'Journal' %>
</tr> <tr>
<tr> <% if e.user == User.current %>
<td colspan="2" width="580"> <td colspan="2" valign="top">
<p class="font_description"> <%=textAreailizable act, :description %> </p></td> <strong>
</tr> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
<tr> </strong>
<td> &nbsp;
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> <span class="font_lighter">
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> <%= l(:label_i_new_activity) %>
</div> </span>
<div style="display: inline-block; float: right; margin-top: 0px"> &nbsp;
<span><%= link_to l(:label_find_all_comments), respond_path(e.act_id) %></span> <%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.id)) %>
<a class="font_lighter"><%= l(:label_comments_count, :count => e.act.commit) %></a> <%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"),
</div> {:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %>
</td> </td>
</tr> <% else %>
<% when 'Journal' %> <td colspan="2" valign="top">
<tr> <strong>
<% if e.user == User.current %> <%= link_to(h(e.user), user_path(e.user_id)) %>
<td colspan="2" valign="top"> </strong>
<strong><%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong>&nbsp; &nbsp;
<span class="font_lighter"><%= l(:label_i_new_activity) %></span>&nbsp; <span class="font_lighter">
<%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.id)) %> <%= l(:label_new_activity) %>
<%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"), </span>
{:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %> &nbsp;
</td> <%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.id)) %>
<% else %> <%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"),
<td colspan="2" valign="top"> {:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %>
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; </td>
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; <% end %>
<%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.identifier)) %> </tr>
<%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"), <tr>
{:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %> <% if act.notes.nil? %>
</td> <% desStr = '' %>
<% end %> <% else %>
</tr> <% desStr= textAreailizable(act, :notes) %>
<tr> <% end %>
<% if act.notes.nil? %> <td colspan="2" width="580">
<% desStr = '' %> <p class="font_description">
<% else %> <%= desStr %>
<% desStr= textAreailizable(act, :notes) %> </p>
<% end %> </td>
<td colspan="2" width="580"><p class="font_description"> <%= desStr %> </p> </tr>
</td> <tr>
</tr> <td>
<tr> <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<td> <span class="font_lighter">
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> </span>
</div> </div>
<div style="display: inline-block; float: right; margin-top: 0px"></div> <div style="display: inline-block; float: right; margin-top: 0px"></div>
</td> </td>
</tr> </tr>
<% when 'Changeset' %> <% when 'Changeset' %>
<tr> <tr>
<% if e.user == User.current %> <% if e.user == User.current %>
<td colspan="2" valign="top"> <td colspan="2" valign="top">
<strong><%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong>&nbsp; <strong>
<span class="font_lighter"><%= l(:label_i_new_activity) %></span>&nbsp; <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
<%= link_to format_activity_title(act.title), </strong>
{:controller => 'repositories', &nbsp;
:action => 'revision', <span class="font_lighter">
:id => act.repository.project, <%= l(:label_i_new_activity) %>
:repository_id => act.repository.identifier_param, </span>
:rev => act.identifier} %> &nbsp;
</td> <%= link_to format_activity_title(act.title),
<% else %> {:controller => 'repositories',
<td colspan="2" valign="top"> :action => 'revision',
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; :id => act.repository.project,
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; :repository_id => act.repository.identifier_param,
<%= link_to format_activity_title(act.title), :rev => act.identifier} %>
{:controller => 'repositories', </td>
:action => 'revision', <% else %>
:id => act.repository.project, <td colspan="2" valign="top">
:repository_id => act.repository.identifier_param, <strong>
:rev => act.identifier} %> <%= link_to(h(e.user), user_path(e.user_id)) %>
</td> </strong>
<% end %> &nbsp;
</tr> <span class="font_lighter">
<tr> <%= l(:label_new_activity) %>
<td colspan="2" width="580"> </span>
<p class="font_description"> <%= textAreailizable act,:long_comments %> </p></td> &nbsp;
</tr> <%= link_to format_activity_title(act.title),
<tr> {:controller => 'repositories',
<td> :action => 'revision',
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> :id => act.repository.project,
<span class="font_lighter"> <%= format_time(e.act.committed_on) %></span> :repository_id => act.repository.identifier_param,
</div> :rev => act.identifier} %>
<div style="display: inline-block; float: right; margin-top: 0px"> </td>
<span><%= link_to l(:label_find_all_comments), <% end %>
{:controller => 'repositories', </tr>
:action => 'revision', <tr>
:id => act.repository.project, <td colspan="2" width="580">
:repository_id => act.repository.identifier_param, <p class="font_description">
:rev => act.identifier} %> <%= textAreailizable act,:long_comments %>
</span> </p>
<a class="font_lighter"><%= l(:label_comments_count, :count => e.act.count) %></a> </td>
</div> </tr>
</td> <tr>
</tr> <td>
<% when 'Message' %> <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<tr> <span class="font_lighter">
<% if e.user == User.current %> <%= format_time(e.act.committed_on) %>
<td colspan="2" valign="top"> </span>
<strong><%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong>&nbsp; </div>
<span class="font_lighter"><%= l(:label_i_new_activity) %></span>&nbsp; <div style="display: inline-block; float: right; margin-top: 0px">
<%= link_to format_activity_title("#{act.board.name}: #{act.subject}"), <span><%= link_to l(:label_find_all_comments),
{:controller => 'messages', {:controller => 'repositories',
:action => 'show', :action => 'revision',
:board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %> :id => act.repository.project,
</td> :repository_id => act.repository.identifier_param,
<% else %> :rev => act.identifier} %>
<td colspan="2" valign="top"> </span>
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; <a class="font_lighter">
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; <%= l(:label_comments_count, :count => e.act.count) %>
<%= link_to format_activity_title("#{act.board.name}: #{act.subject}"), </a>
{:controller => 'messages', </div>
:action => 'show', </td>
:board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %> </tr>
</td> <% when 'Message' %>
<% end %> <tr>
</tr> <% if e.user == User.current %>
<tr> <td colspan="2" valign="top">
<td colspan="2" width="580"> <strong>
<p class="font_description"> <%= textAreailizable(act,:content) %> </p> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
</td> </strong>
</tr> &nbsp;
<tr> <span class="font_lighter">
<td> <%= l(:label_i_new_activity) %>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> </span>
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> &nbsp;
</div> <%= link_to format_activity_title("#{act.board.name}: #{act.subject}"),
<div style="display: inline-block; float: right; margin-top: 0px"></div> {:controller => 'messages',
</td> :action => 'show',
</tr> :board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %>
<% when 'Principal' %> </td>
<tr> <% else %>
<% if e.user == User.current %> <td colspan="2" valign="top">
<td colspan="2" valign="top"> <strong>
<strong><%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong>&nbsp; <%= link_to(h(e.user), user_path(e.user_id)) %>
<span class="font_lighter"><%= l(:label_new_user) %></span> </strong>
</td> &nbsp;
<% else %> <span class="font_lighter">
<td colspan="2" valign="top"> <%= l(:label_new_activity) %>
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; </span>
<span class="font_lighter"><%= l(:label_new_user) %></span> &nbsp;
</td> <%= link_to format_activity_title("#{act.board.name}: #{act.subject}"),
<% end %> {:controller => 'messages',
</tr> :action => 'show',
<tr> :board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %>
<td colspan="2" width="580"><p class="font_description"></p></td> </td>
</tr> <% end %>
<tr> </tr>
<td> <tr>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> <td colspan="2" width="580">
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> <p class="font_description">
</div> <%= textAreailizable(act,:content) %>
<div style="display: inline-block; float: right; margin-top: 0px"></div> </p>
</td> </td>
</tr> </tr>
<% when 'News' %> <tr>
<tr> <td>
<% if e.user == User.current %> <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<td colspan="2" valign="top"> <span class="font_lighter">
<strong><%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong>&nbsp; <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
<span class="font_lighter"><%= l(:label_i_new_activity) %></span>&nbsp; </span>
<%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %> </div>
</td> <div style="display: inline-block; float: right; margin-top: 0px"></div>
<% else %> </td>
<td colspan="2" valign="top"> </tr>
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; <% when 'Principal' %>
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; <tr>
<%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %> <% if e.user == User.current %>
</td> <td colspan="2" valign="top">
<% end %> <strong>
</tr> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
<tr> </strong>
<td colspan="2" width="580"> &nbsp;
<p class="font_description"> <%= textAreailizable act,:description %> </p></td> <span class="font_lighter">
</tr> <%= l(:label_new_user) %>
<tr> </span>
<td> </td>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> <% else %>
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> <td colspan="2" valign="top">
</div> <strong>
<div style="display: inline-block; float: right; margin-top: 0px"> <%= link_to(h(e.user), user_path(e.user_id)) %>
<span> </strong>
<%= link_to l(:label_find_all_comments), {:controller => 'news', :action => 'show', :id => act.id} %> &nbsp;
</span> <span class="font_lighter">
<a class="font_lighter"> <%= l(:label_new_user) %>
<%= l(:label_comments_count, :count => e.act.comments_count) %> </span>
</a> </td>
</div> <% end %>
</td> </tr>
</tr> <tr>
<% when 'Issue' %> <td colspan="2" width="580">
<tr> <p class="font_description"></p>
<% if e.user == User.current %> </td>
<td colspan="2" valign="top"> </tr>
<strong> <tr>
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %> <td>
</strong>&nbsp; <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<span class="font_lighter"> <span class="font_lighter">
<%= l(:label_i_new_activity) %> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
</span>&nbsp; </span>
<%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"), </div>
{:controller => 'issues', <div style="display: inline-block; float: right; margin-top: 0px"></div>
:action => 'show', </td>
:id => act.id} %> </tr>
</td> <% when 'News' %>
<% else %> <tr>
<td colspan="2" valign="top"> <% if e.user == User.current %>
<strong> <td colspan="2" valign="top">
<%= link_to(h(e.user), user_path(e.user_id)) %> <strong>
</strong>&nbsp; <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
<span class="font_lighter"> </strong>
<%= l(:label_new_activity) %> &nbsp;
</span>&nbsp; <span class="font_lighter">
<%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"), <%= l(:label_i_new_activity) %>
{:controller => 'issues', </span>
:action => 'show', &nbsp;
:id => act.id} %> <%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %>
</td> </td>
<% end %> <% 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> &nbsp;
</tr> <span class="font_lighter">
<tr> <%= l(:label_new_activity) %>
<td> </span>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> &nbsp;
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> <%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %>
</div> </td>
<div style="display: inline-block; float: right; margin-top: 0px"> <% end %>
<span><%= link_to l(:label_find_all_comments), {:controller => 'issues', :action => 'show', :id => act.id} %></span> </tr>
<a class="font_lighter"><%= l(:label_comments_count, :count => e.act.journals.count) %></a> <tr>
</div> <td colspan="2" width="580">
</td> <p class="font_description">
</tr> <%= textAreailizable act,:description %>
<% when 'Contest' %> </p>
<tr> </td>
<% if e.user == User.current && @show_contest == 1%> </tr>
<td colspan="2" valign="top"> <tr>
<strong><%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong>&nbsp; <td>
<span class="font_lighter"><%= l(:label_i_new_activity) %></span>&nbsp; <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %> <span class="font_lighter">
</td> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
<% else %> </span>
<td colspan="2" valign="top"> </div>
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; <div style="display: inline-block; float: right; margin-top: 0px">
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; <span>
<%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %> <%= link_to l(:label_find_all_comments), {:controller => 'news', :action => 'show', :id => act.id} %>
</td> </span>
<% end %> <a class="font_lighter">
</tr> <%= l(:label_comments_count, :count => e.act.comments_count) %>
<tr> </a>
<td colspan="2" width="580"><p class="font_description"> <%= textAreailizable act, :description %> </p> </div>
</td> </td>
</tr> </tr>
<tr> <% when 'Issue' %>
<td> <tr>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> <% if e.user == User.current %>
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> <td colspan="2" valign="top">
</div> <strong>
</tr> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
<% else %> </strong>
<% end %><!-- < % #case end %> --> &nbsp;
<span class="font_lighter">
<%= l(:label_i_new_activity) %>
</span>&nbsp;
<%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"),
{:controller => 'issues',
:action => 'show',
:id => act.id} %>
</td>
<% else %>
<td colspan="2" valign="top">
<strong>
<%= link_to(h(e.user), user_path(e.user_id)) %>
</strong>&nbsp;
<span class="font_lighter">
<%= l(:label_new_activity) %>
</span>&nbsp;
<%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"),
{:controller => 'issues',
:action => 'show',
:id => act.id} %>
</td>
<% end %>
</tr>
<tr>
<td colspan="2" width="580" style="WORD-BREAK: break-all; WORD-WRAP: break-word">
<%= textAreailizable act, :description %>
</td>
</tr>
<tr>
<td>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<span class="font_lighter">
<%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
</span>
</div>
<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>
<% when 'Contest' %>
<tr>
<% if e.user == User.current && @show_contest == 1%>
<td colspan="2" valign="top">
<strong>
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
</strong>
&nbsp;
<span class="font_lighter">
<%= l(:label_i_new_activity) %>
</span>
&nbsp;
<%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %>
</td>
<% else %>
<td colspan="2" valign="top">
<strong>
<%= link_to(h(e.user), user_path(e.user_id)) %>
</strong>
&nbsp;
<span class="font_lighter">
<%= l(:label_new_activity) %>
</span>
&nbsp;
<%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %>
</td>
<% end %>
</tr>
<tr>
<td colspan="2" width="580">
<p class="font_description">
<%= textAreailizable act, :description %>
</p>
</td>
</tr>
<tr>
<td>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<span class="font_lighter">
<%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
</span>
</div>
</tr>
<% else %>
<% end %><!-- < % #case end %> -->
</table> </table>
</td> </td>
</tr> </tr>
@ -451,12 +583,19 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" width="580"><p class="font_description"> <%= textAreailizable e.notes %> </p></td> <td colspan="2" width="580">
<p class="font_description">
<%= textAreailizable e.notes %>
</p>
</td>
</tr> </tr>
<tr> <tr>
<td align="left"><a class="font_lighter"></a></td> <td align="left"><a class="font_lighter"></a></td>
<td width="200" align="right" class="a"> <td width="200" align="right" class="a">
<span class="font_lighter"><%= format_time e.created_on %></span></td> <span class="font_lighter">
<%= format_time e.created_on %>
</span>
</td>
</tr> </tr>
</table> </table>
</td> </td>
@ -466,11 +605,15 @@
</div> </div>
<div class="pagination" style="float:left;"> <div class="pagination" style="float:left;">
<ul> <%= pagination_links_full @info_pages %> </ul> <ul>
<%= pagination_links_full @info_pages %>
</ul>
</div> </div>
<% else %> <% else %>
<p class="font_description"><%= l(:label_no_user_respond_you) %></p> <p class="font_description">
<%= l(:label_no_user_respond_you) %>
</p>
<% end %> <% end %>