summaryrefslogtreecommitdiff
path: root/app/Template/project_overview/attachments.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/project_overview/attachments.php')
-rw-r--r--app/Template/project_overview/attachments.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Template/project_overview/attachments.php b/app/Template/project_overview/attachments.php
index b8baadd0..745b0a70 100644
--- a/app/Template/project_overview/attachments.php
+++ b/app/Template/project_overview/attachments.php
@@ -1,7 +1,5 @@
-<section class="accordion-section <?= empty($files) && empty($images) ? 'accordion-collapsed' : '' ?>">
- <div class="accordion-title">
- <h3><a href="#" class="fa accordion-toggle"></a> <?= t('Attachments') ?></h3>
- </div>
+<details class="accordion-section" <?= empty($files) && empty($images) ? '' : 'open' ?>>
+ <summary class="accordion-title"><?= t('Attachments') ?></summary>
<div class="accordion-content">
<?php if ($this->user->hasProjectAccess('ProjectFileController', 'create', $project['id'])): ?>
<div class="buttons-header">
@@ -12,4 +10,4 @@
<?= $this->render('project_overview/images', array('project' => $project, 'images' => $images)) ?>
<?= $this->render('project_overview/files', array('project' => $project, 'files' => $files)) ?>
</div>
-</section>
+</details>