mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
parent
6ba1cd797b
commit
bbecd41376
@ -6,9 +6,11 @@
|
|||||||
|
|
||||||
<div class="app terms-page">
|
<div class="app terms-page">
|
||||||
<div class="app-main markdown">
|
<div class="app-main markdown">
|
||||||
|
{% if not_index_page %}
|
||||||
<div class="back-to-home">
|
<div class="back-to-home">
|
||||||
<a href="/help/"><div class="icon-vector-chevron-left"></div>Home</a>
|
<a href="/help/"><div class="icon-vector-chevron-left"></div>Home</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{{ article|render_markdown_path }}
|
{{ article|render_markdown_path }}
|
||||||
<div id="footer" class="documentation-footer">
|
<div id="footer" class="documentation-footer">
|
||||||
<hr />
|
<hr />
|
||||||
|
|||||||
@ -66,6 +66,8 @@ class HelpView(ApiURLView):
|
|||||||
context["article"] = path
|
context["article"] = path
|
||||||
else:
|
else:
|
||||||
context["article"] = self.get_path("missing")
|
context["article"] = self.get_path("missing")
|
||||||
|
# For disabling the "Back to home" on the homepage
|
||||||
|
context["not_index_page"] = not path.endswith("/index.md")
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def get(self, request, article=""):
|
def get(self, request, article=""):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user