diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-24 00:45:16 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-24 00:45:16 (GMT) |
commit | 58dbd06642a9470645fb2bd3d154682400cbb7ed (patch) | |
tree | 53d9e67cc6fc4267f8dfdb291994e0e4493ed266 | |
parent | 4c9af4f38c3826fc8a59c6e7558ae0f63b0beae4 (diff) |
Do not be so strong for anon users
-rw-r--r-- | site/app/views/helpers/install_button.php | 2 | ||||
-rw-r--r-- | site/app/webroot/js/amo2009/addons.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/site/app/views/helpers/install_button.php b/site/app/views/helpers/install_button.php index 0c2655e..7c27738 100644 --- a/site/app/views/helpers/install_button.php +++ b/site/app/views/helpers/install_button.php @@ -338,7 +338,7 @@ class InstallButtonHelper extends Helper { $flags = ''; if (in_array('recommended', $this->flags())) { $flags = '<strong>'.___('recommended').'</strong>'; - } else if (in_array('experimental', $this->flags()) && $this->loggedIn()) { + } else if (in_array('experimental', $this->flags())) { $flags = '<strong>'.___('experimental').'</strong>'; } return $flags; diff --git a/site/app/webroot/js/amo2009/addons.js b/site/app/webroot/js/amo2009/addons.js index 3a3f04e..69d3255 100644 --- a/site/app/webroot/js/amo2009/addons.js +++ b/site/app/webroot/js/amo2009/addons.js @@ -231,6 +231,9 @@ function initDownloadPopup(triggerID, popupID) * @param bool showVersionLink offer a link to the user which will remove the compatibility hint (and allow them to download the add-on) */ function addCompatibilityHints(addonID, versionID, fromVer, toVer, showVersionLink) { + // we are sugar, do not be so strong for anon users + showVersionLink = true; + var uapattern_olpc = /OLPC\/0\.([^-]*)-/; var uamatch_olpc = uapattern_olpc.exec(navigator.userAgent); if (uamatch_olpc) { |