[llvm-commits] [zorg] r151542 - in /zorg/trunk/lnt/lnt/server/ui: templates/simple_run.html templates/simple_utils.html views.py

Daniel Dunbar daniel at zuster.org
Mon Feb 27 11:29:53 PST 2012


Author: ddunbar
Date: Mon Feb 27 13:29:52 2012
New Revision: 151542

URL: http://llvm.org/viewvc/llvm-project?rev=151542&view=rev
Log:
[lnt] Fix up simple UI for stricter Jinja settings.

Modified:
    zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html
    zorg/trunk/lnt/lnt/server/ui/templates/simple_utils.html
    zorg/trunk/lnt/lnt/server/ui/views.py

Modified: zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html?rev=151542&r1=151541&r2=151542&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html (original)
+++ zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html Mon Feb 27 13:29:52 2012
@@ -93,31 +93,31 @@
 <form action="" method="get">
 <b>Show Delta:</b>
 <input type="checkbox" name="show_delta" value="yes" {{
-       "checked" if options.show_delta }}><br>
+       "checked" if options.show_delta else "" }}><br>
 
 <b>Show Previous Value:</b>
 <input type="checkbox" name="show_previous" value="yes" {{
-       "checked" if options.show_previous }}><br>
+       "checked" if options.show_previous else "" }}><br>
 
 <b>Show Standard Deviation:</b>
 <input type="checkbox" name="show_stddev" value="yes" {{
-       "checked" if options.show_stddev }}><br>
+       "checked" if options.show_stddev else "" }}><br>
 
 <b>Show Median Absolute Deviation:</b>
 <input type="checkbox" name="show_mad" value="yes" {{
-       "checked" if options.show_mad }}><br>
+       "checked" if options.show_mad else "" }}><br>
 
 <b>Show All Values:</b>
 <input type="checkbox" name="show_all" value="yes" {{
-       "checked" if options.show_all }}><br>
+       "checked" if options.show_all else "" }}><br>
 
 <b>Show All Samples:</b>
 <input type="checkbox" name="show_all_samples" value="yes" {{
-       "checked" if options.show_all_samples }}><br>
+       "checked" if options.show_all_samples else "" }}><br>
 
 <b>Show Sample Counts:</b>
 <input type="checkbox" name="show_sample_counts" value="yes" {{
-       "checked" if options.show_sample_counts }}><br>
+       "checked" if options.show_sample_counts else "" }}><br>
 
 <b>Number of Comparison Runs:</b>
 <input type="text" name="num_comparison_runs" value="{{
@@ -125,15 +125,15 @@
 
 <b>Show Report Graphs:</b>
 <input type="checkbox" name="show_graphs" value="yes" {{
-       "checked" if options.show_graphs }}><br>
+       "checked" if options.show_graphs else "" }}><br>
 
 <b>Show Data Table:</b>
 <input type="checkbox" name="show_data_table" value="yes" {{
-       "checked" if options.show_data_table }}><br>
+       "checked" if options.show_data_table else "" }}><br>
 
 <b>Hide Report By Default:</b>
 <input type="checkbox" name="hide_report_by_default" value="yes" {{
-       "checked" if options.hide_report_by_default }}><br>
+       "checked" if options.hide_report_by_default else "" }}><br>
 
 <b>Test Filter (regexp):</b>
 <input type="text" name="test_filter" value="{{

Modified: zorg/trunk/lnt/lnt/server/ui/templates/simple_utils.html
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/templates/simple_utils.html?rev=151542&r1=151541&r2=151542&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/templates/simple_utils.html (original)
+++ zorg/trunk/lnt/lnt/server/ui/templates/simple_utils.html Mon Feb 27 13:29:52 2012
@@ -37,10 +37,10 @@
 
 {# Show a small number of neighboring runs. #}
 {% for r in neighboring_runs %}
-        <li>{{ "<h3>"|safe if r.id == run.id }}
+        <li>{{ "<h3>"|safe if r.id == run.id else "" }}
             <a href="{{db_url_for('simple_run', tag=tag, id=r.id)}}">{{
                      r.start_time}}</a>{{
-            "</h3>"|safe if r.id == run.id }}
+            "</h3>"|safe if r.id == run.id else "" }}
 {% endfor %}
       </ul>
     </td>

Modified: zorg/trunk/lnt/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/views.py?rev=151542&r1=151541&r2=151542&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/views.py (original)
+++ zorg/trunk/lnt/lnt/server/ui/views.py Mon Feb 27 13:29:52 2012
@@ -387,7 +387,8 @@
                            neighboring_runs=neighboring_runs,
                            text_report=text_report, html_report=html_report,
                            options=options, runinfo=runinfo,
-                           comparison_window=comparison_window)
+                           comparison_window=comparison_window,
+                           run_status_kind=run_status_kind)
 
 @db_route("/simple/<tag>/<int:id>/graph", only_v3=False)
 def simple_graph(tag, id):





More information about the llvm-commits mailing list