Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix frontpage header layout when a lane has more than one hostlane an…

…d require filler cells.
  • Loading branch information...
commit 2ab236e28127e828fc21f96e224c090c734ad125 1 parent d9ba3c0
@rolfbjarne rolfbjarne authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 MonkeyWrench.Web.UI/index.aspx.cs
View
11 MonkeyWrench.Web.UI/index.aspx.cs
@@ -114,10 +114,12 @@ private void WriteLanes (List<StringBuilder> header_rows, LaneTreeNode node, int
}
if (node.Children.Count == 0) {
- for (int i = level; i < depth; i++) {
- if (header_rows.Count <= i)
- header_rows.Add (new StringBuilder ());
- header_rows [i].Append ("<td colspan='1'>-</td>");
+ for (int hl = 0; hl < node.HostLanes.Count; hl++) {
+ for (int i = level; i < depth; i++) {
+ if (header_rows.Count <= i)
+ header_rows.Add (new StringBuilder ());
+ header_rows [i].Append ("<td colspan='1'>-</td>");
+ }
}
}
}
@@ -309,3 +311,4 @@ public string GenerateOverview (FrontPageResponse data)
return matrix.ToString ();
}
}
+
Please sign in to comment.
Something went wrong with that request. Please try again.