forked from enviPath/enviPy
fix: remove jobs clash
This commit is contained in:
@ -199,7 +199,7 @@ urlpatterns = [
|
|||||||
re_path(r"^cookie-policy$", v.static_cookie_policy, name="cookie_policy"),
|
re_path(r"^cookie-policy$", v.static_cookie_policy, name="cookie_policy"),
|
||||||
re_path(r"^about$", v.static_about_us, name="about_us"),
|
re_path(r"^about$", v.static_about_us, name="about_us"),
|
||||||
re_path(r"^contact$", v.static_contact_support, name="contact_support"),
|
re_path(r"^contact$", v.static_contact_support, name="contact_support"),
|
||||||
re_path(r"^jobs$", v.static_jobs, name="jobs"),
|
re_path(r"^careers$", v.static_careers, name="careers"),
|
||||||
re_path(r"^cite$", v.static_cite, name="cite"),
|
re_path(r"^cite$", v.static_cite, name="cite"),
|
||||||
re_path(r"^legal$", v.static_legal, name="legal"),
|
re_path(r"^legal$", v.static_legal, name="legal"),
|
||||||
]
|
]
|
||||||
|
|||||||
@ -2828,46 +2828,54 @@ def userinfo(request):
|
|||||||
def static_terms_of_use(request):
|
def static_terms_of_use(request):
|
||||||
context = get_base_context(request)
|
context = get_base_context(request)
|
||||||
context["title"] = "enviPath - Terms of Use"
|
context["title"] = "enviPath - Terms of Use"
|
||||||
|
context["public_mode"] = True
|
||||||
return render(request, "static/terms_of_use.html", context)
|
return render(request, "static/terms_of_use.html", context)
|
||||||
|
|
||||||
|
|
||||||
def static_privacy_policy(request):
|
def static_privacy_policy(request):
|
||||||
context = get_base_context(request)
|
context = get_base_context(request)
|
||||||
context["title"] = "enviPath - Privacy Policy"
|
context["title"] = "enviPath - Privacy Policy"
|
||||||
|
context["public_mode"] = True
|
||||||
return render(request, "static/privacy_policy.html", context)
|
return render(request, "static/privacy_policy.html", context)
|
||||||
|
|
||||||
|
|
||||||
def static_cookie_policy(request):
|
def static_cookie_policy(request):
|
||||||
context = get_base_context(request)
|
context = get_base_context(request)
|
||||||
context["title"] = "enviPath - Cookie Policy"
|
context["title"] = "enviPath - Cookie Policy"
|
||||||
|
context["public_mode"] = True
|
||||||
return render(request, "static/cookie_policy.html", context)
|
return render(request, "static/cookie_policy.html", context)
|
||||||
|
|
||||||
|
|
||||||
def static_about_us(request):
|
def static_about_us(request):
|
||||||
context = get_base_context(request)
|
context = get_base_context(request)
|
||||||
context["title"] = "enviPath - About Us"
|
context["title"] = "enviPath - About Us"
|
||||||
|
context["public_mode"] = True
|
||||||
return render(request, "static/about_us.html", context)
|
return render(request, "static/about_us.html", context)
|
||||||
|
|
||||||
|
|
||||||
def static_contact_support(request):
|
def static_contact_support(request):
|
||||||
context = get_base_context(request)
|
context = get_base_context(request)
|
||||||
context["title"] = "enviPath - Contact & Support"
|
context["title"] = "enviPath - Contact & Support"
|
||||||
|
context["public_mode"] = True
|
||||||
return render(request, "static/contact.html", context)
|
return render(request, "static/contact.html", context)
|
||||||
|
|
||||||
|
|
||||||
def static_jobs(request):
|
def static_careers(request):
|
||||||
context = get_base_context(request)
|
context = get_base_context(request)
|
||||||
context["title"] = "enviPath - Jobs & Careers"
|
context["title"] = "enviPath - Careers"
|
||||||
return render(request, "static/jobs.html", context)
|
context["public_mode"] = True
|
||||||
|
return render(request, "static/careers.html", context)
|
||||||
|
|
||||||
|
|
||||||
def static_cite(request):
|
def static_cite(request):
|
||||||
context = get_base_context(request)
|
context = get_base_context(request)
|
||||||
context["title"] = "enviPath - How to Cite"
|
context["title"] = "enviPath - How to Cite"
|
||||||
|
context["public_mode"] = True
|
||||||
return render(request, "static/cite.html", context)
|
return render(request, "static/cite.html", context)
|
||||||
|
|
||||||
|
|
||||||
def static_legal(request):
|
def static_legal(request):
|
||||||
context = get_base_context(request)
|
context = get_base_context(request)
|
||||||
context["title"] = "enviPath - Legal Information"
|
context["title"] = "enviPath - Legal Information"
|
||||||
|
context["public_mode"] = True
|
||||||
return render(request, "static/legal.html", context)
|
return render(request, "static/legal.html", context)
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
<div class="lg:max-w-5xl mt-10 mx-auto bg-base-300 text-base-content">
|
<div class="lg:max-w-5xl mt-10 mx-auto bg-base-300 text-base-content">
|
||||||
|
|
||||||
<footer class="footer sm:footer-horizontal p-10">
|
<footer class="footer sm:footer-horizontal p-10">
|
||||||
|
{% if not public_mode %}
|
||||||
<nav>
|
<nav>
|
||||||
<h6 class="footer-title">Services</h6>
|
<h6 class="footer-title">Services</h6>
|
||||||
<a class="link link-hover" href="/">Predict</a>
|
<a class="link link-hover" href="/">Predict</a>
|
||||||
@ -12,11 +13,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="https://wiki.envipath.org/" target="_blank" class="link link-hover">Documentation</a>
|
<a href="https://wiki.envipath.org/" target="_blank" class="link link-hover">Documentation</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
{% endif %}
|
||||||
<nav>
|
<nav>
|
||||||
<h6 class="footer-title">Company</h6>
|
<h6 class="footer-title">Company</h6>
|
||||||
<a class="link link-hover" href="/about">About us</a>
|
<a class="link link-hover" href="/about">About us</a>
|
||||||
<a class="link link-hover" href="/contact">Contact us</a>
|
<a class="link link-hover" href="/contact">Contact us</a>
|
||||||
<a class="link link-hover" href="/jobs">Jobs</a>
|
<a class="link link-hover" href="/careers">Careers</a>
|
||||||
<a class="link link-hover" href="/legal">Legal</a>
|
<a class="link link-hover" href="/legal">Legal</a>
|
||||||
</nav>
|
</nav>
|
||||||
<nav>
|
<nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user