get quality analisys update time
This commit is contained in:
parent
baa69e0787
commit
7c28f97208
|
@ -3,7 +3,7 @@ module QualityAnalysisHelper
|
||||||
|
|
||||||
def sonar_time sonar_name
|
def sonar_time sonar_name
|
||||||
sonar = open(@sonar_address + "/api/resources/index?resource=#{sonar_name}&depth=0").read
|
sonar = open(@sonar_address + "/api/resources/index?resource=#{sonar_name}&depth=0").read
|
||||||
sonar =JSON.parse(sonar).first
|
sonar =JSON.parse(sonar).first['date']
|
||||||
end
|
end
|
||||||
|
|
||||||
def sqale_rating_status val
|
def sqale_rating_status val
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<li class="analysis-result-version fl fontBlue2 hidden" title="<%= qa.branch %>"><%= qa.branch %></li>
|
<li class="analysis-result-version fl fontBlue2 hidden" title="<%= qa.branch %>"><%= qa.branch %></li>
|
||||||
<li class="analysis-result-loc fl fontBlue2 hidden" title="<%= qa.language %>"><%= qa.language %></li>
|
<li class="analysis-result-loc fl fontBlue2 hidden" title="<%= qa.language %>"><%= qa.language %></li>
|
||||||
<li class="analysis-result-debt fl fontBlue2 hidden" title="<%= qa.path %>"><%= qa.path %></li>
|
<li class="analysis-result-debt fl fontBlue2 hidden" title="<%= qa.path %>"><%= qa.path %></li>
|
||||||
<li class="analysis-result-time fl fontBlue2 hidden" title="<%= qa.updated_at %>"><%= format_time(sonar_time(qa)) %></li>
|
<li class="analysis-result-time fl fontBlue2 hidden" title="<%= qa.updated_at %>"><%= format_time(sonar_time(qa.sonar_name)) %></li>
|
||||||
<% if User.current.try(:login) == qa.author_login || User.current.admin? || is_project_manager?(User.current.id, @project.id) %>
|
<% if User.current.try(:login) == qa.author_login || User.current.admin? || is_project_manager?(User.current.id, @project.id) %>
|
||||||
<li class="analysis-result-edit fl fontBlue2 hidden" title="<%= qa.path %>">
|
<li class="analysis-result-edit fl fontBlue2 hidden" title="<%= qa.path %>">
|
||||||
<%=link_to "编辑", edit_project_quality_analysi_path(qa, :project_id => @project.id), :remote => true, :class => "fontBlue2" %><span style="color: #888"> / </span>
|
<%=link_to "编辑", edit_project_quality_analysi_path(qa, :project_id => @project.id), :remote => true, :class => "fontBlue2" %><span style="color: #888"> / </span>
|
||||||
|
|
Loading…
Reference in New Issue