1
0
Fork 0

add DM tour

- rearrange script includes on feed pages
- add DM tour to close
This commit is contained in:
Hugh Rundle 2022-07-09 19:27:42 +10:00
parent 791847d75e
commit 2f2ab5c24a
5 changed files with 101 additions and 10 deletions

View file

@ -13,7 +13,7 @@
{% if partner %}<p class="subtitle"><a href="{% url 'direct-messages' %}"><span class="icon icon-arrow-left" aria-hidden="true"></span> {% trans "All messages" %}</a></p>{% endif %}
</header>
<div class="box">
<div class="box" id="tour-dm-box">
{% include 'snippets/create_status/status.html' with type="direct" uuid=1 mention=partner no_script=True %}
</div>
@ -30,3 +30,11 @@
</section>
{% endblock %}
{% block scripts %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/direct_messages.html' %}
{% endif %}
{% endblock %}

View file

@ -1,5 +1,6 @@
{% extends 'feed/layout.html' %}
{% load i18n %}
{% load static %}
{% block panel %}
@ -73,3 +74,12 @@
{% endfor %}
{% endblock %}
{% block scripts %}
<script src="{% static "js/tabs.js" %}?v={{ js_cache }}"></script>
{% if request.user.show_guided_tour %}
{% include 'guided_tour/home.html' %}
{% endif %}
{% endblock %}

View file

@ -1,6 +1,5 @@
{% extends 'layout.html' %}
{% load i18n %}
{% load static %}
{% block title %}{% trans "Updates" %}{% endblock %}
@ -30,11 +29,4 @@
</div>
{% endblock %}
{% block scripts %}
<script src="{% static "js/tabs.js" %}?v={{ js_cache }}"></script>
{% if request.user.show_guided_tour %}
{% include 'guided_tour/home.html' %}
{% endif %}
{% endblock %}