diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-06-16 20:33:44 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-06-16 20:33:44 -0700 |
commit | 452402293e79598a07c92d3e0667353854aba837 (patch) | |
tree | 65aa0f9b170f02ce1a9fb305bcd33e1961328545 | |
parent | 06ed45f0cb867057eefd5a45d04cba6b8be41411 (diff) |
Beautify "Show All" link, and only show when it's not already showing all strings
-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> |