summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_maintenance_show_log.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-07 21:20:37 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-07 21:20:37 -0700
commit74d4a4c0fd0d1aa2e93e62397b0b0a10d55b986d (patch)
tree70d5a48fc8bfcf0a7db0ceb94d284d6df38c92f0 /modules/gallery/views/admin_maintenance_show_log.html.php
parentfaabae5dae712ebff656abe8ebc493d8e031d4a3 (diff)
parent6ac5238b83d58824eb9327406a2ee50b7e603214 (diff)
Merge branch 'master' of git@github.com:/gallery/gallery3
Diffstat (limited to 'modules/gallery/views/admin_maintenance_show_log.html.php')
-rw-r--r--modules/gallery/views/admin_maintenance_show_log.html.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/gallery/views/admin_maintenance_show_log.html.php b/modules/gallery/views/admin_maintenance_show_log.html.php
new file mode 100644
index 00000000..9d850986
--- /dev/null
+++ b/modules/gallery/views/admin_maintenance_show_log.html.php
@@ -0,0 +1,19 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<script type="text/javascript">
+ dismiss = function() {
+ window.location.reload();
+ }
+ download = function(){
+ // send request
+ $('<form action="<?= url::site("admin/maintenance/save_log/$task->id?csrf=$csrf") ?>" method="post"></form>').
+appendTo('body').submit().remove();
+ };
+</script>
+<div id="gTaskLogDialog">
+ <h1> <?= $task->name ?> </h1>
+ <div class="gTaskLog">
+ <pre><?= p::purify($task->get_log()) ?></pre>
+ </div>
+ <button id="gCloseButton" class="ui-state-default ui-corner-all" onclick="dismiss()"><?= t("Close") ?></button>
+ <button id="gSaveButton" class="ui-state-default ui-corner-all" onclick="download()"><?= t("Save") ?></button>
+</div>