0.5.1: embed the web console in an iframe with credentials shown
This commit is contained in:
1 parent
b2a12eb72a
commit
53332d9a07
3 files changed
+23
-2
No files matched your search
@@ -190,6 +190,27 @@ vmm_nav('dashboard');
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($con !== null): ?>
|
||||
<?php $conUrl = 'http://' . $con['host'] . ':' . (int)$con['port'] . '/'; ?>
|
||||
<table class="area_data_settings" style="width:100%;border-collapse:collapse;">
|
||||
<colgroup><col class="area_data_settings_col_tag"><col class="area_data_settings_col_data"></colgroup>
|
||||
<thead><?php html_separator2(); html_titleline2(gettext('Web console'), 2); ?></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" class="celldata">
|
||||
<div style="margin-bottom:6px;opacity:.8;font-size:12px;">
|
||||
<?=gettext('If the frame asks for a login: user');?>
|
||||
<strong><?=vmm_h((string)$con['user']);?></strong>,
|
||||
<?=gettext('password');?> <strong><?=vmm_h((string)$con['pass']);?></strong>
|
||||
· <a href="<?=vmm_h($conUrl);?>" target="_blank"><?=gettext('open in a tab');?></a>
|
||||
</div>
|
||||
<iframe src="<?=vmm_h($conUrl);?>" style="width:100%;height:440px;border:1px solid rgba(127,127,127,.4);border-radius:4px;background:#000;"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in new issue
Block a user