diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-06-17 11:33:44 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-17 13:51:32 +0800 |
commit | cbeee943b11922b147592d2dfb8b0fcba1c764d2 (patch) | |
tree | edc1388292bf472937ef3c1723a90bd3eefaad4b /modules | |
parent | 022d12cb860f57e4ece95686537e5aaa8291d713 (diff) |
Beautify "Show All" link, and only show when it's not already showing all strings
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/views/l10n_client.html.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gallery/views/l10n_client.html.php b/modules/gallery/views/l10n_client.html.php index 18f39537..01537e25 100644 --- a/modules/gallery/views/l10n_client.html.php +++ b/modules/gallery/views/l10n_client.html.php @@ -2,7 +2,11 @@ <div id="l10n-client" class="hidden"> <div class="labels"> <span class="toggle"><?= t("Translate Text") ?></span> - <div class="label strings"><h2><?= t("Page Text") ?> <a href="<?= url::site("admin/languages?show_all_l10n_messages=1") ?>"><?= t("(Show All)") ?></a></h2></div> + <div class="label strings"><h2><?= t("Page Text") ?> + <? if (!Input::instance()->get('show_all_l10n_messages')): ?> + <a style="background-color:#fff" href="<?= url::site("admin/languages?show_all_l10n_messages=1") ?>"><?= t("(Show All)") ?></a> + <? endif; ?> + </h2></div> <div class="label source"><h2><?= t("Source") ?></div> <div class="label translation"><h2><?= t("Translation to %language", array("language" => locale::display_name())) ?></h2></div> |