Highlight links in Polygerrit if a cycle got detected We've now reached feature parity with the old GWT version of the plugin. Change-Id: Ibe0ff98a515135724cc36cfbe79775724459ad7c
diff --git a/gr-zuul/gr-zuul_html.js b/gr-zuul/gr-zuul_html.js index a5328e2..6827042 100644 --- a/gr-zuul/gr-zuul_html.js +++ b/gr-zuul/gr-zuul_html.js
@@ -51,6 +51,15 @@ flex-shrink: 0; width: 1.2em; } + .status { + color: var(--deemphasized-text-color); + font-weight: var(--font-weight-bold); + margin-left: var(--spacing-xs); + } + /* The above styles are copy/paste from gr-related-changes-list_html.js */ + .dependencyCycleDetected { + color: #d17171; + } </style> <template is="dom-if" if="[[_crd_loaded]]"> <template is="dom-if" if="[[_crd.depends_on.length]]"> @@ -64,6 +73,11 @@ > [[item]] </a> + <template is="dom-if" if="[[_crd.cycle]]"> + <span class="status dependencyCycleDetected"> + (Dependency cycle detected) + </span> + </template> </div> </template> </section> @@ -79,6 +93,11 @@ > [[item]] </a> + <template is="dom-if" if="[[_crd.cycle]]"> + <span class="status dependencyCycleDetected"> + (Dependency cycle detected) + </span> + </template> </div> </template> </section>