diff --git a/src/templates.rs b/src/templates.rs index 85901e13..8a95236c 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -166,6 +166,12 @@ impl QueueTemplate { if !title.is_empty() { Some(title) } else { None } } + + fn has_significant_perf(&self, pr: &PullRequestModel) -> bool { + // This is a special note added by rustc-perf when it performs a try benchmark on a PR + // and the result is significant + pr.note() == Some("rustc-perf") + } } #[derive(Template)] diff --git a/web/templates/queue.html b/web/templates/queue.html index 13478cfb..493c7492 100644 --- a/web/templates/queue.html +++ b/web/templates/queue.html @@ -210,6 +210,16 @@ position: relative; z-index: 1; } + + .rollup-mode { + display: inline-flex; + flex-direction: row; + align-items: center; + } + .rustc-perf { + display: flex; + margin-left: 5px; + } {% endblock %} @@ -294,7 +304,7 @@

{{ pr.number.0 }} - {%- if pr.note().is_some() %}*{% endif %} + {%- if pr.note().is_some() && !has_significant_perf(pr) %}*{% endif %} {%- endmatch -%} {%- endif -%} "> +
{%- if let Some(rollup) = pr.rollup -%} {%- match rollup -%} {%- when Always -%} @@ -378,6 +389,22 @@

never {%- endmatch -%} {%- endif -%} + {% if has_significant_perf(pr) %} + +
+ + + + +
+ {% endif %} +

{%- endif -%}