mirror of https://github.com/zulip/zulip.git
Don't show Zulip.com terms on other sites
While we already don't link to /terms anywhere on the site, they can still be accessed if you navigate to /terms directly. Now, those routes will only be exported on the Zulip.com service. We should ideally provide a mechanism for deployments to specify their own terms without modifying source code; in the interim, sites that have already customised the provided Zulip.com terms can simply carry a patch reverting this commit.
This commit is contained in:
parent
85d2e8d249
commit
5c28b0340a
|
@ -6,4 +6,10 @@ urlpatterns = patterns('',
|
|||
url(r'^zephyr/$', TemplateView.as_view(template_name='corporate/zephyr.html')),
|
||||
url(r'^mit/$', TemplateView.as_view(template_name='corporate/mit.html')),
|
||||
url(r'^zephyr-mirror/$', TemplateView.as_view(template_name='corporate/zephyr-mirror.html')),
|
||||
|
||||
# Terms of service and privacy policy
|
||||
url(r'^terms/$', TemplateView.as_view(template_name='corporate/terms.html')),
|
||||
url(r'^terms-enterprise/$', TemplateView.as_view(template_name='corporate/terms-enterprise.html')),
|
||||
url(r'^privacy/$', TemplateView.as_view(template_name='corporate/privacy.html')),
|
||||
|
||||
)
|
||||
|
|
|
@ -65,11 +65,6 @@ urlpatterns = patterns('',
|
|||
# Portico-styled page used to provide email confirmation of terms acceptance.
|
||||
url(r'^accounts/accept_terms/$', 'zerver.views.accounts_accept_terms'),
|
||||
|
||||
# Terms of service and privacy policy
|
||||
url(r'^terms/$', TemplateView.as_view(template_name='zerver/terms.html')),
|
||||
url(r'^terms-enterprise/$', TemplateView.as_view(template_name='zerver/terms-enterprise.html')),
|
||||
url(r'^privacy/$', TemplateView.as_view(template_name='zerver/privacy.html')),
|
||||
|
||||
# Login/registration
|
||||
url(r'^register/$', 'zerver.views.accounts_home', name='register'),
|
||||
url(r'^login/$', 'zerver.views.login_page', {'template_name': 'zerver/login.html'}),
|
||||
|
|
Loading…
Reference in New Issue