94 lines
3.8 KiB
Plaintext
94 lines
3.8 KiB
Plaintext
|
|
<div class="myissues_head mb5">
|
|
<h2 class="ml15">issue统计</h2>
|
|
</div>
|
|
<div class="fl" style="color:#7f7f7f;">
|
|
<div class="fl" style="width: auto;">
|
|
过滤条件:
|
|
</div>
|
|
<div class="fl" style="width: 880px;">
|
|
<% if @filter_condition %>
|
|
<% if @search != 0 %>
|
|
搜索关键字:“<span class="c_red"><%= @search %></span>”
|
|
<% end %>
|
|
<% if @start_time != 0 %>
|
|
开始日期:“<span class="c_red"><%= @start_time %></span>”
|
|
<% end %>
|
|
<% if @end_time != 0 %>
|
|
结束日期:“<span class="c_red"><%= @end_time %></span>”
|
|
<% end %>
|
|
<% if @author != 0 %>
|
|
发布人:“<span class="c_red"><%= @author %></span>”
|
|
<% end %>
|
|
<% if @assigned != 0 %>
|
|
指派人:“<span class="c_red"><%= @assigned %></span>”
|
|
<% end %>
|
|
<% if @tracker != 0 %>
|
|
类型:“<span class="c_red"><%= @tracker %></span>”
|
|
<% end %>
|
|
<% if @prior != 0 %>
|
|
优先度:“<span class="c_red"><%= @prior %></span>”
|
|
<% end %>
|
|
<% if @version != 0 %>
|
|
里程碑:“<span class="c_red"><%= @version %></span>”
|
|
<% end %>
|
|
<% if @status != 0 %>
|
|
状态:“<span class="c_red"><%= @status %></span>”
|
|
<% end %>
|
|
<% if @done != -1 %>
|
|
完成度:“<span class="c_red"><%= @done %>%</span>”
|
|
<% end %>
|
|
<% else %>
|
|
无
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<div class="clear">
|
|
<div>
|
|
<ul class="new_roadmap_nav fl" style="margin-left: 0px">
|
|
<li class="new_roadmap_nav_hover" id="new_roadmap_nav_1" onclick="HoverLi(1);">
|
|
<%= link_to "所有<span class='new_roadmap_nav_taghover ml5' id='new_roadmap_num_1'>#{@issues_filter.count}</span>".html_safe, "", :remote => true, :class => "new_roadmap_type_nomal", :id => "new_roadmap_type_1", :id => "new_roadmap_type_1" %>
|
|
</li>
|
|
<li id="new_roadmap_nav_2" onclick="HoverLi(2);">
|
|
<%= link_to "打开<span class='new_roadmap_nav_tagnomal ml5' id='new_roadmap_num_2'>#{@issue_open_count}</span>".html_safe, "", :remote => true, :class => "new_roadmap_type_nomal", :id => "new_roadmap_type_1", :id => "new_roadmap_type_2" %>
|
|
</li>
|
|
<li id="new_roadmap_nav_3" onclick="HoverLi(3);">
|
|
<%= link_to "关闭<span class='new_roadmap_nav_tagnomal ml5' id='new_roadmap_num_3'>#{@issue_close_count}</span>".html_safe, "", :remote => true, :class => "new_roadmap_type_nomal", :id => "new_roadmap_type_1", :id => "new_roadmap_type_3" %>
|
|
</li>
|
|
</ul>
|
|
</div><!--issues_statistics end-->
|
|
<a href="<%= new_project_issue_path(@project)%>" class="sy_btn_green fr mt10" >新建</a>
|
|
</div>
|
|
<div id="merge_record_1" class="">
|
|
<%= render "issues/statistics_all" %>
|
|
</div>
|
|
<div id="merge_record_2" class="undis">
|
|
<%= render "issues/statistics_open" %>
|
|
</div>
|
|
<div id="merge_record_3" class="undis">
|
|
<%= render "issues/statistics_lock" %>
|
|
</div>
|
|
|
|
<script>
|
|
|
|
// 导航选择效果
|
|
function g(o){
|
|
return document.getElementById(o);
|
|
}
|
|
function HoverLi(n){
|
|
//如果有N个标签,就将i<=N;
|
|
for(var i=1;i<=3;i++){
|
|
g('new_roadmap_nav_'+i).className='new_roadmap_nav_nomal';
|
|
g('new_roadmap_type_'+i).className='new_roadmap_type_nomal';
|
|
g('new_roadmap_num_'+i).className='new_roadmap_nav_tagnomal';
|
|
g('merge_record_'+i).className='undis';
|
|
}
|
|
g('new_roadmap_nav_'+n).className='new_roadmap_nav_hover';
|
|
g('new_roadmap_type_'+n).className='new_roadmap_type_hover';
|
|
g('new_roadmap_num_'+n).className='new_roadmap_nav_taghover';
|
|
g('merge_record_'+n).className='dis';
|
|
}
|
|
</script>
|
|
|