diff options
author | Andy Doan <doanac@gmail.com> | 2012-01-31 17:16:57 -0600 |
---|---|---|
committer | Andy Doan <doanac@gmail.com> | 2012-01-31 18:14:58 -0600 |
commit | beac084e79e2bac6bbe5449ab16948686864d663 (patch) | |
tree | c482fde129bd1f552ef3033bb497d162e496127d | |
parent | 964b6eb712f2b6a8126a52ecf85bcd9cea37280c (diff) | |
download | android_benchmark_views-beac084e79e2bac6bbe5449ab16948686864d663.tar.gz |
add ability for comments in benchmark report
This allows the admin to provide some comments about the
report. For example, an executive summary
-rw-r--r-- | android_benchmark_views_app/models.py | 2 | ||||
-rw-r--r-- | android_benchmark_views_app/templates/android_benchmark_views_app/report.html | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/android_benchmark_views_app/models.py b/android_benchmark_views_app/models.py index 8fa0b71..af051a4 100644 --- a/android_benchmark_views_app/models.py +++ b/android_benchmark_views_app/models.py @@ -24,6 +24,8 @@ import android_benchmark_views_app.helpers as helpers class BenchmarkReport(models.Model): series = models.CharField(max_length=16, unique=True) + comments = models.TextField(blank=True, null=True) + def __unicode__(self): return self.series diff --git a/android_benchmark_views_app/templates/android_benchmark_views_app/report.html b/android_benchmark_views_app/templates/android_benchmark_views_app/report.html index 809611f..656e6e4 100644 --- a/android_benchmark_views_app/templates/android_benchmark_views_app/report.html +++ b/android_benchmark_views_app/templates/android_benchmark_views_app/report.html @@ -80,6 +80,12 @@ function populate_table(test, tableid) { <li><a href="{{run.id}}">{{run.label}}</a></li> {% endfor %} </ul> + {% if report.comments %} + <h3>Comments</h3> +<pre> +{{report.comments}} +</pre> + {% endif %} {% endblock %} {% block content %} |