Skip to content

Commit

Permalink
Fix bug 1428150: Remove old tabzilla
Browse files Browse the repository at this point in the history
As well as the old infobar code.
  • Loading branch information
pmac authored and alexgibson committed Feb 23, 2018
1 parent 4d1a313 commit a3705ba
Show file tree
Hide file tree
Showing 40 changed files with 18 additions and 2,177 deletions.
3 changes: 0 additions & 3 deletions bedrock/base/templates/includes/tabzilla-console-footer.html

This file was deleted.

Empty file removed bedrock/infobar/__init__.py
Empty file.
14 changes: 0 additions & 14 deletions bedrock/infobar/templates/infobar/infobar.jsonp

This file was deleted.

28 changes: 0 additions & 28 deletions bedrock/infobar/tests.py

This file was deleted.

12 changes: 0 additions & 12 deletions bedrock/infobar/urls.py

This file was deleted.

43 changes: 0 additions & 43 deletions bedrock/infobar/views.py

This file was deleted.

10 changes: 9 additions & 1 deletion bedrock/mozorg/redirects.py
@@ -1,4 +1,4 @@
from bedrock.redirects.util import redirect, ua_redirector
from bedrock.redirects.util import gone, redirect, ua_redirector


def to_uppercase(url):
Expand Down Expand Up @@ -663,4 +663,12 @@ def decider(request, **kwargs):
# Bug 1438464
redirect(r'^collusion/?$', 'https://addons.mozilla.org/firefox/addon/lightbeam/'),
redirect(r'^lightbeam(/.*)?', 'https://addons.mozilla.org/firefox/addon/lightbeam/'),

# Bug 1428150
gone(r'^tabzilla/transbar\.jsonp$'),
gone(r'^tabzilla/tabzilla\.js$'),
gone(r'^tabzilla/media/js/tabzilla\.js$'),
redirect(r'tabzilla/media/css/tabzilla\.css$',
'https://mozorg.cdn.mozilla.net/media/css/tabzilla-min.css',
locale_prefix=False),
)
2 changes: 1 addition & 1 deletion bedrock/privacy/templates/privacy/notices/facebook.html
Expand Up @@ -14,7 +14,7 @@

{% block site_header %}
<header id="masthead">
<a href="{{ url('mozorg.home') }}" id="tabzilla" data-infobar="{{ settings.TABZILLA_INFOBAR_OPTIONS }}">{{ _('Mozilla') }}</a>
<a href="{{ url('mozorg.home') }}" id="tabzilla">{{ _('Mozilla') }}</a>
{% block site_header_nav %}{% endblock %}
</header>
{% endblock %}
Expand Down
9 changes: 1 addition & 8 deletions bedrock/settings/base.py
Expand Up @@ -294,11 +294,9 @@ def lazy_langs():
r'^firefox/feedback',
r'^firefox/stub_attribution_code/',
r'^.+/(firstrun|whatsnew)/$',
r'^infobar/',
r'^l10n_example/',
r'^m/',
r'^newsletter/(confirm|existing|hacks\.mozilla\.org|recovery|updated)/',
r'^tabzilla/',
r'/system-requirements/$',
r'.*/(firstrun|thanks)/$',
r'^healthz/$',
Expand Down Expand Up @@ -431,7 +429,7 @@ def set_whitenoise_headers(headers, path, url):
'bedrock.base.middleware.BasicAuthMiddleware',
# must come before LocaleURLMiddleware
'bedrock.redirects.middleware.RedirectsMiddleware',
'bedrock.tabzilla.middleware.TabzillaLocaleURLMiddleware',
'bedrock.base.middleware.LocaleURLMiddleware',
'commonware.middleware.RobotsTagHeader',
'bedrock.mozorg.middleware.ClacksOverheadMiddleware',
'bedrock.mozorg.middleware.HostnameMiddleware',
Expand Down Expand Up @@ -474,14 +472,12 @@ def set_whitenoise_headers(headers, path, url):
'bedrock.firefox',
'bedrock.foundation',
'bedrock.grants',
'bedrock.infobar',
'bedrock.legal',
'bedrock.mozorg',
'bedrock.newsletter',
'bedrock.press',
'bedrock.privacy',
'bedrock.styleguide',
'bedrock.tabzilla',
'bedrock.teach',
'bedrock.externalfiles',
'bedrock.security',
Expand Down Expand Up @@ -1193,9 +1189,6 @@ def lazy_email_backend():
'pt-BR': 'https://twitter.com/firefoxbrasil',
}

# Tabzilla Information Bar default options
TABZILLA_INFOBAR_OPTIONS = 'update translation'

# Optimize.ly project code
OPTIMIZELY_PROJECT_ID = config('OPTIMIZELY_PROJECT_ID', default='')

Expand Down
7 changes: 0 additions & 7 deletions bedrock/settings/static_media.py
Expand Up @@ -720,13 +720,6 @@
),
'output_filename': 'css/styleguide-docs-send-to-device-bundle.css',
},
# no longer used on bedrock. possibly referenced on external sites? should investigate.
'tabzilla': {
'source_filenames': (
'css/tabzilla/tabzilla.less',
),
'output_filename': 'css/tabzilla-min.css',
},
'technology': {
'source_filenames': (
'css/base/mozilla-modal.less',
Expand Down
3 changes: 0 additions & 3 deletions bedrock/tabzilla/__init__.py

This file was deleted.

27 changes: 0 additions & 27 deletions bedrock/tabzilla/middleware.py

This file was deleted.

3 changes: 0 additions & 3 deletions bedrock/tabzilla/models.py

This file was deleted.

0 comments on commit a3705ba

Please sign in to comment.