[LNT] r306360 - Fix missing/mismatched html tags

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 26 21:11:31 PDT 2017


Author: matze
Date: Mon Jun 26 21:11:31 2017
New Revision: 306360

URL: http://llvm.org/viewvc/llvm-project?rev=306360&view=rev
Log:
Fix missing/mismatched html tags

- Fix various missing end tags and mismatched tags
- Also add closing slash to various empty tags (<br> => <br/>, ...)
- Replace some html entities with the actual UTF-8 characters; This
  looks nicer and makes it easier to run xmllint on the output.

Differential Revision: https://reviews.llvm.org/D34581

Modified:
    lnt/trunk/lnt/server/ui/templates/index.html
    lnt/trunk/lnt/server/ui/templates/reporting/runs.html
    lnt/trunk/lnt/server/ui/templates/rules.html
    lnt/trunk/lnt/server/ui/templates/submit_run.html
    lnt/trunk/lnt/server/ui/templates/utils.html
    lnt/trunk/lnt/server/ui/templates/v4_graph.html
    lnt/trunk/lnt/server/ui/templates/v4_machine.html
    lnt/trunk/lnt/server/ui/templates/v4_matrix.html
    lnt/trunk/lnt/server/ui/templates/v4_new_regressions.html
    lnt/trunk/lnt/server/ui/templates/v4_order.html
    lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html
    lnt/trunk/lnt/server/ui/templates/v4_regression_list.html
    lnt/trunk/lnt/server/ui/templates/v4_run.html
    lnt/trunk/lnt/server/ui/templates/v4_summary_report.html
    lnt/trunk/lnt/server/ui/templates/v4_summary_report_ui.html

Modified: lnt/trunk/lnt/server/ui/templates/index.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/index.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/index.html (original)
+++ lnt/trunk/lnt/server/ui/templates/index.html Mon Jun 26 21:11:31 2017
@@ -6,7 +6,7 @@
 {# Display available test result suites. #}
 <h3>Test Suites</h3>
 {% for name in request.get_db().testsuite %}
-  <a href="{{db_url_for('v4_recent_activity', testsuite_name=name)}}">{{name}}</a><br>
+  <a href="{{db_url_for('v4_recent_activity', testsuite_name=name)}}">{{name}}</a><br/>
 {% endfor %}
 
 {% endblock %}

Modified: lnt/trunk/lnt/server/ui/templates/reporting/runs.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/reporting/runs.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/reporting/runs.html (original)
+++ lnt/trunk/lnt/server/ui/templates/reporting/runs.html Mon Jun 26 21:11:31 2017
@@ -27,13 +27,13 @@
          {% endfor %}
          </tbody>
        {% else %}
-         <th style="{{ styles['th'] }}">Δ {{ metric_field_suffix }}</th>
+         <th style="{{ styles['th'] }}">Δ {{ metric_field_suffix }}</th>
          <th style="{{ styles['th'] }}">{{ metric_name }}</th>
          <th style="{{ styles['th'] }}">Current</th>
-         <th style="{{ styles['th'] }}">σ {{ metric_field_suffix }}</th>
+         <th style="{{ styles['th'] }}">σ {{ metric_field_suffix }}</th>
          {% if secondary_info %}
-         <th style="{{ styles['th'] }}">Δ {{ secondary_field_suffix }}</th>
-         <th style="{{ styles['th'] }}">σ {{ secondary_field_suffix }}</th>
+         <th style="{{ styles['th'] }}">Δ {{ secondary_field_suffix }}</th>
+         <th style="{{ styles['th'] }}">σ {{ secondary_field_suffix }}</th>
          {% endif %}
          </tr>
          </thead>
@@ -64,6 +64,7 @@
          </tbody>
        {% endif %}
      </table>
+   </p>
 {% endif %}
 {% endmacro %}
 
@@ -113,6 +114,7 @@
   {% endfor %}
  </tbody>
 </table>
+</p>
 
 {% if compare_to and run.machine != compare_to.machine %}
 <p><b>
@@ -125,7 +127,7 @@
 </b></p>
 {% endif %}
 
-<hr>
+<hr/>
 <h3>Tests Summary</h3>
 <table style="{{ styles['table'] }}" class="{{ classes['table'] }}">
   <thead>
@@ -173,7 +175,7 @@
                                                    'Previous', '', ' (B)', run_to_baseline_info, styles, classes)
   }}
 {% endfor %}
