somethint to added

This commit is contained in:
Your Name 2016-06-23 14:31:23 +08:00
parent 723540044d
commit 8438bc7bcd
4 changed files with 25 additions and 41 deletions

View File

@ -2,38 +2,15 @@
<div class="project_r_h">
<h2 class="project_h2">分析结果</h2>
</div>
<ul class="analysis-result-list">
<li class="analysis-result-name fl fontBlue2" title="Name">NAME</li>
<li class="analysis-result-version fl fontBlue2" title="Version">VERSION</li>
<li class="analysis-result-loc fl fontBlue2" title="Non Commenting Lines of Code">LOC</li>
<li class="analysis-result-debt fl fontBlue2" title="Total effort (in days) to fix all the issues on the component and therefore to comply to all the requirements.">TECHNICAL DEBT</li>
<li class="analysis-result-time fl fontBlue2" title="Last Analysis">LAST ANALYSIS</li>
<div class="cl"></div>
</ul>
<ul class="analysis-result-list b_grey">
<li class="analysis-result-name fl fontBlue2 hidden" title="Name"><span class="analysis-name-icon mr5"></span><a href="/dashboard/index/139" title="shitou:sonar_rep" class="fontBlue2">shitou:sonar_rep</a></li>
<li class="analysis-result-version fl fontGrey3" title="Version">1</li>
<li class="analysis-result-loc fl fontGrey3" title="Non Commenting Lines of Code">1,814</li>
<li class="analysis-result-debt fl fontGrey3" title="Total effort (in days) to fix all the issues on the component and therefore to comply to all the requirements.">3d 2h</li>
<li class="analysis-result-time fl fontGrey3" title="Last Analysis">2016-06-22</li>
<div class="cl"></div>
</ul>
<ul class="analysis-result-list">
<li class="analysis-result-name fl fontBlue2 hidden" title="Name"><span class="analysis-name-icon mr5"></span><a href="/dashboard/index/139" title="shitou:sonar_rep" class="fontBlue2">shitou:sonar_rep</a></li>
<li class="analysis-result-version fl fontGrey3" title="Version">1</li>
<li class="analysis-result-loc fl fontGrey3" title="Non Commenting Lines of Code">1,814</li>
<li class="analysis-result-debt fl fontGrey3" title="Total effort (in days) to fix all the issues on the component and therefore to comply to all the requirements.">3d 2h</li>
<li class="analysis-result-time fl fontGrey3" title="Last Analysis">2016-06-22</li>
<div class="cl"></div>
</ul>
<ul class="analysis-result-list b_grey">
<li class="analysis-result-name fl fontBlue2 hidden" title="Name"><span class="analysis-name-icon mr5"></span><a href="/dashboard/index/139" title="shitou:sonar_rep" class="fontBlue2">shitou:sonar_rep</a></li>
<li class="analysis-result-version fl fontGrey3" title="Version">1</li>
<li class="analysis-result-loc fl fontGrey3" title="Non Commenting Lines of Code">1,814</li>
<li class="analysis-result-debt fl fontGrey3" title="Total effort (in days) to fix all the issues on the component and therefore to comply to all the requirements.">3d 2h</li>
<li class="analysis-result-time fl fontGrey3" title="Last Analysis">2016-06-22</li>
<div class="cl"></div>
</ul>
<% @results.each do |result| %>
<ul class="analysis-result-list">
<li title="Name"><%=link_to result["k"], project_quality_analysis_path(:resource_id => result["id"]), :class => "analysis-result-name fl fontBlue2" %></li>
<li class="analysis-result-version fl fontBlue2" title="Version">1.0</li>
<li class="analysis-result-loc fl fontBlue2" title="Non Commenting Lines of Code">LOC</li>
<li class="analysis-result-debt fl fontBlue2" title="Total effort (in days) to fix all the issues on the component and therefore to comply to all the requirements.">TECHNICAL DEBT</li>
<li class="analysis-result-time fl fontBlue2" title="Last Analysis">LAST ANALYSIS</li>
<div class="cl"></div>
</ul>
<% end %>
</div>
<div style="clear:both;"></div>

View File

@ -1,9 +1,5 @@
<% if @name_flag %>
<%= @results.each do |result| %>
<p>
<%=link_to result["k"], project_quality_analysis_path(:resource_id => result["id"]) %>
</p>
<% end %>
<%= render :partial => "result_list" %>
<% else %>
<%= render "show" %>
<% end %>

View File

@ -5,7 +5,7 @@
<% if is_project_manager?(User.current, @project.id) && QualityAnalysis.where(:project_id => @project.id).first.nil? %>
<%= link_to "质量分析", quality_analysis_path(:id => @project.id, :repository_id => @repository.identifier), :remote => true, :class => "btn_zipdown fr" %>
<% else %>
<%= link_to "质量分析", project_quality_analysis_path(:project_id => @project.id), :remote => true, :class => "btn_zipdown fr" %>
<%= link_to "质量分析", project_quality_analysis_path(:project_id => @project.id), :class => "btn_zipdown fr" %>
<% end %>
</div>
<div class="repository_con" style="line-height:1.9;">

View File

@ -1267,4 +1267,15 @@ a.pages-big{ width:50px;}
.contribute-list-problem {width:170px; vertical-align:middle; text-align:center;}
.contribute-list-rate {width:228px; vertical-align:middle; text-align:center;}
.contribute-list-height {height:80px;}
.contribute-list-line-height {line-height:80px;}
.contribute-list-line-height {line-height:80px;}
/*20160623分析结果*/
.analysis-result-list {padding:5px;}
.analysis-result-list:nth-of-type(odd){background:#fff;}/*奇数行*/
.analysis-result-list:nth-of-type(even){background:#f5f5f5;}/*偶数行*/
.analysis-result-name {width:200px; cursor:pointer;}
.analysis-result-version {width:90px; text-align:right; cursor:pointer;}
.analysis-result-loc {width:60px; text-align:right; cursor:pointer;}
.analysis-result-debt {width:160px; text-align:right; cursor:pointer;}
.analysis-result-time {width:150px; text-align:right; cursor:pointer;}
.analysis-name-icon {background:url(../images/code-analysis-icon.png) -2px -148px no-repeat; width:16px; height:16px; display:inline-block; vertical-align:middle;}