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

优化页面代码
course_group
sw 11 years ago
parent e9124c62ce
commit 91d08d5b9a

@ -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>
</tr>
<% when 'Journal' %>
<tr>
<% if e.user == User.current %>
<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(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.id)) %>
<%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"),
{:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{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(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.id)) %>
<%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"),
{:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %>
</td>
<% end %>
</tr>
<tr>
<% if act.notes.nil? %>
<% desStr = '' %>
<% else %>
<% desStr= textAreailizable(act, :notes) %>
<% end %>
<td colspan="2" width="580">
<p class="font_description">
<%= desStr %>
</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"></div>
</td>
</tr>
<% when 'Changeset' %>
<tr>
<% if e.user == User.current %>
<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(act.title),
{:controller => 'repositories',
:action => 'revision',
:id => act.repository.project,
:repository_id => act.repository.identifier_param,
:rev => act.identifier} %>
</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.title),
{:controller => 'repositories',
:action => 'revision',
:id => act.repository.project,
:repository_id => act.repository.identifier_param,
:rev => act.identifier} %>
</td>
<% end %>
</tr>
<tr>
<td colspan="2" width="580">
<p class="font_description">
<%= textAreailizable act,:long_comments %>
</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">
<%= format_time(e.act.committed_on) %>
</span>
</div>
<div style="display: inline-block; float: right; margin-top: 0px">
<span><%= link_to l(:label_find_all_comments),
{:controller => 'repositories',
:action => 'revision',
:id => act.repository.project,
:repository_id => act.repository.identifier_param,
:rev => act.identifier} %>
</span>
<a class="font_lighter">
<%= l(:label_comments_count, :count => e.act.count) %>
</a>
</div>
</td>
</tr>
<% when 'Message' %>
<tr>
<% if e.user == User.current %>
<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("#{act.board.name}: #{act.subject}"),
{:controller => 'messages',
:action => 'show',
: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>
<% 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.board.name}: #{act.subject}"),
{:controller => 'messages',
:action => 'show',
: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>
<% end %>
</tr>
<tr>
<td colspan="2" width="580">
<p class="font_description">
<%= textAreailizable(act,:content) %>
</p>
</td> </td>
<% end %> </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">
<p class="font_description"> <%=textAreailizable act, :description %> </p></td> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
</tr> </span>
<tr> </div>
<td> <div style="display: inline-block; float: right; margin-top: 0px"></div>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> </td>
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> </tr>
</div> <% when 'Principal' %>
<div style="display: inline-block; float: right; margin-top: 0px"> <tr>
<span><%= link_to l(:label_find_all_comments), respond_path(e.act_id) %></span> <% if e.user == User.current %>
<a class="font_lighter"><%= l(:label_comments_count, :count => e.act.commit) %></a> <td colspan="2" valign="top">
</div> <strong>
</td> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
</tr> </strong>
<% when 'Journal' %> &nbsp;
<tr> <span class="font_lighter">
<% if e.user == User.current %> <%= l(:label_new_user) %>
<td colspan="2" valign="top"> </span>
<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; <% else %>
<%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.id)) %> <td colspan="2" valign="top">
<%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"), <strong>
{:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %> <%= link_to(h(e.user), user_path(e.user_id)) %>
</td> </strong>
<% else %> &nbsp;
<td colspan="2" valign="top"> <span class="font_lighter">
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; <%= l(:label_new_user) %>
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; </span>
<%= link_to(l(:label_activity_project)+act.issue.project.name, project_path(act.issue.project.identifier)) %> </td>
<%= link_to format_activity_title("#{act.issue.tracker} ##{act.issue.id}: #{act.issue.subject}"), <% end %>
{:controller => 'issues', :action => 'show', :id => act.issue.id, :anchor => "change-#{act.id}"} %> </tr>
</td> <tr>
<% end %> <td colspan="2" width="580">
</tr> <p class="font_description"></p>
<tr> </td>
<% if act.notes.nil? %> </tr>
<% desStr = '' %> <tr>
<% else %> <td>
<% desStr= textAreailizable(act, :notes) %> <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<% end %> <span class="font_lighter">
<td colspan="2" width="580"><p class="font_description"> <%= desStr %> </p> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
</td> </span>
</tr> </div>
<tr> <div style="display: inline-block; float: right; margin-top: 0px"></div>
<td> </td>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> </tr>
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> <% when 'News' %>
</div> <tr>
<div style="display: inline-block; float: right; margin-top: 0px"></div> <% if e.user == User.current %>
</td> <td colspan="2" valign="top">
</tr> <strong>
<% when 'Changeset' %> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
<tr> </strong>
<% if e.user == User.current %> &nbsp;
<td colspan="2" valign="top"> <span class="font_lighter">
<strong><%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong>&nbsp; <%= l(:label_i_new_activity) %>
<span class="font_lighter"><%= l(:label_i_new_activity) %></span>&nbsp; </span>
<%= link_to format_activity_title(act.title), &nbsp;
{:controller => 'repositories', <%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %>
:action => 'revision', </td>
:id => act.repository.project, <% else %>
:repository_id => act.repository.identifier_param, <td colspan="2" valign="top">
:rev => act.identifier} %> <strong>
</td> <%= link_to(h(e.user), user_path(e.user_id)) %>
<% else %> </strong>
<td colspan="2" valign="top"> &nbsp;
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; <span class="font_lighter">
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; <%= l(:label_new_activity) %>
<%= link_to format_activity_title(act.title), </span>
{:controller => 'repositories', &nbsp;
:action => 'revision', <%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %>
:id => act.repository.project, </td>
:repository_id => act.repository.identifier_param, <% end %>
:rev => act.identifier} %> </tr>
</td> <tr>
<% end %> <td colspan="2" width="580">
</tr> <p class="font_description">
<tr> <%= textAreailizable act,:description %>
<td colspan="2" width="580"> </p>
<p class="font_description"> <%= textAreailizable act,:long_comments %> </p></td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
<span class="font_lighter"> <%= format_time(e.act.committed_on) %></span> <span class="font_lighter">
</div> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
<div style="display: inline-block; float: right; margin-top: 0px"> </span>
<span><%= link_to l(:label_find_all_comments), </div>
{:controller => 'repositories', <div style="display: inline-block; float: right; margin-top: 0px">
:action => 'revision', <span>
:id => act.repository.project, <%= link_to l(:label_find_all_comments), {:controller => 'news', :action => 'show', :id => act.id} %>
:repository_id => act.repository.identifier_param, </span>
:rev => act.identifier} %> <a class="font_lighter">
</span> <%= l(:label_comments_count, :count => e.act.comments_count) %>
<a class="font_lighter"><%= l(:label_comments_count, :count => e.act.count) %></a> </a>
</div> </div>
</td> </td>
</tr> </tr>
<% when 'Message' %> <% when 'Issue' %>
<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.board.name}: #{act.subject}"), </strong>
{:controller => 'messages', &nbsp;
:action => 'show', <span class="font_lighter">
:board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %> <%= l(:label_i_new_activity) %>
</td> </span>&nbsp;
<% else %> <%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"),
<td colspan="2" valign="top"> {:controller => 'issues',
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; :action => 'show',
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; :id => act.id} %>
<%= link_to format_activity_title("#{act.board.name}: #{act.subject}"), </td>
{:controller => 'messages', <% else %>
:action => 'show', <td colspan="2" valign="top">
:board_id => act.board_id}.merge(act.parent_id.nil? ? {:id => act.id} : {:id => act.parent_id, :r => act.id, :anchor => "message-#{act.id}"}) %> <strong>
</td> <%= link_to(h(e.user), user_path(e.user_id)) %>
<% end %> </strong>&nbsp;
</tr> <span class="font_lighter">
<tr> <%= l(:label_new_activity) %>
<td colspan="2" width="580"> </span>&nbsp;
<p class="font_description"> <%= textAreailizable(act,:content) %> </p> <%= link_to format_activity_title("#{act.source_from} (#{act.status}): #{act.tracker.name} #{act.subject}"),
</td> {:controller => 'issues',
</tr> :action => 'show',
<tr> :id => act.id} %>
<td> </td>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> <% end %>
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> </tr>
</div> <tr>
<div style="display: inline-block; float: right; margin-top: 0px"></div> <td colspan="2" width="580" style="WORD-BREAK: break-all; WORD-WRAP: break-word">
</td> <%= textAreailizable act, :description %>
</tr> </td>
<% when 'Principal' %> </tr>
<tr> <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>&nbsp; <span class="font_lighter">
<span class="font_lighter"><%= l(:label_new_user) %></span> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
</td> </span>
<% else %> </div>
<td colspan="2" valign="top"> <div style="display: inline-block; float: right; margin-top: 0px">
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; <span>
<span class="font_lighter"><%= l(:label_new_user) %></span> <%= link_to l(:label_find_all_comments), {:controller => 'issues', :action => 'show', :id => act.id} %>
</td> </span>
<% end %> <a class="font_lighter">
</tr> <%= l(:label_comments_count, :count => e.act.journals.count) %>
<tr> </a>
<td colspan="2" width="580"><p class="font_description"></p></td> </div>
</tr> </td>
<tr> </tr>
<td> <% when 'Contest' %>
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a"> <tr>
<span class="font_lighter"> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %></span> <% if e.user == User.current && @show_contest == 1%>
</div> <td colspan="2" valign="top">
<div style="display: inline-block; float: right; margin-top: 0px"></div> <strong>
</td> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
</tr> </strong>
<% when 'News' %> &nbsp;
<tr> <span class="font_lighter">
<% if e.user == User.current %> <%= l(:label_i_new_activity) %>
<td colspan="2" valign="top"> </span>
<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; <%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %>
<%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %> </td>
</td> <% else %>
<% else %> <td colspan="2" valign="top">
<td colspan="2" valign="top"> <strong>
<strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong>&nbsp; <%= link_to(h(e.user), user_path(e.user_id)) %>
<span class="font_lighter"><%= l(:label_new_activity) %></span>&nbsp; </strong>
<%= link_to format_activity_title("#{l(:label_news)}: #{act.title}"), {:controller => 'news', :action => 'show', :id => act.id} %> &nbsp;
</td> <span class="font_lighter">
<% end %> <%= l(:label_new_activity) %>
</tr> </span>
<tr> &nbsp;
<td colspan="2" width="580"> <%= link_to format_activity_title("#{l(:label_contest)}: #{act.name}"), {:controller => 'contests', :action => 'show_contest', :id => act.id} %>
<p class="font_description"> <%= textAreailizable act,: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, :description %>
<div style="display: inline-block; float: right; margin-top: 0px"> </p>
<span> </td>
<%= link_to l(:label_find_all_comments), {:controller => 'news', :action => 'show', :id => act.id} %> </tr>
</span> <tr>
<a class="font_lighter"> <td>
<%= l(:label_comments_count, :count => e.act.comments_count) %> <div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
</a> <span class="font_lighter">
</div> <%= (l(:label_update_time).to_s << ':' << format_time(e.act.created_on)).to_s %>
</td> </span>
</tr> </div>
<% when 'Issue' %> </tr>
<tr> <% else %>
<% if e.user == User.current %> <% end %><!-- < % #case end %> -->
<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("#{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 %>

Loading…
Cancel
Save