sohami commented on a change in pull request #1611: DRILL-6971: Display query 
state in query result page
URL: https://github.com/apache/drill/pull/1611#discussion_r248102321
 
 

 ##########
 File path: exec/java-exec/src/main/resources/rest/query/result.ftl
 ##########
 @@ -33,11 +33,21 @@
   <table><tr>
     <td align='left'>
       <button type="button"  title="Open in new window" 
onclick="popOutProfile('${model.getQueryId()}');" class="btn btn-default 
btn-sm">
-      <b>Query Profile:</b> ${model.getQueryId()} <span class="glyphicon 
glyphicon-new-window"/></button>
+      <b>Query Profile:</b> ${model.getQueryId()} <#switch 
model.getQueryState()>
+        <#case "COMPLETED">
+          <span class="label label-success">
+          <#break>
+        <#case "CANCELED">
+          <span class="label label-warning">
+          <#break>
 
 Review comment:
   LGTM

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to