lib/kaya/view/results/detailed_info.mote in kaya-0.0.9 vs lib/kaya/view/results/detailed_info.mote in kaya-0.0.10
- old
+ new
@@ -3,17 +3,10 @@
<div class='starter-template'>
<div class='panel panel-default'>
<div class='panel-heading' data-toggle='collapse' data-target='#{{result["_id"]}}'>
<h4><small>Execution name <b>{{result["execution_name"]}}</b> (Result id: {{result["_id"]}})</small></h4></div>
<div class='panel-body collapse in' id='{{result["_id"]}}'>
- % unless result["status"] =~ /finished|stopped/
- <div class='pull-right' title='It seems that the execution gone wrong. Click here to force execution stop'>
- <a href='/{{Kaya::Support::Configuration.hostname}}/kaya/results/{{result["_id"]}}/reset' class='label label-danger'>
- Stop execution
- </a>
- </div>
- % end
<table class="table">
<tbody>
<tr>
<th style="width:130px;">
@@ -102,9 +95,19 @@
</a>
<a onclick="window.open('/{{Kaya::Support::Configuration.hostname}}/kaya/api/results/{{result["_id"]}}', '_blank', 'toolbar=no, scrollbars=yes, resizable=yes, top=300, left=300, width=800, height=600');" class='btn btn-default'>
Raw
</a>
+
+ % unless result["status"] =~ /finished|stopped/
+ % if result["ip"]==ip
+
+ <a href='/{{Kaya::Support::Configuration.hostname}}/kaya/results/{{result["_id"]}}/reset' class='btn btn-danger'>
+ Stop execution
+ </a>
+
+ % end
+ % end
</div>
</div>
</div>
\ No newline at end of file