mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
manual: Move PDF download link to HTML manual page
- Remove "Download Manual" card - Create link to download manual in the header of the HTML manual Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> [sunil@medhas.org Remove hard-coded URL for manual download] [sunil@medhas.org Fix CSS indentation] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
7dbdb8037a
commit
7ec0ee3163
@ -52,11 +52,6 @@ class HelpApp(app_module.App):
|
|||||||
None, 'fa-info-circle', 'help:manual',
|
None, 'fa-info-circle', 'help:manual',
|
||||||
parent_url_name='help:index', order=10)
|
parent_url_name='help:index', order=10)
|
||||||
self.add(menu_item)
|
self.add(menu_item)
|
||||||
menu_item = menu.Menu('menu-help-download-manual',
|
|
||||||
ugettext_lazy('Download Manual'), None,
|
|
||||||
'fa-download', 'help:download-manual',
|
|
||||||
parent_url_name='help:index', order=15)
|
|
||||||
self.add(menu_item)
|
|
||||||
menu_item = menu.Menu('menu-help-support',
|
menu_item = menu.Menu('menu-help-support',
|
||||||
ugettext_lazy('Get Support'), None,
|
ugettext_lazy('Get Support'), None,
|
||||||
'fa-life-ring', 'help:support',
|
'fa-life-ring', 'help:support',
|
||||||
|
|||||||
@ -94,7 +94,3 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_js %}
|
|
||||||
<script type="text/javascript" src="{% static 'help/help.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
|
|||||||
@ -19,15 +19,28 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
dd {
|
dd {
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
.pdf {
|
||||||
|
float: right;
|
||||||
|
font-size: 4rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<a href="{% url 'help:download-manual' %}"
|
||||||
|
title="{% trans 'Download as PDF' %}">
|
||||||
|
<span class="fa fa-file-pdf-o pdf"></span>
|
||||||
|
</a>
|
||||||
{{ content|safe }}
|
{{ content|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block page_js %}
|
||||||
|
<script type="text/javascript" src="{% static 'help/help.js' %}"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user