Exemplo n.º 1
0
        zerver.views.registration.create_realm, name='zerver.views.create_realm'),

    # Login/registration
    url(r'^register/$', zerver.views.registration.accounts_home, name='register'),
    url(r'^login/$', zerver.views.auth.login_page, {'template_name': 'zerver/login.html'},
        name='zerver.views.auth.login_page'),

    url(r'^join/(?P<confirmation_key>\S+)/$',
        zerver.views.registration.accounts_home_from_multiuse_invite,
        name='zerver.views.registration.accounts_home_from_multiuse_invite'),

    # API and integrations documentation
    url(r'^integrations/doc-html/(?P<integration_name>[^/]*)$',
        zerver.views.integrations.integration_doc,
        name="zerver.views.integrations.integration_doc"),
    url(r'^integrations/(.*)', IntegrationView.as_view()),
    url(r'^team/$', zerver.views.users.team_view),
    url(r'^history/$', TemplateView.as_view(template_name='zerver/history.html')),
    url(r'^apps/(.*)', zerver.views.home.apps_view, name='zerver.views.home.apps_view'),
    url(r'^plans/$', TemplateView.as_view(template_name='zerver/plans.html'), name='plans'),

    # Landing page, features pages, signup form, etc.
    url(r'^hello/$', TemplateView.as_view(template_name='zerver/hello.html'), name='landing-page'),
    url(r'^new-user/$', RedirectView.as_view(url='/hello', permanent=True)),
    url(r'^features/$', TemplateView.as_view(template_name='zerver/features.html')),
    url(r'^why-zulip/$', TemplateView.as_view(template_name='zerver/why-zulip.html')),
    url(r'^for/open-source/$', TemplateView.as_view(template_name='zerver/for-open-source.html')),
    url(r'^for/companies/$', TemplateView.as_view(template_name='zerver/for-companies.html')),
    url(r'^for/working-groups-and-communities/$',
        TemplateView.as_view(template_name='zerver/for-working-groups-and-communities.html')),
    url(r'^for/mystery-hunt/$', TemplateView.as_view(template_name='zerver/for-mystery-hunt.html')),
Exemplo n.º 2
0
        zerver.views.registration.create_realm, name='zerver.views.create_realm'),

    # Login/registration
    url(r'^register/$', zerver.views.registration.accounts_home, name='register'),
    url(r'^login/$', zerver.views.auth.login_page, {'template_name': 'zerver/login.html'},
        name='zerver.views.auth.login_page'),

    url(r'^join/(?P<confirmation_key>\S+)/$',
        zerver.views.registration.accounts_home_from_multiuse_invite,
        name='zerver.views.registration.accounts_home_from_multiuse_invite'),

    # API and integrations documentation
    url(r'^integrations/doc-html/(?P<integration_name>[^/]*)$',
        zerver.views.integrations.integration_doc,
        name="zerver.views.integrations.integration_doc"),
    url(r'^integrations/(.*)', IntegrationView.as_view()),
    url(r'^team/$', zerver.views.users.team_view),
    url(r'^history/$', TemplateView.as_view(template_name='zerver/history.html')),
    url(r'^apps/(.*)', zerver.views.home.apps_view, name='zerver.views.home.apps_view'),
    url(r'^plans/$', TemplateView.as_view(template_name='zerver/plans.html'), name='plans'),

    # Landing page, features pages, signup form, etc.
    url(r'^hello/$', TemplateView.as_view(template_name='zerver/hello.html'), name='landing-page'),
    url(r'^new-user/$', RedirectView.as_view(url='/hello', permanent=True)),
    url(r'^features/$', TemplateView.as_view(template_name='zerver/features.html')),
    url(r'^why-zulip/$', TemplateView.as_view(template_name='zerver/why-zulip.html')),
    url(r'^for/open-source/$', TemplateView.as_view(template_name='zerver/for-open-source.html')),
    url(r'^for/companies/$', TemplateView.as_view(template_name='zerver/for-companies.html')),
    url(r'^for/working-groups-and-communities/$',
        TemplateView.as_view(template_name='zerver/for-working-groups-and-communities.html')),
    url(r'^for/mystery-hunt/$', TemplateView.as_view(template_name='zerver/for-mystery-hunt.html')),
Exemplo n.º 3
0
    # including the welcome emails (day 1 & 2), missed PMs, etc.
    url(r"^accounts/unsubscribe/(?P<type>[\w]+)/(?P<token>[\w]+)", "zerver.views.unsubscribe.email_unsubscribe"),
    # Portico-styled page used to provide email confirmation of terms acceptance.
    url(r"^accounts/accept_terms/$", "zerver.views.accounts_accept_terms"),
    # Realm Creation
    url(r"^create_realm/$", "zerver.views.create_realm"),
    url(r"^create_realm/(?P<creation_key>[\w]+)$", "zerver.views.create_realm"),
    # Login/registration
    url(r"^register/$", "zerver.views.accounts_home", name="register"),
    url(r"^login/$", "zerver.views.auth.login_page", {"template_name": "zerver/login.html"}),
    # A registration page that passes through the domain, for totally open realms.
    url(r"^register/(?P<domain>\S+)/$", "zerver.views.accounts_home_with_domain"),
    # API and integrations documentation
    url(r"^api/$", APIView.as_view(template_name="zerver/api.html")),
    url(r"^api/endpoints/$", "zerver.views.integrations.api_endpoint_docs"),
    url(r"^integrations/$", IntegrationView.as_view()),
    url(r"^about/$", TemplateView.as_view(template_name="zerver/about.html")),
    url(r"^apps/$", TemplateView.as_view(template_name="zerver/apps.html")),
    url(r"^robots\.txt$", RedirectView.as_view(url="/static/robots.txt")),
    # Landing page, features pages, signup form, etc.
    url(r"^hello/$", TemplateView.as_view(template_name="zerver/hello.html"), name="landing-page"),
    url(r"^new-user/$", RedirectView.as_view(url="/hello")),
    url(r"^features/$", TemplateView.as_view(template_name="zerver/features.html")),
]

# If a Terms of Service is supplied, add that route
if settings.TERMS_OF_SERVICE is not None:
    i18n_urls += [url(r"^terms/$", TemplateView.as_view(template_name="zerver/terms.html"))]

# Make a copy of i18n_urls so that they appear without prefix for english
urls = list(i18n_urls)