Merge branch 'dev_raining' of https://git.trustie.net/jacknudt/trustieforge into dev_raining
Conflicts: app/views/training_tasks/_content_list.html.erb
This commit is contained in:
commit
bd2d0d3869
|
@ -32,8 +32,8 @@
|
|||
<span class="reply_praise_count_<%= comment.id %>">
|
||||
<%= render :partial => "praise_tread/praise", :locals => {:activity => comment, :user_activity_id => comment.id, :type => "reply"} %>
|
||||
</span>
|
||||
|
||||
<span style="position: relative" class="fr mr20">
|
||||
<% if activity.class.to_s == 'TrainingTask' %>
|
||||
<%= link_to(l(:button_reply),
|
||||
{:controller => 'users',
|
||||
:action => 'reply_to',
|
||||
|
@ -45,23 +45,51 @@
|
|||
:remote => true,
|
||||
:method => 'get',
|
||||
:title => l(:button_reply)) %>
|
||||
<% else %>
|
||||
<%= link_to(l(:button_reply),
|
||||
{:controller => 'users',
|
||||
:action => 'reply_to',
|
||||
:reply_id => comment.id,
|
||||
:type => 'Issue',
|
||||
:user_activity_id => user_activity_id,
|
||||
:activity_id => activity.id, :is_project => true},
|
||||
:remote => true,
|
||||
:method => 'get',
|
||||
:title => l(:button_reply)) %>
|
||||
|
||||
<% end %>
|
||||
<span id="reply_iconup_<%= comment.id %>" class="reply_iconup02" style="display: none"> ︿</span>
|
||||
</span>
|
||||
<%= link_to(l(:button_delete),
|
||||
{:controller => 'training_tasks',
|
||||
:action => 'delete_journal',
|
||||
:id => activity.id,
|
||||
:journal_id=>comment.id,
|
||||
:user_activity_id => user_activity_id,
|
||||
:is_project => true},
|
||||
:method => 'get',
|
||||
:confirm => l(:text_are_you_sure),
|
||||
:remote=>true,
|
||||
:id => "delete_reply_#{activity.id}_#{comment.id}",
|
||||
:class => 'fr mr20 undis',
|
||||
:title => l(:button_delete)
|
||||
) if comment.user_id == User.current.id %>
|
||||
|
||||
<% if activity.class.to_s == 'TrainingTask' %>
|
||||
<%= link_to(l(:button_delete),
|
||||
{:controller => 'training_tasks',
|
||||
:action => 'delete_journal',
|
||||
:id => activity.id,
|
||||
:journal_id=>comment.id,
|
||||
:user_activity_id => user_activity_id,
|
||||
:is_project => true},
|
||||
:method => 'get',
|
||||
:confirm => l(:text_are_you_sure),
|
||||
:remote=>true,
|
||||
:id => "delete_reply_#{activity.id}_#{comment.id}",
|
||||
:class => 'fr mr20 undis',
|
||||
:title => l(:button_delete)) if comment.user_id == User.current.id %>
|
||||
<% else %>
|
||||
<%= link_to(
|
||||
l(:button_delete),
|
||||
{:controller => 'issues',
|
||||
:action => 'delete_journal',
|
||||
:id => activity.id,
|
||||
:journal_id=>comment.id,
|
||||
:user_activity_id => user_activity_id,
|
||||
:is_project => true},
|
||||
:method => 'get',
|
||||
:confirm => l(:text_are_you_sure),
|
||||
:remote=>true,
|
||||
:id => "delete_reply_#{activity.id}_#{comment.id}",
|
||||
:class => 'fr mr20 undis',
|
||||
:title => l(:button_delete)) if comment.user_id == User.current.id %>
|
||||
<% end %>
|
||||
</span>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
|
@ -79,7 +107,7 @@
|
|||
<div class="reply-content mb10">
|
||||
<% if User.current.logged? %>
|
||||
<div nhname='new_message_<%= user_activity_id %>' style="display:none;">
|
||||
<%= form_for('new_form', :url => add_journal_training_task_path(activity.id, :user_activity_id => user_activity_id, :is_project => true), :method => "post", :remote => true) do |f| %>
|
||||
<%= form_for('new_form', :url => (activity.class.to_s == 'TrainingTask' ? add_journal_training_task_path(activity.id, :user_activity_id => user_activity_id, :is_project => true) : add_journal_issue_path(activity.id, :user_activity_id => user_activity_id, :is_project => true) ), :method => "post", :remote => true) do |f| %>
|
||||
<input type="hidden" name="user_activity_id" value="<%= user_activity_id %>">
|
||||
<div nhname='toolbar_container_<%= user_activity_id %>'></div>
|
||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id %>' name="notes"></textarea>
|
||||
|
|
|
@ -31,7 +31,13 @@
|
|||
<a href="javascript:void(0);" class="fl mt2"><%= activity.journals.count %></a>
|
||||
<% end %>
|
||||
</td>
|
||||
|
||||
<% if @project.is_child_training_project? %>
|
||||
<td>
|
||||
<div id="task_action_status_<%= activity.id %>">
|
||||
<%= render :partial => 'action_status', :locals => {:activity => activity} %>
|
||||
</div>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
|
|
|
@ -222,7 +222,9 @@
|
|||
<tr>
|
||||
<th><p class="text-left">所有<span class="issues_nav_tag ml5" style=" font-weight: normal;"><%= @training_tasks_count %></span></p></th>
|
||||
<th class="w50"> </th>
|
||||
<th class="w100"> </th>
|
||||
<% if @project.is_child_training_project? %>
|
||||
<th class="w100"> </th>
|
||||
<% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="issue_list">
|
||||
|
@ -246,39 +248,4 @@
|
|||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<!--实训任务结束-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<% if false %>
|
||||
<!--缺陷列表开始-->
|
||||
<div id="myissues_con" class="myissues_con mb10">
|
||||
<div class="clear mb5">
|
||||
<div class="issues_statistics fl clear">
|
||||
<ul>
|
||||
<li>所有<a href="javascript:void(0);" class="issues_greycirbg_btn "><%= @training_tasks.count %></a></li>
|
||||
</ul>
|
||||
</div><!--issues_statistics end-->
|
||||
<a href="<%= new_project_training_task_path(@project)%>" class="sy_btn_green fr">新建</a>
|
||||
</div>
|
||||
<% if @training_tasks.empty? %>
|
||||
<%= render :partial => "projects/no_data" %>
|
||||
<% else %>
|
||||
<div id="issue_list">
|
||||
<%= render :partial => 'all_list', :locals => {:tasks => @training_tasks, :query => @query, :training_tasks_pages=> @training_tasks_pages, :training_tasks_count=> @training_tasks_count, :project=> @project, :subject => @subject} %>
|
||||
</div>
|
||||
<% end %>
|
||||
<%#= render :partial => 'issues/all_list', :locals => {:issues => @issues, :query => @query,:issue_pages=>@issue_pages,:issue_count=>@issue_count,:project=>@project,:subject=>@subject} %>
|
||||
</div><!--issues_con_list end-->
|
||||
<div class="cl"></div>
|
||||
<!--issues_filter end-->
|
||||
<div id="issues_list_content_1">
|
||||
</div><!--issues_list_content_1 end-->
|
||||
<div id="issues_list_content_2" class="undis">
|
||||
</div><!--issues_list_content_2 end-->
|
||||
<div id="issues_list_content_3" class="undis">
|
||||
</div><!--issues_list_content_3 end-->
|
||||
<!--issues_con_list end-->
|
||||
<% end %>
|
||||
<!--实训任务结束-->
|
|
@ -864,7 +864,7 @@ a.content-username:hover{ color:#297fb8;}
|
|||
.orig_content{padding:5px 0px 5px 0px;line-height:24px; color:#333; word-wrap:break-word; }
|
||||
.orig_content img {max-width:100%;}
|
||||
.orig_right{ width:90%; margin-top:5px;}
|
||||
.new_orig_right{ width:94%; margin-top:5px; }
|
||||
.new_orig_right{ width:92%; margin-top:5px; }
|
||||
a.comment_ding_link{ height:24px;line-height:24px;display:inline-block;padding-left:2px;vertical-align:middle; color:#333; }
|
||||
a:hover.comment_ding_link{ color:#3b94d6;}
|
||||
.comment_ding_link span{display: inline-block;padding: 0 0px 0 8px;}
|
||||
|
|
Loading…
Reference in New Issue