diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-12-28 10:12:41 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-28 10:12:41 +0000 |
| commit | 74d4e7d50585db230cfe07464a1a4b662c04b409 (patch) | |
| tree | e96d01ea10f6b1cdcd8744651149fcc8416b7570 /core/views | |
| parent | aff2af5e1f23d713255ab03820656fa936230550 (diff) | |
First round of a task framework. Tasks are job definitions stored in
the database. They're started with admin/maintenance/start/[task_name]
which sends down some JS/HTML which regularly pings the task at
admin/maintenance/start/[task_id] until its done.
The UI is still very rough. It works, though!
Diffstat (limited to 'core/views')
| -rw-r--r-- | core/views/admin_maintenance.html.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/views/admin_maintenance.html.php b/core/views/admin_maintenance.html.php new file mode 100644 index 00000000..0d9f6adb --- /dev/null +++ b/core/views/admin_maintenance.html.php @@ -0,0 +1,30 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<div id="gMaintenance"> + <h1> <?= _("Maintenance Tasks") ?> </h1> + <p> + <?= _("Occasionally your Gallery will require some maintenance. Here are some tasks you can run to keep it running smoothly.") ?> + </p> + + <div id="gAvailableTasks"> + <h2> <?= _("Available Tasks") ?> </h2> + <table style="width: 400px"> + <? foreach ($available_tasks as $task) ?> + <tr> + <td> + <?= $task->description ?> + </td> + <td> + <a href="<?= url::site("admin/maintenance/start/$task->name") ?>" class="gDialogLink"> + <?= _("run") ?> + </a> + </td> + </tr> + </table> + </div> + + <div id="gRunningTasks"> + <h2> <?= _("Running Tasks") ?> </h2> + + <i> Task list goes here </i> + </div> +</div> |
