Commit 079f4a42 authored by joelalju's avatar joelalju Committed by Francesc Guasch
Browse files

[#404] admin_machines.html.ep added

parent 92962511
<div class="panel-body">
<div class="form-group">
<div ng-hide= "<%= $domain->is_base %>" class="row" ng-cloak>
<div class="col-lg-2">
<button ng-click="screenshot('machine','screenshot',<%= $domain->id %>, <%= $domain->is_active %>)">
<%=l "Take screenshot" %></a>
</div>
<div class="col-lg-2">
<button ng-click="copy_screenshot('machine','copy_screenshot',<%= $domain->id %>, '<%= $domain->file_screenshot %>')">
<%=l "Set base picture" %></button>
</div>
<i ng-show="reload_page_msg" ng-cloak><font color="green">Saving the screenshot, please wait a moment...</font></i>
<i ng-show="fail_page_msg" ng-cloak><font color="red">You need to run the machine in order to take a screenshot.</font></i>
<i ng-show="reload_page_copy_msg" ng-cloak><font color="green">Copying the screenshot, please wait a moment...</font></i>
<i ng-show="fail_page_copy_msg" ng-cloak><font color="red">You need a screenshot in order to copy it to the base machine.</font></i>
</div>
<div class="row">
<div class="col-lg-4">
<div class="panel panel-default">
<div class="panel-heading">
% my ($screenshot) = $domain->file_screenshot =~ m{/var/www(.*)};
<img src="<%= $screenshot %>" width="260">
</div>
</div>
</div>
</div>
</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment