summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android_benchmark_views_app/templates/android_benchmark_views_app/index.html8
-rw-r--r--android_benchmark_views_app/views.py5
2 files changed, 13 insertions, 0 deletions
diff --git a/android_benchmark_views_app/templates/android_benchmark_views_app/index.html b/android_benchmark_views_app/templates/android_benchmark_views_app/index.html
index f6aa583..c78b081 100644
--- a/android_benchmark_views_app/templates/android_benchmark_views_app/index.html
+++ b/android_benchmark_views_app/templates/android_benchmark_views_app/index.html
@@ -7,8 +7,16 @@
<li><a href="reports/{{report.series}}">{{ report.series }}</a></li>
{% endfor %}
</ul>
+
+{% if report.comments %}
+<h3>Comments</h3>
+<pre>
+{{report.comments}}
+</pre>
+{% endif %}
{% endblock %}
{% block report_title %}
<h2>Reports Over Time</h2>
+
{% endblock %}
diff --git a/android_benchmark_views_app/views.py b/android_benchmark_views_app/views.py
index 7fb82a6..041426e 100644
--- a/android_benchmark_views_app/views.py
+++ b/android_benchmark_views_app/views.py
@@ -45,6 +45,10 @@ def index(request):
# fake out data so that we can compare GCC 4.6 performance
# over the last 6 months
report = BenchmarkReport()
+ report_index = BenchmarkReport.objects.filter(series='index')
+ if report_index.count() == 1:
+ report = report_index[0]
+
runs = []
for r in history_reports:
run = BenchmarkRun()
@@ -56,6 +60,7 @@ def index(request):
return render_to_response(
"android_benchmark_views_app/index.html", {
+ 'report': report,
'reports': reports,
'runs': runs,