Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
079f4a42
Commit
079f4a42
authored
Jan 10, 2018
by
joelalju
Committed by
Francesc Guasch
Jan 16, 2018
Browse files
[#404] admin_machines.html.ep added
parent
92962511
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/main/vm_screenshot.html.ep
0 → 100644
View file @
079f4a42
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment