Skip to content

Commit

Permalink
feat: use new script Expandable.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTheHood committed Dec 30, 2023
1 parent 1e2de91 commit 1a40cc9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/Templates/Footer.tmpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<script src="src/Templates/Scripts/bootstrap.bundle.min.js"></script>
<script src="src/Templates/Scripts/lightbox.js"></script>
<script src="src/Templates/Scripts/ModuleActionButtons.js"></script>
<script src="src/Templates/Scripts/Expandable.js"></script>

<script>
function filterModule(searchString)
Expand Down
28 changes: 15 additions & 13 deletions src/Templates/ModuleInfo.tmpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,20 +291,22 @@
<tr>
<td>Alle Versionen</td>
<td>
<?php foreach ($module->getVersions() as $moduleVersion) {?>
<?php $moduleVersionView = new ModuleViewModel($moduleVersion) ?>
<a href="?action=moduleInfo&archiveName=<?= $moduleVersion->getArchiveName() ?>&version=<?= $moduleVersion->getVersion()?>">
<?= $moduleVersionView->getVersionAndGitBranch(); ?>
</a>
<?php if ($moduleVersion->isInstalled()) { ?>
<span>installiert</span>
<?php } elseif ($moduleVersion->isLoaded()) { ?>
<span>geladen</span>
<?php } else { ?>
<span>nicht geladen</span>
<div class="expandable">
<?php foreach ($module->getVersions() as $moduleVersion) {?>
<?php $moduleVersionView = new ModuleViewModel($moduleVersion) ?>
<a href="?action=moduleInfo&archiveName=<?= $moduleVersion->getArchiveName() ?>&version=<?= $moduleVersion->getVersion()?>">
<?= $moduleVersionView->getVersionAndGitBranch(); ?>
</a>
<?php if ($moduleVersion->isInstalled()) { ?>
<span>installiert</span>
<?php } elseif ($moduleVersion->isLoaded()) { ?>
<span>geladen</span>
<?php } else { ?>
<span>nicht geladen</span>
<?php } ?>
<br>
<?php } ?>
<br>
<?php } ?>
</div>
</td>
</tr>

Expand Down

0 comments on commit 1a40cc9

Please sign in to comment.