质量分析界面调整

This commit is contained in:
huang 2016-11-15 14:09:25 +08:00
parent 11f8656651
commit 0ea9a49f86
3 changed files with 46 additions and 4 deletions

View File

@ -6,10 +6,10 @@ class QualityAnalysisController < ApplicationController
layout "base_projects"
include ApplicationHelper
include QualityAnalysisHelper
require 'jenkins_api_client'
require 'nokogiri'
require 'json'
require 'open-uri'
# require 'jenkins_api_client'
# require 'nokogiri'
# require 'json'
# require 'open-uri'
def show

View File

@ -2,6 +2,44 @@
// $("#ajax-indicator span").text("载入中...");
$("#ajax-indicator").show();
</script>
<div class="quality_info mb10">
<h2><a href="javascript:history.go(-1)" class="fl linkBlue2 mr5" >
<span class="new_roadmap_icons_back mr5"></span>
返回</a> <span class="fl mr5">|</span> <span class="fl">分析结果</span>
</h2>
</div>
<div class="container-big mb10">
<table>
<tbody>
<tr>
<td>名称</td>
<td>分支</td>
<td>语言</td>
<td>路径</td>
<td>时间</td>
<td></td>
</tr>
</tbody>
<tbody>
<% if @quality_analyses && @quality_analyses.count > 0 %>
<% @quality_analyses.each do |qa| %>
<tr>
<td></td>
<td><%= qa.branch %></td>
<td><%= qa.language %></td>
<td><%= qa.path %></td>
<td><%= format_time(qa.created_at) %></td>
<td><%=link_to "删除", delete_project_quality_analysi_path(qa, :project_id => @project.id), :method => "delete", :confirm => "删除会一并删除分析结果,确定删除吗?", :class => "fontBlue2" %></td>
</tr>
<% end %>
<% else %>
<% end %>
</tbody>
</table>
</div>
<div class="container-big mb10">
<div class="project_r_h" style="width:970px;">
<h2 class="project_h2">分析结果</h2>

View File

@ -1031,3 +1031,7 @@ a.pro_new_users { max-width:80px; overflow:hidden;overflow:hidden;text-overflow:
a:hover.pro_new_users {color: #3b94d6}
.pro_new_users img{ width:40px;height:40px; border: 3px solid #fff;-webkit-border-radius:50px;-moz-border-radius:50px;-o-border-radius:50px;border-radius:50px;}
.pro_new_users img:hover{border: 3px solid #e6e6e6;}
/*质量分析*/
.quality_info{ border:1px solid #ddd; background-color:#fff; width: 998px;}
.quality_info h2{ background: #fff; font-size: 14px; color: #333; height: 40px; line-height: 40px; padding-left: 15px; border-bottom:1px solid #e5e5e5;}