-
Notifications
You must be signed in to change notification settings - Fork 913
/
urls.py
76 lines (66 loc) · 3.58 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from django.conf.urls.defaults import * # noqa
from django.conf import settings
from bedrock.firefox import version_re
from bedrock.redirects.util import redirect
from bedrock.mozorg.util import page
import views
latest_re = r'^firefox(?:/(%s))?/%s/$'
firstrun_re = latest_re % (version_re, 'firstrun')
whatsnew_re = latest_re % (version_re, 'whatsnew')
urlpatterns = patterns('',
url(r'^firefox/$', views.firefox_redirect, name='firefox'),
url(r'^firefox/all/$', views.all_downloads, name='firefox.all'),
page('firefox/central', 'firefox/central.html'),
page('firefox/channel', 'firefox/channel.html'),
redirect('^firefox/channel/android/$', 'firefox.channel'),
page('firefox/customize', 'firefox/customize.html'),
page('firefox/features', 'firefox/features.html'),
page('firefox/fx', 'firefox/fx.html'),
page('firefox/geolocation', 'firefox/geolocation.html',
gmap_api_key=settings.GMAP_API_KEY),
page('firefox/happy', 'firefox/happy.html'),
url('^(?P<product>(firefox|mobile))/((?P<channel>(aurora|beta))/)?notes/$',
views.latest_notes, name='firefox.latest.notes'),
url('^firefox/system-requirements',
views.latest_sysreq, name='firefox.latest.sysreq'),
page('firefox/memory', 'firefox/memory.html'),
url('^firefox/mobile/platforms/$', views.platforms,
name='firefox.mobile.platforms'),
page('firefox/mobile/features', 'firefox/mobile/features.html'),
page('firefox/mobile/faq', 'firefox/mobile/faq.html'),
page('firefox/os/faq', 'firefox/os/faq.html'),
url('^firefox/sms/$', views.sms_send, name='firefox.sms'),
page('firefox/sms/sent', 'firefox/mobile/sms-thankyou.html'),
page('firefox/new', 'firefox/new.html'),
page('firefox/organizations/faq', 'firefox/organizations/faq.html'),
page('firefox/organizations', 'firefox/organizations/organizations.html'),
page('firefox/performance', 'firefox/performance.html'),
page('firefox/nightly/firstrun', 'firefox/nightly_firstrun.html'),
url('^firefox/releases/$', views.releases_index,
name='firefox.releases.index'),
page('firefox/security', 'firefox/security.html'),
url(r'^firefox/installer-help/$', views.installer_help,
name='firefox.installer-help'),
page('firefox/speed', 'firefox/speed.html'),
page('firefox/technology', 'firefox/technology.html'),
page('firefox/update', 'firefox/update.html'),
page('firefox/unsupported/warning', 'firefox/unsupported-warning.html'),
page('firefox/unsupported/EOL', 'firefox/unsupported-EOL.html'),
page('firefox/unsupported/mac', 'firefox/unsupported-mac.html'),
page('firefox/unsupported/details', 'firefox/unsupported-details.html'),
url(r'^firefox/unsupported/win/$', views.windows_billboards),
url('^dnt/$', views.dnt, name='firefox.dnt'),
url(firstrun_re, views.latest_fx_redirect, name='firefox.firstrun',
kwargs={'template_name': 'firefox/firstrun.html'}),
url(whatsnew_re, views.latest_fx_redirect, name='firefox.whatsnew',
kwargs={'template_name': 'firefox/whatsnew.html'}),
url(r'^firefox/partners/$', views.firefox_partners,
name='firefox.partners.index'),
# This dummy page definition makes it possible to link to /firefox/ (Bug 878068)
url('^firefox/$', views.fx_home_redirect, name='firefox'),
page('firefox/os', 'firefox/os/index.html'),
page('firefox/os/notes/1.0.1', 'firefox/os/releasenotes.html'),
)