Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:/gallery/gallery3
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Aug 31, 2009
2 parents 74a124b + 80ae2fe commit 12e0030
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
20 changes: 9 additions & 11 deletions modules/gallery/views/admin_maintenance.html.php
Expand Up @@ -22,7 +22,7 @@
<? $i = 0; ?>
<? foreach ($task_definitions as $task): ?>
<tr class="<?= log::severity_class($task->severity) ?> <?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?>">
<td>
<td class="<?= log::severity_class($task->severity) ?>">
<?= $task->name ?>
</td>
<td>
Expand All @@ -42,10 +42,6 @@ class="gDialogLink gButtonLink ui-icon-left ui-state-default ui-corner-all">

<? if ($running_tasks->count()): ?>
<div id="gRunningTasks">
<a href="<?= url::site("admin/maintenance/cancel_running_tasks?csrf=$csrf") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
<?= t("cancel all") ?></a>

<h2> <?= t("Running Tasks") ?> </h2>
<table>
<tr>
Expand All @@ -66,12 +62,15 @@ class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
</th>
<th>
<?= t("Action") ?>
<a href="<?= url::site("admin/maintenance/cancel_running_tasks?csrf=$csrf") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
<?= t("cancel all") ?></a>
</th>
</tr>
<? $i = 0; ?>
<? foreach ($running_tasks as $task): ?>
<tr class="<?= $task->state == "stalled" ? "gWarning" : "" ?> <?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?>">
<td>
<td class="<?= $task->state == "stalled" ? "gWarning" : "" ?>">
<?= gallery::date_time($task->updated) ?>
</td>
<td>
Expand Down Expand Up @@ -116,10 +115,6 @@ class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">

<? if ($finished_tasks->count()): ?>
<div id="gFinishedTasks">
<a href="<?= url::site("admin/maintenance/remove_finished_tasks?csrf=$csrf") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
<span class="ui-icon ui-icon-trash"></span><?= t("remove all finished") ?></a>

<h2> <?= t("Finished Tasks") ?> </h2>
<table>
<tr>
Expand All @@ -140,12 +135,15 @@ class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
</th>
<th>
<?= t("Action") ?>
<a href="<?= url::site("admin/maintenance/remove_finished_tasks?csrf=$csrf") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
<span class="ui-icon ui-icon-trash"></span><?= t("remove all finished") ?></a>
</th>
</tr>
<? $i = 0; ?>
<? foreach ($finished_tasks as $task): ?>
<tr class="<?= $task->state == "success" ? "gSuccess" : "gError" ?> <?= ($i % 2 == 0) ? "gOddRow" : "gEvenRow" ?>">
<td>
<td class="<?= $task->state == "success" ? "gSuccess" : "gError" ?>">
<?= gallery::date_time($task->updated) ?>
</td>
<td>
Expand Down
7 changes: 1 addition & 6 deletions themes/admin_default/css/screen.css
Expand Up @@ -312,7 +312,6 @@ li.gError select {

.gError {
background-color: #f6cbca;
color: red;
background-image: url('../images/ico-error.png');
}

Expand Down Expand Up @@ -346,11 +345,7 @@ table .gSuccess {
background-color: transparent !important;
}

.gPager .gInfo,
table .gError,
table .gInfo,
table .gSuccess,
table .gWarning {
.gPager .gInfo {
background-image: none !important;
}

Expand Down
1 change: 0 additions & 1 deletion themes/default/css/screen.css
Expand Up @@ -308,7 +308,6 @@ li.gError select {

.gError {
background-color: #f6cbca;
color: #f00;
background-image: url('../images/ico-error.png');
}

Expand Down

0 comments on commit 12e0030

Please sign in to comment.