summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_maintenance.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/views/admin_maintenance.html.php')
-rw-r--r--modules/gallery/views/admin_maintenance.html.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/modules/gallery/views/admin_maintenance.html.php b/modules/gallery/views/admin_maintenance.html.php
index 15d04caa..444bf1fe 100644
--- a/modules/gallery/views/admin_maintenance.html.php
+++ b/modules/gallery/views/admin_maintenance.html.php
@@ -29,23 +29,21 @@
<?= $task->description ?>
</td>
<td>
- <a href="<?= url::site("admin/maintenance/start/$task->callback?csrf=$csrf") ?>"
+ <? foreach ($task_buttons as $button): ?>
+ <a href="<?= "{$button->url}/$task->callback?csrf=$csrf" ?>"
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
- <?= t("run") ?>
+ <?= html::clean($button->text) ?>
</a>
- <? if (module::is_active("scheduler")): ?>
- <a href="<?= url::site("form/add/admin/schedule/$task->callback?csrf=$csrf") ?>"
- class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
- <?= t("schedule") ?>
- </a>
- <? endif ?>
+ <? endforeach ?>
</td>
</tr>
<? endforeach ?>
</table>
</div>
- <?= $schedule_definitions ?>
+ <? foreach ($task_maintenance_content as $content): ?>
+ <?= $content ?>
+ <? endforeach ?>
<? if ($running_tasks->count()): ?>
<div id="g-running-tasks">