templates: Move case-studies and /for pages to corporate folder.

Since these pages don't belong in a self-hosted server.
This commit is contained in:
Aman Agrawal 2022-07-26 04:12:33 +00:00 committed by Tim Abbott
parent 21a2fd482e
commit afd31b739d
25 changed files with 45 additions and 25 deletions

View File

@ -72,38 +72,58 @@ landing_page_urls = [
path("self-hosting/", landing_view, {"template_name": "zerver/self-hosting.html"}), path("self-hosting/", landing_view, {"template_name": "zerver/self-hosting.html"}),
path("security/", landing_view, {"template_name": "zerver/security.html"}), path("security/", landing_view, {"template_name": "zerver/security.html"}),
# /for pages # /for pages
path("use-cases/", landing_view, {"template_name": "zerver/use-cases.html"}), path("use-cases/", landing_view, {"template_name": "corporate/for/use-cases.html"}),
path("for/education/", landing_view, {"template_name": "zerver/for-education.html"}),
path("for/events/", landing_view, {"template_name": "zerver/for-events.html"}),
path("for/open-source/", landing_view, {"template_name": "zerver/for-open-source.html"}),
path("for/research/", landing_view, {"template_name": "zerver/for-research.html"}),
path("for/business/", landing_view, {"template_name": "zerver/for-business.html"}),
path("for/companies/", RedirectView.as_view(url="/for/business/", permanent=True)),
path( path(
"for/communities/", "for/communities/",
landing_view, landing_view,
{"template_name": "zerver/for-communities.html"}, {"template_name": "corporate/for/communities.html"},
), ),
# We merged this into /for/communities. # We merged this into /for/communities.
path( path(
"for/working-groups-and-communities/", "for/working-groups-and-communities/",
RedirectView.as_view(url="/for/communities/", permanent=True), RedirectView.as_view(url="/for/communities/", permanent=True),
), ),
path("for/education/", landing_view, {"template_name": "corporate/for/education.html"}),
path("for/events/", landing_view, {"template_name": "corporate/for/events.html"}),
path("for/open-source/", landing_view, {"template_name": "corporate/for/open-source.html"}),
path("for/research/", landing_view, {"template_name": "corporate/for/research.html"}),
path("for/business/", landing_view, {"template_name": "corporate/for/business.html"}),
path("for/companies/", RedirectView.as_view(url="/for/business/", permanent=True)),
# case-studies # case-studies
path("case-studies/idrift/", landing_view, {"template_name": "zerver/idrift-case-study.html"}), path(
path("case-studies/tum/", landing_view, {"template_name": "zerver/tum-case-study.html"}), "case-studies/idrift/",
path("case-studies/ucsd/", landing_view, {"template_name": "zerver/ucsd-case-study.html"}), landing_view,
path("case-studies/rust/", landing_view, {"template_name": "zerver/rust-case-study.html"}), {"template_name": "corporate/case-studies/idrift-case-study.html"},
path("case-studies/lean/", landing_view, {"template_name": "zerver/lean-case-study.html"}), ),
path(
"case-studies/tum/",
landing_view,
{"template_name": "corporate/case-studies/tum-case-study.html"},
),
path(
"case-studies/ucsd/",
landing_view,
{"template_name": "corporate/case-studies/ucsd-case-study.html"},
),
path(
"case-studies/rust/",
landing_view,
{"template_name": "corporate/case-studies/rust-case-study.html"},
),
path(
"case-studies/lean/",
landing_view,
{"template_name": "corporate/case-studies/lean-case-study.html"},
),
path( path(
"case-studies/asciidoctor/", "case-studies/asciidoctor/",
landing_view, landing_view,
{"template_name": "zerver/asciidoctor-case-study.html"}, {"template_name": "corporate/case-studies/asciidoctor-case-study.html"},
), ),
path( path(
"case-studies/recurse-center/", "case-studies/recurse-center/",
landing_view, landing_view,
{"template_name": "zerver/recurse-center-case-study.html"}, {"template_name": "corporate/case-studies/recurse-center-case-study.html"},
), ),
] ]
i18n_urlpatterns += landing_page_urls i18n_urlpatterns += landing_page_urls

View File

@ -27,7 +27,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/asciidoctor-case-study.md') }} {{ render_markdown_path('corporate/case-studies/asciidoctor-case-study.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -27,7 +27,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/idrift-case-study.md') }} {{ render_markdown_path('corporate/case-studies/idrift-case-study.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -27,7 +27,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/lean-case-study.md') }} {{ render_markdown_path('corporate/case-studies/lean-case-study.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -27,7 +27,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/recurse-center-case-study.md') }} {{ render_markdown_path('corporate/case-studies/recurse-center-case-study.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -27,7 +27,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/rust-case-study.md') }} {{ render_markdown_path('corporate/case-studies/rust-case-study.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -26,7 +26,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/tum-case-study.md') }} {{ render_markdown_path('corporate/case-studies/tum-case-study.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -26,7 +26,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/ucsd-case-study.md') }} {{ render_markdown_path('corporate/case-studies/ucsd-case-study.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -42,7 +42,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/communities.md') }} {{ render_markdown_path('corporate/for/communities.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -34,7 +34,7 @@
<div class="main"> <div class="main">
<div class="padded-content"> <div class="padded-content">
<div class="inner-content markdown"> <div class="inner-content markdown">
{{ render_markdown_path('zerver/for/use-cases.md') }} {{ render_markdown_path('corporate/for/use-cases.md') }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -551,7 +551,7 @@ html_rules: List["Rule"] = [
"exclude": { "exclude": {
"templates/zerver/email.html", "templates/zerver/email.html",
"zerver/tests/fixtures/email", "zerver/tests/fixtures/email",
"templates/zerver/for-business.html", "templates/corporate/for/business.html",
"templates/corporate/support_request.html", "templates/corporate/support_request.html",
"templates/corporate/support_request_thanks.html", "templates/corporate/support_request_thanks.html",
"templates/zerver/emails/support_request.html", "templates/zerver/emails/support_request.html",