Commit 8b33482c authored by robertperez-upc's avatar robertperez-upc Committed by Francesc Guasch
Browse files

#1511: improve the description that is displayed when hovering the mouse over the machine (#1633)

parent 11ae4aa9
......@@ -26,17 +26,17 @@
<i ng-show="!machine.is_public"><i class="far fa-eye-slash fa-xs" title="<%=l 'not public' %>"></i></i>
</h3>
<div class="container">
<a ng-show="machine.screenshot" ng-click="action(machine, 'start')"><img
<a ng-show="machine.screenshot" ng-click="action(machine, 'start')"><img
ng-src="data:image/png;base64,{{machine.screenshot}}" alt="{{machine.name}}" class="img-thumbnail" width="260"
></a>
<a ng-show="!machine.screenshot" ng-click="action(machine, 'start')"><img
<a ng-show="!machine.screenshot" ng-click="action(machine, 'start')"><img
src="/img/default_screenshot.png" class="screenshot-default img-thumbnail"
alt="{{machine.name}}" width="260"
></a>
<div ng-show="machine.description || (!machine.description && is_admin)" class="overlay">
<div ng-show="machine.description" class="text" ng-bind-html="machine.description"></div>
<div ng-show="!machine.description" class="text"><a style="background-color: white; pointer-events: auto;" href="/machine/manage/{{machine.id}}.html#v-pills-description"><%=l 'Add description' %></a></div>
</div>
<div ng-show="machine.description || (!machine.description && is_admin)" class="overlay">
<div ng-show="machine.description" class="text" ng-bind-html="machine.description" style="width: 260px; max-height: 175px; overflow: auto; pointer-events: all" ng-click="action(machine, 'start')"></div>
<div ng-show="!machine.description" class="text"><a style="background-color: white; pointer-events: auto;" href="/machine/manage/{{machine.id}}.html#v-pills-description"><%=l 'Add description' %></a></div>
</div>
</div>
</div>
<div class="card-body" id="step2">
......
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