diff options
Diffstat (limited to 'modules/gallery/views')
| -rw-r--r-- | modules/gallery/views/admin_advanced_settings.html.php | 22 | ||||
| -rw-r--r-- | modules/gallery/views/admin_block_platform.html.php | 2 | ||||
| -rw-r--r-- | modules/gallery/views/upgrader.html.php | 2 |
3 files changed, 22 insertions, 4 deletions
diff --git a/modules/gallery/views/admin_advanced_settings.html.php b/modules/gallery/views/admin_advanced_settings.html.php index 1f7d2f64..d4f646f8 100644 --- a/modules/gallery/views/admin_advanced_settings.html.php +++ b/modules/gallery/views/admin_advanced_settings.html.php @@ -9,6 +9,7 @@ <li class="g-warning"><?= t("Change these values at your own risk!") ?></li> </ul> + <?= t("Filter:") ?> <input id="g-admin-advanced-settings-filter" type="text"></input> <div class="g-block-content"> <table> <tr> @@ -17,8 +18,7 @@ <th> <?= t("Value") ?></th> </tr> <? foreach ($vars as $var): ?> - <? if ($var->module_name == "gallery" && $var->name == "_cache") continue ?> - <tr class="<?= text::alternate("g-odd", "g-even") ?>"> + <tr class="setting-row <?= text::alternate("g-odd", "g-even") ?>"> <td> <?= $var->module_name ?> </td> <td> <?= html::clean($var->name) ?> </td> <td> @@ -36,4 +36,22 @@ <? endforeach ?> </table> </div> + + <script> + $(document).ready(function() { + $("#g-admin-advanced-settings-filter").keyup(function() { + var filter = $(this).attr("value"); + if (filter) { + $("tr.setting-row").fadeOut("fast"); + $("tr.setting-row td:contains(" + filter + "), tr.setting-row td a:contains(" + filter + ")").each(function() { + if ($(this).children().length < 1) { + $(this).closest("tr").stop().show(); + } + }); + } else { + $("tr.setting-row").show(); + } + }); + }); + </script> </div> diff --git a/modules/gallery/views/admin_block_platform.html.php b/modules/gallery/views/admin_block_platform.html.php index 379ab0aa..9a594fa5 100644 --- a/modules/gallery/views/admin_block_platform.html.php +++ b/modules/gallery/views/admin_block_platform.html.php @@ -16,7 +16,7 @@ <?= t("MySQL: %mysql_version", array("mysql_version" => Database::instance()->query("SELECT version() as v")->current()->v)) ?> </li> <li> - <?= t("Server load: %load_average", array("load_average" => $load_average)) ?> + <?= t("Server load: %load_average", array("load_average" => join(" ", sys_getloadavg()))) ?> </li> <li> <?= t("Graphics toolkit: %toolkit", array("toolkit" => module::get_var("gallery", "graphics_toolkit"))) ?> diff --git a/modules/gallery/views/upgrader.html.php b/modules/gallery/views/upgrader.html.php index 1ec49c77..ad2e3421 100644 --- a/modules/gallery/views/upgrader.html.php +++ b/modules/gallery/views/upgrader.html.php @@ -17,7 +17,7 @@ <a id="dialog_close_link" style="display: none" onclick="$('#dialog').fadeOut(); return false;" href="#" class="close">[x]</a> <div id="busy" style="display: none"> <h1> - <img width="16" height="16" src="<?= url::file("lib/images/loading-small.gif") ?>"/> + <img width="16" height="16" src="<?= url::file("themes/wind/images/loading-small.gif") ?>"/> <?= t("Upgrade in progress!") ?> </h1> <p> |