-<p>
+</p>
 {% if baseline %}
 <h3>Run-Over-Baseline Changes Detail</h3>
 {% for _, field, bucket_name, sorted_bucket, test_names, show_perf in prioritized_buckets_run_over_baseline %}

Modified: lnt/trunk/lnt/server/ui/templates/rules.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/rules.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/rules.html (original)
+++ lnt/trunk/lnt/server/ui/templates/rules.html Mon Jun 26 21:11:31 2017
@@ -15,7 +15,7 @@
     <thead>
       <tr>
         <th>Name</th>
-        <th>Description<th>
+        <th>Description</th>
       </tr>
     </thead>
     <tbody class="searchable">

Modified: lnt/trunk/lnt/server/ui/templates/submit_run.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/submit_run.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/submit_run.html (original)
+++ lnt/trunk/lnt/server/ui/templates/submit_run.html Mon Jun 26 21:11:31 2017
@@ -8,17 +8,17 @@
 {% endif %}
 
 <form method="post" enctype="multipart/form-data" action="">
-<b>Input File (plist):</b><br>
-<input type="file" name="file"><br>
+<b>Input File (plist):</b><br/>
+<input type="file" name="file"><br/>
 
-<p><b>Input Data (plist):</b><br>
+<p><b>Input Data (plist):</b><br/>
 <textarea name="input_data"></textarea>
 
-<p><b>Commit*:</b><br>
+<p><b>Commit*:</b><br/>
 <select name="commit">
 <option selected="selected" value="0">0</option>
 <option value="1">1</option>
-</select><br>
+</select><br/>
 
 <p><input type="submit" name="submit" value="Submit">
 </form>

