diff --git a/apps/mozorg/helpers.py b/apps/mozorg/helpers.py
index 32e29eb027..441360294a 100644
--- a/apps/mozorg/helpers.py
+++ b/apps/mozorg/helpers.py
@@ -10,6 +10,7 @@ of terms and example values for them:
"""
from os import path
+import re
import jinja2
import jingo
@@ -211,3 +212,23 @@ def field_with_attrs(bfield, **kwargs):
fields from django forms"""
bfield.field.widget.attrs.update(kwargs)
return bfield
+
+@jingo.register.function
+def platform_img(url, **kwargs):
+ attrs = ' '.join(('%s="%s"' % (attr, val)
+ for attr, val in kwargs.items()))
+ url = path.join(settings.MEDIA_URL, url.lstrip('/'))
+ (root, ext) = path.splitext(url)
+
+ def url(plat):
+ return '%s%s%s' % (root,
+ {'win': '',
+ 'osx': '-mac',
+ 'linux': '-linux'}[plat],
+ ext)
+
+ imgs = (''
+ % (plat, url(plat), attrs)
+ for plat in ('win', 'osx', 'linux'))
+
+ return jinja2.Markup(''.join(imgs))
diff --git a/apps/mozorg/templates/mozorg/firefox/customize.html b/apps/mozorg/templates/mozorg/firefox/customize.html
index 30299590ce..72ff0ed79f 100644
--- a/apps/mozorg/templates/mozorg/firefox/customize.html
+++ b/apps/mozorg/templates/mozorg/firefox/customize.html
@@ -122,8 +122,7 @@
Plugins are small bits of third-party software built by companies like Adobe Systems or Apple to power videos, animation and games (examples include Flash Player or Quicktime). They can cause browser crashes or pose security risks when they get out of date, so we’ve built an easy tool to help you stay current. Check your plugins.
-
-
+ {{ platform_img('img/firefox/customize/make-it-work.png', alt='Make It Work: Plugins') }}