فهرست منبع

HUE-1394 [pig] The stop button doesn't show up in certain cases

Added stop button in the logs view
Enrico Berti 12 سال پیش
والد
کامیت
1a355b5
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      apps/pig/src/pig/templates/app.mako

+ 4 - 1
apps/pig/src/pig/templates/app.mako

@@ -352,7 +352,10 @@ ${ commonheader(None, "pig", user, "100px") | n,unicode }
       </div>
 
       <div id="logs" class="section hide">
-          <div class="alert alert-info"><h3><span data-bind="text: currentScript().name"></span></h3></div>
+          <div class="alert alert-info">
+            <a class="mainAction" href="#" title="${ _('Stop this script') }" data-bind="click: showStopModal, visible: currentScript().isRunning()"><i class="icon-stop"></i></a>
+            <h3><span data-bind="text: currentScript().name"></span></h3>
+          </div>
           <div data-bind="template: {name: 'logTemplate', foreach: currentScript().actions}"></div>
           <script id="logTemplate" type="text/html">
             <div data-bind="css:{'alert-modified': name != '', 'alert': name != '', 'alert-success': status == 'SUCCEEDED' || status == 'OK', 'alert-error': status != 'RUNNING' && status != 'SUCCEEDED' && status != 'OK' && status != 'PREP' && status != 'SUSPENDED'}">