diff options
-rw-r--r-- | lnt/server/ui/templates/local.html | 4 | ||||
-rw-r--r-- | lnt/server/ui/templates/v4_run.html | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lnt/server/ui/templates/local.html b/lnt/server/ui/templates/local.html index 421d30a..b679868 100644 --- a/lnt/server/ui/templates/local.html +++ b/lnt/server/ui/templates/local.html @@ -7,6 +7,10 @@ <a href="{{v4_url_for('.v4_order', id=order.id)}}">{{ prefix }}{{order.llvm_project_revision}}</a> {%- endmacro %} +{% macro render_compare_to_run(run, url) -%} +<a href="{{url}}"><span class="utctime">{{ run.start_time.isoformat() }}</span></a> +{%- endmacro %} + {# Some example settings from llvm.org. #} {# <!---On llvm.org we use SVN, so put an r in front. Ex. r1234 --> diff --git a/lnt/server/ui/templates/v4_run.html b/lnt/server/ui/templates/v4_run.html index 6ef5ccf..6a00f0d 100644 --- a/lnt/server/ui/templates/v4_run.html +++ b/lnt/server/ui/templates/v4_run.html @@ -1,4 +1,5 @@ {% import "utils.html" as utils %} +{% import "local.html" as local %} {% set hash_field = ts.Sample.get_hash_of_binary_field() %} {% set machine = run.machine %} @@ -114,7 +115,7 @@ $('.profile-prev-only').tooltip(); {% for r in neighboring_runs %} <li> {{ "<b>"|safe if r.id == run.id else "" }} - <a href="{{v4_url_for('.v4_run', id=r.id)}}"><span class="utctime">{{ r.start_time.isoformat() }}</span></a> + {{ local.render_compare_to_run(r, v4_url_for('.v4_run', id=r.id)) }} {{ "</b>"|safe if r.id == run.id else "" }} </li> {% endfor %} @@ -126,7 +127,7 @@ $('.profile-prev-only').tooltip(); {% for r in comparison_neighboring_runs %} <li> {{ "<b>"|safe if compare_to and r.id == compare_to.id else "" }} - <a href="{{v4_url_for('.v4_run', id=run.id, compare_to=r.id)}}"><span class="utctime">{{ r.start_time.isoformat() }}</span></a> + {{ local.render_compare_to_run(r, v4_url_for('.v4_run', id=run.id, compare_to=r.id)) }} {{ "</b>"|safe if compare_to and r.id == compare_to.id else "" }} </li> {% endfor %} |