Skip to content

Commit

Permalink
Merge pull request #3 from AbuseIO/master
Browse files Browse the repository at this point in the history
Fix intotext on admin ticket view with a toggle button
  • Loading branch information
marknl committed Mar 20, 2015
2 parents bb4968e + 1023315 commit e12841f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions www/admin/ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,18 @@
?>

<?php
$infotext = "../ash/infotext/".$infolang.str_replace(" ", "_", $report['Class']).".html";
$infotext = "../ash/infotext/".$infolang."/".str_replace(" ", "_", $report['Class']).".html";
if (file_exists($infotext)) {
echo '<div style="padding: 1em 0 2em;">';
include($infotext);
echo '</div>';
}
?>
<p style="margin: 2em 0;"><a class="btn btn-default" data-toggle="collapse" href="#infotext" aria-expanded="false" aria-controls="infotext">Toggle class infotext</a></p>
<div class="collapse" id="infotext">
<div class="well"><?php include($infotext); ?></div>
</div>
<?php } else { ?>
No template found
<?php } ?>

<?php
$evidences = evidenceList($_GET['id']);

if (!empty($evidences)) {
Expand Down

0 comments on commit e12841f

Please sign in to comment.