|
a/tool/run/plugins/spdx/show.java |
|
b/tool/run/plugins/spdx/show.java |
|
... |
|
... |
117 |
warnings = ""
|
117 |
warnings = ""
|
118 |
+ html.getIcon("exclamation.png", request)
|
118 |
+ html.getIcon("exclamation.png", request)
|
119 |
+ "No licenses declared";
|
119 |
+ "No licenses declared";
|
120 |
}
|
120 |
}
|
121 |
|
121 |
|
|
|
122 |
|
|
|
123 |
// handle the number of documents
|
|
|
124 |
String documentText = "";
|
|
|
125 |
if(core.products.size() == 1){
|
|
|
126 |
documentText = "1 document" + html.br;
|
|
|
127 |
}
|
|
|
128 |
if(core.products.size() > 1){
|
|
|
129 |
documentText = core.products.size() + " documents" + html.br;
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
|
122 |
String summary =
|
133 |
String summary =
|
123 |
"<h2>"
|
134 |
"<h2>"
|
124 |
+ "SPDX summary"
|
135 |
+ "SPDX summary"
|
125 |
+ "</h2>"
|
136 |
+ "</h2>"
|
126 |
+ html._div
|
137 |
+ html._div
|
127 |
+ html.div(20)
|
138 |
+ html.div(20)
|
128 |
+ warnings
|
139 |
+ warnings
|
129 |
//+ html.getCommonFolderIcon("documents-stack.png")
|
140 |
+ documentText
|
130 |
+ core.products.size() + " documents"
|
|
|
131 |
+ html.br
|
|
|
132 |
//+ " containing "
|
141 |
//+ " containing "
|
133 |
//+ html.getCommonFolderIcon("calculator.png")
|
142 |
//+ html.getCommonFolderIcon("calculator.png")
|
134 |
+ counterLicensesDeclared + " files with declared licenses"
|
143 |
+ counterLicensesDeclared + " files with declared licenses"
|
135 |
+ html.br
|
144 |
+ html.br
|
136 |
+ counterFiles + " files in total"
|
145 |
+ counterFiles + " files in total"
|