Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey 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)
commit58dbd06642a9470645fb2bd3d154682400cbb7ed (patch)
tree53d9e67cc6fc4267f8dfdb291994e0e4493ed266
parent4c9af4f38c3826fc8a59c6e7558ae0f63b0beae4 (diff)
Do not be so strong for anon users
-rw-r--r--site/app/views/helpers/install_button.php2
-rw-r--r--site/app/webroot/js/amo2009/addons.js3
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) {