Browse Source

Minor html fixes

dhasenan 3 years ago
parent
commit
8d7fe72da1
1 changed files with 5 additions and 9 deletions
  1. 5
    9
      source/dubautotester/html.d

+ 5
- 9
source/dubautotester/html.d View File

@@ -110,16 +110,11 @@ void buildEfficient(string path, string title, SysTime lastUpdate, void delegate
110 110
     <meta charset="utf-8">
111 111
     <script type="text/javascript" src="%1$sautotester.js"></script>
112 112
     <link rel="stylesheet" href="%1$sautotester.css">
113
-    <title>`, rel);
114
-    f.write(title);
115
-    f.write(`</title>
113
+    <title>%2%s</title>
116 114
   </head>
117 115
   <body>
118 116
     <a href="%1$sindex.html">Main page</a>
119
-    <h1>`);
120
-    f.write(title);
121
-    f.write(`</h1>
122
-    `);
117
+    <h1>%2$s</h1>`, rel, title);
123 118
     main(f);
124 119
     f.write(`
125 120
   </body>
@@ -273,7 +268,7 @@ void buildPackageReportStuff(ref File f, Build[] builds, Type linkTo)
273 268
             {
274 269
                 f.writef(`
275 270
         <td>
276
-          <a href="build%1$s" id="build%1$s" onclick="showBuildOutput(build%1$s)"
271
+          <a href="#build%1$s" id="build%1$s" onclick="showBuildOutput(build%1$s)"
277 272
               data-stderr="%2$s">Build log</a>
278 273
         </td>`,
279 274
                 i, build.stderr.htmlEntitiesEncode);
@@ -517,7 +512,8 @@ void buildDiff(Config config, string path, string older, string newer)
517 512
                 delta(olderBuild.canBuild, newerBuild.canBuild),
518 513
                 delta(olderBuild.canTest, newerBuild.canTest),
519 514
                 delta(!olderBuild.hasDeprecations, !newerBuild.hasDeprecations));
520
-            if (newBreakage(olderBuild, newerBuild) && newerBuild.stderr.length > 0)
515
+            // Over-supply build logs
516
+            if (newerBuild.stderr.length > 0)
521 517
             {
522 518
                 f.writef(`
523 519
         <td>