Skip to content

Commit

Permalink
fixed markup to be scrollable [Closes #6]
Browse files Browse the repository at this point in the history
  • Loading branch information
milo committed Nov 12, 2018
1 parent aecc908 commit 021f1d3
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions src/templates/Panel.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,32 @@ use Tracy\Helpers;
}
</style>

<div class="milo-VendorVersionsPanel">
<h1><?= $esc($panelTitle) ?></h1>
<div class="tracy-inner">
<?php if ($error): ?>
<span style="color:red"><?= $esc($error) ?></span>
<?php else: ?>
<?php foreach ($data as $title => $packages): ?>
<h2><?= $esc($title) ?></h2>
<table>
<thead>
<h1><?= $esc($panelTitle) ?></h1>
<div class="tracy-inner milo-VendorVersionsPanel">
<?php if ($error): ?>
<span style="color:red"><?= $esc($error) ?></span>
<?php else: ?>
<?php foreach ($data as $title => $packages): ?>
<h2><?= $esc($title) ?></h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Installed</th>
<th>Required</th>
</tr>
</thead>
<tbody>
<?php foreach ($packages as $name => $p): ?>
<tr>
<th>Name</th>
<th>Installed</th>
<th>Required</th>
<td><?= $p->url ? ("<a href='" . $esc($p->url) . "' target='_blank' rel='noreferrer'>" . $esc($name) . "</a>") : $esc($name) ?></td>
<td class="version"><?= $esc($p->installed) ?></td>
<td><?= $esc($p->required) ?></td>
</tr>
</thead>
<tbody>
<?php foreach ($packages as $name => $p): ?>
<tr>
<td><?= $p->url ? ("<a href='" . $esc($p->url) . "' target='_blank' rel='noreferrer'>" . $esc($name) . "</a>") : $esc($name) ?></td>
<td class="version"><?= $esc($p->installed) ?></td>
<td><?= $esc($p->required) ?></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
<?php endforeach ?>
<p><small>Source: <?= Helpers::editorLink($jsonFile) . $esc(' & ') . Helpers::editorLink($lockFile) ?></small></p>
<?php endif ?>
</div>
<?php endforeach ?>
</tbody>
</table>
<?php endforeach ?>
<p><small>Source: <?= Helpers::editorLink($jsonFile) . $esc(' & ') . Helpers::editorLink($lockFile) ?></small></p>
<?php endif ?>
</div>

0 comments on commit 021f1d3

Please sign in to comment.