Modified: lnt/trunk/lnt/server/ui/templates/utils.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/utils.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/utils.html (original)
+++ lnt/trunk/lnt/server/ui/templates/utils.html Mon Jun 26 21:11:31 2017
@@ -107,9 +107,9 @@ $(document).ready(function() {
 
 {% macro render_field(field) %}
     {%  if field.errors %}
-        <div class="control-group error">
+    <div class="control-group error">
     {% else %}
-        <div>
+    <div>
     {% endif %}
 
     <dt>
@@ -118,7 +118,7 @@ $(document).ready(function() {
         </div>
     </dt>
     <div class="controls">
-        <dd>{{ field(**kwargs)|safe }}
+      <dd>{{ field(**kwargs)|safe }}</dd>
     </div>
     <ul class="help-inline">
     {% for error in field.errors %}
@@ -127,5 +127,4 @@ $(document).ready(function() {
     </ul>
 
     </div>
-    </dd>
-{% endmacro %}
\ No newline at end of file
+{% endmacro %}

Modified: lnt/trunk/lnt/server/ui/templates/v4_graph.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_graph.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_graph.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_graph.html Mon Jun 26 21:11:31 2017
@@ -159,53 +159,52 @@ function init_page() {
               <tr>
                 <td>Mean() as Aggregation</td>
                 <td><input type="checkbox" name="switch_min_mean" value="yes"
-                    {{ 'checked' if options.switch_min_mean else ""}}></td>
+                    {{ 'checked' if options.switch_min_mean else ""}}/></td>
               </tr>
               <tr>
                 <td>Hide Line Plot:</td>
                 <td><input type="checkbox" name="hide_lineplot" value="yes"
-                     {{ 'checked' if options.hide_lineplot else ""}}></td>
+                     {{ 'checked' if options.hide_lineplot else ""}}/></td>
               </tr>
               <tr>
                 <td>Show Median Absolute Deviation:</td>
                 <td><input type="checkbox" name="show_mad" value="yes"
-                     {{ 'checked' if options.show_mad else ""}}></td>
+                     {{ 'checked' if options.show_mad else ""}}/></td>
               </tr>
               <tr>
                 <td>Show Standard Deviation:</td>
                 <td><input type="checkbox" name="show_stddev" value="yes"
-                     {{ 'checked' if options.show_stddev else ""}}></td>
+                     {{ 'checked' if options.show_stddev else ""}}/></td>
               </tr>
               <tr>
                 <td>Show Linear Regression:</td>
                 <td><input type="checkbox" name="show_linear_regression" value="yes"
-                     {{ 'checked' if options.show_linear_regression else ""}}></td>
+                     {{ 'checked' if options.show_linear_regression else ""}}/></td>
               </tr>
               <tr>
                 <td>Show Points For Failures:</td>
                 <td><input type="checkbox" name="show_failures" value="yes"
-                     {{ 'checked' if options.show_failures else ""}}></td>
+                     {{ 'checked' if options.show_failures else ""}}/></td>
               </tr>
               <tr>
-              <tr>
                 <td>Hide Sample Points:</td>
                 <td><input type="checkbox" name="hide_all_points" value="yes"
-                     {{ 'checked' if options.hide_all_points else ""}}></td>
+                     {{ 'checked' if options.hide_all_points else ""}}/></td>
               </tr>
               <tr>
                 <td>Normalize By Median:</td>
                 <td><input type="checkbox" name="normalize_by_median" value="yes"
-                     {{ 'checked' if options.normalize_by_median else ""}}></td>
+                     {{ 'checked' if options.normalize_by_median else ""}}/></td>
               </tr>
               <tr>
                 <td>Show Moving Average</td>
                 <td><input type="checkbox" name="show_moving_average" value="yes"
-                     {{ 'checked' if options.show_moving_average else ""}}></td>
+                     {{ 'checked' if options.show_moving_average else ""}}/></td>
               </tr>
               <tr>
                 <td>Show Moving Median</td>
                 <td><input type="checkbox" name="show_moving_median" value="yes"
-                     {{ 'checked' if options.show_moving_median else ""}}></td>
+                     {{ 'checked' if options.show_moving_median else ""}}/></td>
               </tr>
               <tr>
                 <td>Moving Average/Median Window Size</td>
@@ -218,7 +217,7 @@ function init_page() {
               <tr>
                 <td>Hide Revision Comparison Region Highlight</td>
                 <td><input type="checkbox" name="hide_highlight" value="yes"
-                     {{ 'checked' if options.hide_highlight else ""}}></td>
+                     {{ 'checked' if options.hide_highlight else ""}}/></td>
               </tr>
             </tbody>
           </table>
@@ -226,13 +225,13 @@ function init_page() {
           {# Add all the hidden fields. #}
           {% for name,value in request.args.items() %}
           {% if name.startswith('plot.') %}
-          <input type="hidden" name="{{name}}" value="{{value}}">
+          <input type="hidden" name="{{name}}" value="{{value}}"/>
           {% endif %}
           {% if name.startswith('baseline.') %}
-          <input type="hidden" name="{{name}}" value="{{value}}">
+          <input type="hidden" name="{{name}}" value="{{value}}"/>
           {% endif %}
           {% if name == 'mean' %}
-          <input type="hidden" name="{{name}}" value="{{value}}">
+          <input type="hidden" name="{{name}}" value="{{value}}"/>
           {% endif %}
           {% endfor %}
 
@@ -250,7 +249,7 @@ function init_page() {
                 <div id="graph" style="height:500px"></div>
                 <div id="zoombar" style="width:40px;">
                     <button id="in" type="button" class="btn btn-default" style="width:100%;text-align:center;">+</button>
-                    <br>
+                    <br/>
                     <button id="out" type="button" class="btn btn-default" style="width:100%; text-align:center;">-</button>
                 </div>
                 <div id="yaxis">Metric</div>
@@ -263,7 +262,7 @@ function init_page() {
         <td colspan="2">
             <div id="overview" style="height:80px;margin-top:20px;margin-left:20px"></div>
         </td>
-    </td>
+    </tr>
 
 </table>
 

Modified: lnt/trunk/lnt/server/ui/templates/v4_machine.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_machine.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_machine.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_machine.html Mon Jun 26 21:11:31 2017
@@ -75,7 +75,7 @@
                 </select>
                 </p>
                 <p>
-                    <input class="btn" type="submit" value="Compare">
+                    <input class="btn" type="submit" value="Compare"/>
                 </p>
 
             </form>

Modified: lnt/trunk/lnt/server/ui/templates/v4_matrix.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_matrix.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_matrix.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_matrix.html Mon Jun 26 21:11:31 2017
@@ -69,7 +69,7 @@
                     <a href="{{v4_url_for('v4_order', id=order_to_id[order])}}">
                         {{name}}
                     </a>
-                    <br>
+                    <br/>
                     <span class="shortDateFormat" data-toggle="tooltip" title="{{order_to_date[order]}}">
                         {{ order_to_date[order].isoformat() }}
                     </span>

Modified: lnt/trunk/lnt/server/ui/templates/v4_new_regressions.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_new_regressions.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_new_regressions.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_new_regressions.html Mon Jun 26 21:11:31 2017
@@ -124,13 +124,13 @@ function show_tooltip(x, y, item, pos, g
     var tip_body = '<div id="tooltip">';
 
     if ("test_name" in meta_data) {
-        tip_body += "<b>Test:</b> " + meta_data.test_name + "<br>";
+        tip_body += "<b>Test:</b> " + meta_data.test_name + "<br/>";
     }
 
     if ("label" in meta_data) {
-        tip_body += "<b>Revision:</b> " + meta_data.label + "<br>";
+        tip_body += "<b>Revision:</b> " + meta_data.label + "<br/>";
     }
-    tip_body += "<b>Value:</b> " + data[1].toFixed(4) + "<br>";
+    tip_body += "<b>Value:</b> " + data[1].toFixed(4) + "<br/>";
 
     if ("date" in meta_data) {
         tip_body += "<b>Date:</b> " + meta_data.date;
@@ -195,9 +195,9 @@ function update_tooltip(event, pos, item
 <div id="graph" style="height:250px"></div>
 <div id="zoombar" style="width:40px;z-index: 999;">
     <button id="in" type="button" class="btn btn-default" style="width:100%;text-align:center;">+</button>
-    <br>
+    <br/>
     <button id="out" type="button" class="btn btn-default" style="width:100%; text-align:center;">-</button>
-    <br>
+    <br/>
     <button id="normalize" type="button" class="btn btn-default" style="width:100%; text-align:center;">%</button>
 </div>
 
@@ -215,7 +215,7 @@ function update_tooltip(event, pos, item
     <th>Test</th>
     <th>Good, Bad</th>
     <th>Old</th><th>New</th>
-    <th>%Δ</th>
+    <th>Δ</th>
     <th>Now</th>
     <th>Curernt</th>
     <th>Age</th>

Modified: lnt/trunk/lnt/server/ui/templates/v4_order.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_order.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_order.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_order.html Mon Jun 26 21:11:31 2017
@@ -19,17 +19,17 @@
     {% else %}
       <li class="previous disabled"><a href="#">
     {% endif %}
-    ← Previous</a></li>
+    ← Previous</a></li>
 
     {% if order.next_order_id is not none %}
       <li class="next" ><a href="{{v4_url_for('v4_order', id=order.next_order_id)}}">
     {% else %}
       <li class="next disabled"><a href="#">
     {% endif %}
-    Next →</a></li>
+    Next →</a></li>
   </ul>
 
-  <section id="fields" />
+  <section id="fields">
   <h3>Order Fields</h3>
   <table class="table table-striped table-hover table-condensed">
     <thead>
@@ -78,41 +78,43 @@
      {%  endif %}
     </tbody>
   </table>
+  </section>
 
   <section id="baseline">
   <div class="accordion" id="accordion">
-  <div class="accordion-group">
-    <div class="accordion-heading">
-      <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
-         {% if form.name.data %}
-             Baseline - {{ form.name.data }}
-          {% else %}
-             Configure as a baseline
+    <div class="accordion-group">
+      <div class="accordion-heading">
+        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
+           {% if form.name.data %}
+               Baseline - {{ form.name.data }}
+            {% else %}
+               Configure as a baseline
+            {% endif %}
+        </a>
+      </div>
+      <div id="collapseOne" class="accordion-body collapse">
+        <div class="accordion-inner">
+          <form method="POST" action="">
+            <div class="form-group">
+         {{ form.hidden_tag() }}
+            {{ utils.render_field(form.name) }}
+            {{ utils.render_field(form.description) }}
+           {% if form.name.data %}
+                {{ form.update }}
+                {{ form.demote }}
+                {% else %}
+                {{ form.promote }}
           {% endif %}
-      </a>
-    </div>
-    <div id="collapseOne" class="accordion-body collapse">
-      <div class="accordion-inner">
-              <form method="POST" action="">
-          <div class="form-group">
-       {{ form.hidden_tag() }}
-          {{ utils.render_field(form.name) }}
-          {{ utils.render_field(form.description) }}
-         {% if form.name.data %}
-              {{ form.update }}
-              {{ form.demote }}
-              {% else %}
-              {{ form.promote }}
-        {% endif %}
-          </div>
-      </form>
+            </div>
+          </form>
+        </div>
       </div>
     </div>
   </div>
 
   </section>
 
-  <section id="submissions" />
+  <section id="submissions">
   {# List all submissions which reported for this order. #}
   <h3>Submissions</h3>
   <b>Num. Submissions:</b> {{ts.query(ts.Run).filter_by(order_id = order.id).count()}}
@@ -137,4 +139,5 @@
       {% endfor %}
     </tbody>
   </table>
+  </section>
 {% endblock %}

Modified: lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_regression_detail.html Mon Jun 26 21:11:31 2017
@@ -57,9 +57,9 @@ var changes = [
     <div id="graph" style="height:250px"></div>
     <div id="zoombar" style="width:40px;z-index: 999;">
         <button id="in" type="button" class="btn btn-default" style="width:100%;text-align:center;">+</button>
-        <br>
+        <br/>
         <button id="out" type="button" class="btn btn-default" style="width:100%; text-align:center;">-</button>
-        <br>
+        <br/>
         <button id="normalize" type="button" class="btn btn-default" style="width:100%; text-align:center;">%</button>
     </div>
     <div id="yaxis">Metric</div>
@@ -80,13 +80,13 @@ var changes = [
   <thead>
   <tr>
     <th></th>
-    <th>Δ ID</th>
+    <th>Δ ID</th>
     <th>Machine</th>
     <th>Metric</th>
     <th>Test</th>
     <th>Good, Bad</th>
     <th>Old</th><th>New</th>
-    <th>%Δ</th>
+    <th>%Δ</th>
     <th>Now</th>
     <th>Current</th>
     <th>Age</th>
@@ -251,37 +251,37 @@ function update_order_summary() {
     
     // Now print all these things.
     var SIDE_BAR = '#side-bar'
-    $(SIDE_BAR).append("<h3>Summary</h3></br>")
+    $(SIDE_BAR).append("<h3>Summary</h3><br/>")
     
     $(SIDE_BAR).append("<h4>Found</h4>");
     var change = " changes.";
     if (start_orders.length == 1) {
             change = " change."
     }
-    $(SIDE_BAR).append(start_orders.length + change + "</br>");
+    $(SIDE_BAR).append(start_orders.length + change + "<br/>");
 
     $(SIDE_BAR).append($.format.prettyDate(new Date(min_time).toISOString()));
-    $(SIDE_BAR).append(".</br>");
+    $(SIDE_BAR).append(".<br/>");
     
     $(SIDE_BAR).append(new Date(min_time).toLocaleString());
-    $(SIDE_BAR).append(".</br>");
+    $(SIDE_BAR).append(".<br/>");
     $(SIDE_BAR).append("<h4>Orders</h4>");
     
-    $(SIDE_BAR).append("<b>Union (" + (max_order - min_order) + " commits):</b></br>");
-    $(SIDE_BAR).append("<b>Min Order:</b> " + min_order + "</br>");
-    $(SIDE_BAR).append("<b>Max Order:</b> " + max_order + "</br></br>");
+    $(SIDE_BAR).append("<b>Union (" + (max_order - min_order) + " commits):</b><br/>");
+    $(SIDE_BAR).append("<b>Min Order:</b> " + min_order + "<br/>");
+    $(SIDE_BAR).append("<b>Max Order:</b> " + max_order + "<br/><br/>");
     
     var intersection_size = min_order_end - max_order_start;
     if (intersection_size > 0) {
-        $(SIDE_BAR).append("<b>Intersection ("+ intersection_size +"): </b></br>");
-        $(SIDE_BAR).append("<b>Min Order:</b> " + max_order_start + "</br>");
-        $(SIDE_BAR).append("<b>Max Order:</b> " + min_order_end + "</br></br>");
+        $(SIDE_BAR).append("<b>Intersection ("+ intersection_size +"): </b><br/>");
+        $(SIDE_BAR).append("<b>Min Order:</b> " + max_order_start + "<br/>");
+        $(SIDE_BAR).append("<b>Max Order:</b> " + min_order_end + "<br/><br/>");
     } else {
-        $(SIDE_BAR).append("<b>No intersection</b></br>");
+        $(SIDE_BAR).append("<b>No intersection</b><br/>");
     }
 
-     $(SIDE_BAR).append("<br><b><a href=\"?limit=1000\">More data</a></b></br>");
-     $(SIDE_BAR).append("<b><a href=\"?limit=0\">All data</a></b></br>");
+     $(SIDE_BAR).append("<br/><b><a href=\"?limit=1000\">More data</a></b><br/>");
+     $(SIDE_BAR).append("<b><a href=\"?limit=0\">All data</a></b><br/>");
 }
 var dt = null;
 

Modified: lnt/trunk/lnt/server/ui/templates/v4_regression_list.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_regression_list.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_regression_list.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_regression_list.html Mon Jun 26 21:11:31 2017
@@ -65,13 +65,12 @@
     <h3 id="editRegressionModal">Merge Regression</h3>
   </div>
      
-      <div class="modal-body">
-      Merge selected changes into new regression. Are you sure?
-      </div>
-      <div class="modal-footer">
-          <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
-          <input name="merge_btn" class="btn btn-primary" type="submit" value="Merge Regressions">
-      </div>
+  <div class="modal-body">
+    Merge selected changes into new regression. Are you sure?
+  </div>
+  <div class="modal-footer">
+    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
+    <input name="merge_btn" class="btn btn-primary" type="submit" value="Merge Regressions"/>
   </div>
 </div>
 
@@ -83,13 +82,12 @@
     <h3 id="editRegressionModal">Delete Regression(s)</h3>
   </div>
 
-      <div class="modal-body">
-      Delete selected changes. Are you sure?
-      </div>
-      <div class="modal-footer">
-          <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
-          <input name="merge_btn" class="btn btn-primary" type="submit" value="Delete Regressions">
-      </div>
+  <div class="modal-body">
+    Delete selected changes. Are you sure?
+  </div>
+  <div class="modal-footer">
+    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
+    <input name="merge_btn" class="btn btn-primary" type="submit" value="Delete Regressions"/>
   </div>
 </div>
 

Modified: lnt/trunk/lnt/server/ui/templates/v4_run.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_run.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_run.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_run.html Mon Jun 26 21:11:31 2017
@@ -191,7 +191,7 @@ $('.profile-prev-only').tooltip();
         {% if '\n' in value %}
           <td>
           {% for ln in value.split('\n') %}
-            {{ ln }}<br>
+            {{ ln }}<br/>
           {% endfor %}
           </td>
         {% else %}
@@ -209,67 +209,67 @@ $('.profile-prev-only').tooltip();
     <table class="table table-striped table-condensed table-hover">
     <tr>
       <td>Show Delta</td>
-      <td><input type="checkbox" name="show_delta" value="yes" {{ "checked" if options.show_delta else "" }}></td>
+      <td><input type="checkbox" name="show_delta" value="yes" {{ "checked" if options.show_delta else "" }}/></td>
     </tr>
     <tr>
       <td>Show Previous Value:</td>
-      <td><input type="checkbox" name="show_previous" value="yes" {{ "checked" if options.show_previous else "" }}></td>
+      <td><input type="checkbox" name="show_previous" value="yes" {{ "checked" if options.show_previous else "" }}/></td>
     </tr>
     <tr>
       <td>Show Standard Deviation:</td>
-      <td><input type="checkbox" name="show_stddev" value="yes" {{ "checked" if options.show_stddev else "" }}></td>
+      <td><input type="checkbox" name="show_stddev" value="yes" {{ "checked" if options.show_stddev else "" }}/></td>
     </tr>
     <tr>
       <td>Show Median Absolute Deviation:</td>
-      <td><input type="checkbox" name="show_mad" value="yes" {{ "checked" if options.show_mad else "" }}></td>
+      <td><input type="checkbox" name="show_mad" value="yes" {{ "checked" if options.show_mad else "" }}/></td>
     </tr>
     <tr>
       <td>Show All Values:</td>
-      <td><input type="checkbox" name="show_all" value="yes" {{ "checked" if options.show_all else "" }}></td>
+      <td><input type="checkbox" name="show_all" value="yes" {{ "checked" if options.show_all else "" }}/></td>
     </tr>
     <tr>
       <td>Show All Samples:</td>
-      <td><input type="checkbox" name="show_all_samples" value="yes" {{ "checked" if options.show_all_samples else "" }}></td>
+      <td><input type="checkbox" name="show_all_samples" value="yes" {{ "checked" if options.show_all_samples else "" }}/></td>
     </tr>
     <tr>
       <td>Show Sample Counts:</td>
-      <td><input type="checkbox" name="show_sample_counts" value="yes" {{ "checked" if options.show_sample_counts else "" }}></td>
+      <td><input type="checkbox" name="show_sample_counts" value="yes" {{ "checked" if options.show_sample_counts else "" }}/></td>
     </tr>
     <tr>
       <td>Show Small Differences:</td>
-      <td><input type="checkbox" name="show_small_diff" value="yes" {{ "checked" if options.show_small_diff else "" }}></td>
+      <td><input type="checkbox" name="show_small_diff" value="yes" {{ "checked" if options.show_small_diff else "" }}/></td>
     </tr>
     <tr>
       <td>Number of Comparison Runs:</td>
-      <td><input type="text" name="num_comparison_runs" value="{{ options.num_comparison_runs }}"></td>
+      <td><input type="text" name="num_comparison_runs" value="{{ options.num_comparison_runs }}"/></td>
     </tr>
     <tr>
       <td>Show Report Graphs:</td>
-      <td><input type="checkbox" name="show_graphs" value="yes" {{ "checked" if options.show_graphs else "" }}></td>
+      <td><input type="checkbox" name="show_graphs" value="yes" {{ "checked" if options.show_graphs else "" }}/></td>
     </tr>
     <tr>
       <td>Show Data Table:</td>
-      <td><input type="checkbox" name="show_data_table" value="yes" {{ "checked" if options.show_data_table else ""}}></td>
+      <td><input type="checkbox" name="show_data_table" value="yes" {{ "checked" if options.show_data_table else ""}}/></td>
     </tr>
     <tr>
       <td>Hide Report By Default:</td>
-      <td><input type="checkbox" name="hide_report_by_default" value="yes" {{ "checked" if options.hide_report_by_default else ""}}></td>
+      <td><input type="checkbox" name="hide_report_by_default" value="yes" {{ "checked" if options.hide_report_by_default else ""}}/></td>
     </tr>
     <tr>
       <td>Test Filter (regexp):</td>
-      <td><input type="text" name="test_filter" value="{{ options.test_filter }}"></td>
+      <td><input type="text" name="test_filter" value="{{ options.test_filter }}"/></td>
     </tr>
     <tr>
       <td>Test Min. Value Filter:</td>
-      <td><input type="text" name="test_min_value_filter" value="{{ options.test_min_value_filter }}"></td>
+      <td><input type="text" name="test_min_value_filter" value="{{ options.test_min_value_filter }}"/></td>
     </tr>
     <tr>
       <td>Aggregation Function</td>
       <td>
         <select name="aggregation_fn">
-        <option value="min" {{ " selected" if "min" == options.aggregation_fn else ""}}>
+        <option value="min" {{ ('selected="selected"' if "min" == options.aggregation_fn else '')|safe}}>
           Minimum</option>
-        <option value="median" {{ " selected" if "median" == options.aggregation_fn else ""}}>
+        <option value="median" {{ ('selected="selected"' if "median" == options.aggregation_fn else '')|safe}}>
           Median</option>
         </select>
       </td>
@@ -278,11 +278,11 @@ $('.profile-prev-only').tooltip();
       <td>Mann-Whitney test confidence level:</td>
       <td>
         <select name="MW_confidence_lv">
-          <option value="0.10" {{ "selected" if options.MW_confidence_lv == 0.10 else ""}}>
+          <option value="0.10" {{ ('selected="selected"' if options.MW_confidence_lv == 0.10 else '')|safe}}>
             10%</option>
-          <option value="0.05" {{ "selected" if options.MW_confidence_lv == 0.05 else ""}}>
+          <option value="0.05" {{ ('selected="selected"' if options.MW_confidence_lv == 0.05 else '')|safe}}>
             5%</option>
-          <option value="0.01" {{ "selected" if options.MW_confidence_lv == 0.01 else ""}}>
+          <option value="0.01" {{ ('selected="selected"' if options.MW_confidence_lv == 0.01 else '')|safe}}>
             1%</option>
         </select>
       </td>
@@ -290,13 +290,13 @@ $('.profile-prev-only').tooltip();
     <tr>
       <td colspan="2">
         {% if compare_to %}
-          <input type="hidden" name="compare_to" value="{{compare_to.id}}">
+          <input type="hidden" name="compare_to" value="{{compare_to.id}}"/>
         {% endif %}
         {% if baseline %}
-          <input type="hidden" name="baseline" value="{{baseline.id}}">
+          <input type="hidden" name="baseline" value="{{baseline.id}}"/>
         {% endif %}
 
-        <input type="submit" name="submit" value="Update">
+        <input type="submit" name="submit" value="Update"/>
       </td>
     </tr>
     </table>
@@ -338,13 +338,13 @@ $('.profile-prev-only').tooltip();
       <table class="table table-striped table-hover table-condensed floating_header datatable">
         <thead>
           <tr>
-            <th rowspan="1" class="sorttable_nosort"><input type="checkbox" id="select-all-{{ field.name }}" onClick="selectAll(this)"></th>
+            <th rowspan="1" class="sorttable_nosort"><input type="checkbox" id="select-all-{{ field.name }}" onClick="selectAll(this)"/></th>
             <th rowspan="1">Name</th>
             {% if options.show_previous %}<th>Prev</th>{% endif %}
             <th>Current</th>
             <th>%</th>
-            {% if options.show_delta %}<th>Δ</th>{% endif %}
-            {% if options.show_stddev %}<th>σ</th>{% endif %}
+            {% if options.show_delta %}<th>Δ</th>{% endif %}
+            {% if options.show_stddev %}<th>σ</th>{% endif %}
             {% if options.show_mad %}<th>MAD</th>{% endif %}
             {% if options.show_all_samples %}<th>Samples</th>{% endif %}
             {% if options.show_sample_counts %}<th>N</th>{% endif %}
@@ -353,7 +353,7 @@ $('.profile-prev-only').tooltip();
         <tbody class="searchable">
           {% for test_name,test_id,cr in tests %}
             <tr>
-              <td><input type="checkbox" name="plot.{{test_id}}" value="{{machine.id}}.{{test_id}}.{{field.index}}"></td>
+              <td><input type="checkbox" name="plot.{{test_id}}" value="{{machine.id}}.{{test_id}}.{{field.index}}"/></td>
               <td class="benchmark-name">
                 <a href="{{graph_base}}&plot.{{test_id}}={{ machine.id}}.{{test_id}}.{{field.index}}">
                   {{ test_name }}
@@ -368,7 +368,7 @@ $('.profile-prev-only').tooltip();
           <tr>
             {% set cr = request_info.sri.get_geomean_comparison_result(
                         run, compare_to, field, tests) %}
-            <td><input type="checkbox" name="mean" value="{{machine.id}}.{{field.index}}"></td>
+            <td><input type="checkbox" name="mean" value="{{machine.id}}.{{field.index}}"/></td>
             <td><a href="{{graph_base}}&mean={{machine.id}}.{{field.index}}">Geometric Mean</a></td>
             {{ get_cell_value(cr) }}
           </tr>
@@ -380,7 +380,10 @@ $('.profile-prev-only').tooltip();
         {% endif %}
       </section>
     {% endfor %}
-    <p><input id="graph_button" type="submit" value="Graph"> <input id="matrix_button" type="submit" value="Matrix">
+    <p>
+      <input id="graph_button" type="submit" value="Graph"/>
+      <input id="matrix_button" type="submit" value="Matrix"/>
+    </p>
   </form>
   </section>
 
@@ -433,7 +436,4 @@ $("#graph_button").on("click", function(
 
 
 </script>
-
-
-</script>
 {% endblock %}

Modified: lnt/trunk/lnt/server/ui/templates/v4_summary_report.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_summary_report.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_summary_report.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_summary_report.html Mon Jun 26 21:11:31 2017
@@ -115,7 +115,7 @@ g.current_tip_point = null;
 function show_tooltip(x, y, item, pos) {
     var data = item.datapoint;
     var tip_body = '<div id="tooltip">';
-    tip_body += "<b><u>" + item.series.label + "</u></b><br>";
+    tip_body += "<b><u>" + item.series.label + "</u></b><br/>";
     tip_body += "<b>" + g.tick_list[data[0]][1].toString() + "</b>: ";
     tip_body += data[1].toFixed(2) + "%" + "</div>";
 
@@ -133,7 +133,7 @@ function show_tooltip(x, y, item, pos) {
 
 function show_pie_tooltip(x, y, item, pos) {
     var tip_body = '<div id="tooltip">';
-    tip_body += "<b><u>" + item.series.label + "</u></b><br>";
+    tip_body += "<b><u>" + item.series.label + "</u></b><br/>";
     tip_body += item.series.percent.toFixed(2) + "%" + "</div>";
 
     $(tip_body).css( {

Modified: lnt/trunk/lnt/server/ui/templates/v4_summary_report_ui.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_summary_report_ui.html?rev=306360&r1=306359&r2=306360&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_summary_report_ui.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_summary_report_ui.html Mon Jun 26 21:11:31 2017
@@ -41,8 +41,8 @@
   <h3><center>Report Orders</center></h3>
   <div class="btn-group btn-group-vertical" style="width:100%"  id="report-order-list">
   </div>
-  <br>
-  <br>
+  <br/>
+  <br/>
   <input type="button" value="Add" onclick="add_order();">
 </div>
 




More information about the llvm-commits mailing list