All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scripts.views.sonar-views-min.js Maven / Gradle / Ivy

AJS.$.namespace("AJS.sonar.views");AJS.sonar.views.ALTERNATE_METRIC_LINK_PARAMS={line_coverage:"highlight=line_coverage&metric=uncovered_lines",branch_coverage:"highlight=branch_coverage&metric=uncovered_conditions",public_documented_api_density:"highlight=public_documented_api_density&metric=public_undocumented_api",public_undocumented_api:"highlight=public_undocumented_api&metric=public_undocumented_api",commented_out_code_lines:"highlight=commented_out_code_lines&metric=commented_out_code_lines",duplicated_lines_density:"highlight=duplicated_lines_density&metric=duplicated_lines",violations_density:"highlight=weighted_violations&metric=weighted_violations"};AJS.sonar.views.createViewContainer=function(){return AJS.$("
").addClass("view-container")};AJS.sonar.views.createColumn=function(b){var a=AJS.$("
");if(b){a.attr({id:"leftColumn"});a.addClass("left-column")}else{a.attr({id:"rightColumn"});a.addClass("right-column")}return a};AJS.sonar.views.createHeader=function(a){return AJS.$("

").text(AJS.sonar.text.getMsg(a))};AJS.sonar.views.createMeasureRow=function(d,j,g,b,f,e){var c="sonar.views."+j+".";var k=AJS.$("

");if(e){k.addClass("big-measure")}var h="metric="+f.key;if(AJS.sonar.views.ALTERNATE_METRIC_LINK_PARAMS[f.key]){h=AJS.sonar.views.ALTERNATE_METRIC_LINK_PARAMS[f.key]}var a=AJS.$("").attr({href:d+"/drilldown/measures/"+g+"?"+h,target:"_parent"});a.append(AJS.$("").addClass("alert_"+b.alert).text(b.frmt_val));if(AJS.sonar.text.getMsg(c+f.key)!==""&&AJS.sonar.text.getMsg(c+f.key)!==(c+f.key)){a.append(AJS.$("").text(" "+AJS.sonar.text.getMsg(c+f.key)))}var i=AJS.sonar.utils.getTrendImage(b,!e);if(i!==""){a.append(AJS.$("").attr({src:d+"/images"+i}))}a.appendTo(k);return k};AJS.sonar.views.addViewFooter=function(b,a){var c=AJS.$("





© 2015 - 2024 Weber Informatics LLC | Privacy Policy