Skip to content

Commit a5e972f

Browse files
committed
with colors
1 parent dc522ba commit a5e972f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/NetPackageAnalyzer/NetPackageAnalyzerExportHTML/Templates/MatrixProjects.cshtml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,26 @@
1717
@for(int index=0;index<nr;index++)
1818
{
1919
var prj = projects[index];
20+
var name = prj.NameCSproj();
21+
var upStream = ""+prj.UpStreamProjectReferences.Count;
22+
var downStream = ""+prj.AlphabeticalProjectsReferences().Count();
23+
if (upStream == "0")
24+
{
25+
name = $"<b><span style='color: DodgerBlue;'>{name}</span></b>";
26+
upStream = $"<b><span style='color: DodgerBlue;'>0</span></b>";
27+
}
28+
29+
if(downStream == "0")
30+
{
31+
name = $"<i><span style='color: Tomato;'>{name}</span></i>";
32+
downStream = $"<i><span style='color: Tomato;'>0</span></i>";
33+
}
2034

2135
<tr>
22-
<td>@(index+1)</td>
23-
<td>@prj.NameCSproj()</td>
24-
<td>@prj.UpStreamProjectReferences.Count</td>
25-
<td>@prj.AlphabeticalProjectsReferences().Count()</td>
36+
<td>@(index+1)</td>
37+
<td>@name</td>
38+
<td>@upStream</td>
39+
<td>@downStream</td>
2640

2741
</tr>
2842
}

0 commit comments

Comments
 (0)