31 lines
1.5 KiB
PHP
31 lines
1.5 KiB
PHP
<?php if (!defined('PICONTROL')) exit(); ?>
|
|
<div>
|
|
<div class="box">
|
|
<div class="inner-header">
|
|
<span><?php _e('Logdateien'); ?></span>
|
|
</div>
|
|
<?php if (!$data['sshAvailable']) { ?>
|
|
<div class="inner">
|
|
<strong class="red"><?php _e('Einige Dateien können aufgrund mangelnder Berechtigung nicht geöffnet werden. Melde dich per SSH an, um diese ebenfalls zu öffnen. <a href="%s">Jetzt anmelden.</a>', '?s=ssh_login'); ?></strong>
|
|
</div>
|
|
<?php } ?>
|
|
<div class="inner-table">
|
|
<table class="table table-borderless">
|
|
<tr>
|
|
<th style="width: 60%;"><?php _e('Dateiname'); ?></th>
|
|
<th style="width: 15%;"><?php _e('Letzte Änderung'); ?></th>
|
|
<th style="width: 15%;"><?php _e('Dateigröße'); ?></th>
|
|
<th style="width: 10%;"></th>
|
|
</tr>
|
|
<?php foreach ($data['logs'] as $log) { ?>
|
|
<tr>
|
|
<td><?php echo $log->getRelativePath().$log->getName(); if ($log->getCount(true) > 0) echo ' ('.$log->getCount(true).' '._t('Weitere verfügbar').')'; ?></td>
|
|
<td><?php echo formatTime($log->getMain()->getModified()); ?></td>
|
|
<td><?php echo sizeUnit($log->getMain()->getFilesize()); ?></td>
|
|
<td class="table-right"><a <?php if ($log->getMain()->getReadable() === true) echo 'href="?s=logs&view='.urlencode($log->getMain()->getRelativePath()).'"'; ?> class="button button-small<?php if ($log->getMain()->getReadable() === false) echo ' button-disabled'; ?>"><?php _e('Anzeigen'); ?></a></td>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|