1
0
Fork 0

add help button if page has tour

- include logic in main layout to add button if there is a page tour available
- add button for main user feed page
This commit is contained in:
Hugh Rundle 2022-06-12 19:41:50 +10:00
parent f81095cb64
commit 806e2778df
2 changed files with 7 additions and 0 deletions

View file

@ -85,6 +85,10 @@
<a href="{% url 'discover' %}" class="navbar-item mt-3 py-0">
{% trans "Discover" %}
</a>
{% if has_tour %}
<button id="tour_button" class="button is-inverted is-outlined navbar-item mt-5" onclick="startTour('home')"> {% trans "Help" %}
</button>
{% endif %}
{% endif %}
</div>
@ -219,6 +223,8 @@
<script src="{% static "js/localstorage.js" %}?v={{ js_cache }}"></script>
<script src="{% static "js/status_cache.js" %}?v={{ js_cache }}"></script>
<script src="{% static "js/vendor/quagga.min.js" %}?v={{ js_cache }}"></script>
<script src="{% static "js/vendor/shepherd.min.js" %}?v={{ js_cache }}"></script>
<script src="{% static "js/tour.js" %}?v={{ js_cache }}"></script>
{% block scripts %}{% endblock %}