|
|
@ -1,10 +1,28 @@
|
|
|
|
|
|
|
|
<%= content_for(:header_tags) do %>
|
|
|
|
|
|
|
|
<%= import_ke(enable_at: true,init_activity: true) %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
/*回复框*/
|
|
|
|
|
|
|
|
div.ke-toolbar{display:none;width:400px;border:none;background:none;padding:0px 0px;}
|
|
|
|
|
|
|
|
span.ke-toolbar-icon{line-height:26px;font-size:14px;padding-left:26px;}
|
|
|
|
|
|
|
|
span.ke-toolbar-icon-url{background-image:url( /images/public_icon.png )}
|
|
|
|
|
|
|
|
div.ke-toolbar .ke-outline{padding:0px 0px;line-height:26px;font-size:14px;}
|
|
|
|
|
|
|
|
span.ke-icon-emoticons{background-position:0px -671px;width:50px;height:26px;}
|
|
|
|
|
|
|
|
span.ke-icon-emoticons:hover{background-position:-79px -671px;width:50px;height:26px;}
|
|
|
|
|
|
|
|
div.ke-toolbar .ke-outline{border:none;}
|
|
|
|
|
|
|
|
.ke-inline-block{display: none;}
|
|
|
|
|
|
|
|
div.ke-container{float:left;}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
$("#RSide").removeAttr("id");
|
|
|
|
|
|
|
|
$("#Container").css("width","1000px");
|
|
|
|
$("input[nhname='date_show']").change(function(){
|
|
|
|
$("input[nhname='date_show']").change(function(){
|
|
|
|
if($(this).val()=='创建日期起始' || $(this).val()=='创建日期结束')return;
|
|
|
|
if($(this).val()=='创建日期起始' || $(this).val()=='创建日期结束')return;
|
|
|
|
$("input[nhname='date_val']",$(this).parent('div')).val($(this).val());
|
|
|
|
$("input[nhname='date_val']",$(this).parent('div')).val($(this).val());
|
|
|
|
remote_function();
|
|
|
|
remote_function();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
function remote_function() {
|
|
|
|
function remote_function() {
|
|
|
|
$("#issue_query_form").submit();
|
|
|
|
$("#issue_query_form").submit();
|
|
|
@ -39,20 +57,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<div class="project_r_h">
|
|
|
|
<div class="homepageRight mt0 ml10" >
|
|
|
|
<h2 class="project_h2"><%= l(:label_issue_tracking) %></h2>
|
|
|
|
<div class="homepageRightBanner">
|
|
|
|
</div>
|
|
|
|
<div class="NewsBannerName"><%= l(:label_issue_tracking) %></div>
|
|
|
|
<div class="problem_top">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="resources mt10" >
|
|
|
|
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
|
|
|
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
|
|
|
<%= form_tag({:controller => 'issues', :action => 'index', :project_id => @project},:remote=>'true', :method => :get,:id=>"issue_query_form", :class => 'query_form') do %>
|
|
|
|
<%= form_tag({:controller => 'issues', :action => 'index', :project_id => @project},:remote=>'true', :method => :get,:id=>"issue_query_form", :class => 'query_form') do %>
|
|
|
|
<%= hidden_field_tag 'set_filter', '1' %>
|
|
|
|
<%= hidden_field_tag 'set_filter', '1' %>
|
|
|
|
<div class="problem_search" >
|
|
|
|
<div class="problem_search fr" >
|
|
|
|
<input class="problem_search_input fl" id="v_subject" type="text" name="subject" placeholder="请输入问题名称" onkeypress="EnterPress(event)" onkeydown="EnterPress()">
|
|
|
|
<input class="problem_search_input fl" id="v_subject" type="text" name="subject" placeholder="请输入问题名称" onkeypress="EnterPress(event)" onkeydown="EnterPress()">
|
|
|
|
<a href="javascript:void(0)" class="problem_search_btn fl" onclick="remote_function();" >搜索</a>
|
|
|
|
<a href="javascript:void(0)" class="problem_search_btn fl" onclick="remote_function();" >搜索</a>
|
|
|
|
<a href="javascript:void(0)" class="grey_btn fl ml10" onclick="nh_reset_form();" >清空</a>
|
|
|
|
<a href="javascript:void(0)" class="grey_btn fl ml10" onclick="nh_reset_form();" >清空</a>
|
|
|
|
</div><!--problem_search end-->
|
|
|
|
</div><!--problem_search end-->
|
|
|
|
<%= link_to '新建问题', new_project_issue_path(@project) , :class => "green_u_btn fr ml10" %>
|
|
|
|
<%#= link_to '新建问题', new_project_issue_path(@project) , :class => "green_u_btn fr ml10" %>
|
|
|
|
<p class="problem_p fr" ><%= l(:label_issues_sum) %>:<a href="javascript:void(0)" class="c_red"><%= @project.issues.visible.all.count %></a>
|
|
|
|
<p class="problem_p fl" ><%= l(:label_issues_sum) %>:<a href="javascript:void(0)" class="c_red"><%= @project.issues.visible.all.count %></a>
|
|
|
|
<%= l(:lable_issues_undo) %>:<a href="javascript:void(0)" class="c_red"><%= @project.issues.where('status_id in (1,2,4,6)').visible.all.count %> </a>
|
|
|
|
<%= l(:lable_issues_undo) %>:<a href="javascript:void(0)" class="c_red"><%= @project.issues.where('status_id in (1,2,4,6)').visible.all.count %> </a>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
@ -62,25 +81,25 @@
|
|
|
|
<%= select( :issue, :user_id, principals_options_for_isuue_list(@project),
|
|
|
|
<%= select( :issue, :user_id, principals_options_for_isuue_list(@project),
|
|
|
|
{ :include_blank => false,:selected=>@assign_to_id ? @assign_to_id : 0
|
|
|
|
{ :include_blank => false,:selected=>@assign_to_id ? @assign_to_id : 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{:onchange=>"remote_function();",:id=>"assigned_to_id",:name=>"assigned_to_id",:class=>"w90"}
|
|
|
|
{:onchange=>"remote_function();",:id=>"assigned_to_id",:name=>"assigned_to_id",:class=>"w90 mr18"}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
<%= select( :issue,:prior, [["低",1],["正常",2],["高",3],["紧急",4],["立刻",5]].unshift(["优先级",0]),
|
|
|
|
<%= select( :issue,:prior, [["低",1],["正常",2],["高",3],["紧急",4],["立刻",5]].unshift(["优先级",0]),
|
|
|
|
{ :include_blank => false,:selected=>@priority_id ? @priority_id : 0
|
|
|
|
{ :include_blank => false,:selected=>@priority_id ? @priority_id : 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{:onchange=>"remote_function();",:id=>"priority_id",:name=>"priority_id",:class=>"w90"}
|
|
|
|
{:onchange=>"remote_function();",:id=>"priority_id",:name=>"priority_id",:class=>"w90 mr18"}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
<%= select( :issue,:status, [["新增",1],["正在解决",2],["已解决",3],["反馈",4],["关闭",5],["拒绝",6]].unshift(["状态",0]),
|
|
|
|
<%= select( :issue,:status, [["新增",1],["正在解决",2],["已解决",3],["反馈",4],["关闭",5],["拒绝",6]].unshift(["状态",0]),
|
|
|
|
{ :include_blank => false,:selected=>@status_id ? @status_id : 0
|
|
|
|
{ :include_blank => false,:selected=>@status_id ? @status_id : 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{:onchange=>"remote_function();",:id=>"status_id",:name=>"status_id",:class=>"w90"}
|
|
|
|
{:onchange=>"remote_function();",:id=>"status_id",:name=>"status_id",:class=>"w90 mr18"}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
<%= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["作者",0]),
|
|
|
|
<%= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["作者",0]),
|
|
|
|
{ :include_blank => false,:selected=>@author_id ? @author_id : 0
|
|
|
|
{ :include_blank => false,:selected=>@author_id ? @author_id : 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{:onchange=>"remote_function();",:id=>"author_id",:name=>"author_id",:class=>"w90"}
|
|
|
|
{:onchange=>"remote_function();",:id=>"author_id",:name=>"author_id",:class=>"w90 mr18"}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
</div><!--filter_form end-->
|
|
|
|
</div><!--filter_form end-->
|
|
|
@ -103,21 +122,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="contextual">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="contextual">
|
|
|
|
<% if !@query.new_record? && @query.editable_by?(User.current) %>
|
|
|
|
<% if !@query.new_record? && @query.editable_by?(User.current) %>
|
|
|
|
<%= link_to l(:button_edit), edit_query_path(@query), :class => 'icon icon-edit' %>
|
|
|
|
<%= link_to l(:button_edit), edit_query_path(@query), :class => 'icon icon-edit' %>
|
|
|
|
<%= delete_link query_path(@query) %>
|
|
|
|
<%= delete_link query_path(@query) %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
|
|
|
|
<% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
|
|
|
|
<div style="clear:right; ">
|
|
|
|
<div style="clear:right; ">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<%= error_messages_for 'query' %>
|
|
|
|
<%= error_messages_for 'query' %>
|
|
|
|
|
|
|
|
|
|
|
|
<% if @query.valid? %>
|
|
|
|
<% if @query.valid? %>
|
|
|
|
<% if @issues.empty? %>
|
|
|
|
<% if @issues.empty? %>
|
|
|
|
<p class="nodata">
|
|
|
|
<p class="nodata">
|
|
|
|
<%= l(:label_no_data) %>
|
|
|
|
<%= l(:label_no_data) %>
|
|
|
@ -161,13 +181,13 @@
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%= call_hook(:view_issues_index_bottom, {:issues => @issues, :project => @project, :query => @query}) %>
|
|
|
|
<%= call_hook(:view_issues_index_bottom, {:issues => @issues, :project => @project, :query => @query}) %>
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<%= render :partial => 'issues/sidebar' %>
|
|
|
|
<%= render :partial => 'issues/sidebar' %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= auto_discovery_link_tag(:atom,
|
|
|
|
<%= auto_discovery_link_tag(:atom,
|
|
|
|
{:query_id => @query, :format => 'atom',
|
|
|
|
{:query_id => @query, :format => 'atom',
|
|
|
|
:page => nil, :key => User.current.rss_key},
|
|
|
|
:page => nil, :key => User.current.rss_key},
|
|
|
@ -177,6 +197,7 @@
|
|
|
|
:query_id => @query, :format => 'atom',
|
|
|
|
:query_id => @query, :format => 'atom',
|
|
|
|
:page => nil, :key => User.current.rss_key},
|
|
|
|
:page => nil, :key => User.current.rss_key},
|
|
|
|
:title => l(:label_changes_details)) %>
|
|
|
|
:title => l(:label_changes_details)) %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<%= context_menu issues_context_menu_path %>
|
|
|
|
<%= context_menu issues_context_menu_path %>
|
|
|
|
|
|
|
|
</div>
|