[editor] Hide the link to Impalad if COORDINATOR_URL is set
@@ -19,6 +19,7 @@ from django.utils.translation import ugettext as _
from desktop.conf import CUSTOM, IS_K8S_ONLY
from desktop.views import commonheader, commonfooter, _ko
from desktop.webpack_utils import get_hue_bundles
+from impala.conf import COORDINATOR_URL as IMPALA_COORDINATOR_URL
from metadata.conf import PROMETHEUS
from notebook.conf import ENABLE_QUERY_SCHEDULING
@@ -1615,9 +1616,13 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
<!-- ko if: doc_url -->
<li class="nav-header">${ _('Id') }</li>
<li>
+ % if not IMPALA_COORDINATOR_URL.get():
<a data-bind="attr: { href: doc_url_modified }" target="_blank" title="${ _('Open in Impalad') }">
<span data-bind="text: id"></span>
</a>
+ % else:
+ <span data-bind="text: id"></span>
+ % endif
<!-- ko if: $root.isMini() -->
<div class="progress-job progress" style="background-color: #FFF; width: 100%; height: 4px" data-bind="css: {'progress-danger': apiStatus() === 'FAILED', 'progress-warning': apiStatus() === 'RUNNING', 'progress-success': apiStatus() === 'SUCCEEDED' }, attr: {'title': progress() + '%'}">
<div class="bar" data-bind="style: {'width': progress() + '%'}"></div>
