Add Help link to sidebar

This commit is contained in:
2016-10-13 19:25:43 +02:00
parent a17eeaa97e
commit b6b357ca2e
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
.modal-help
.modal-help-panel
span.title Status Color Legend
| {% for status in statuses | sort %}
.status-debug-item
.status-debug-item-statuses
.light(class='status-{{ status }}')
.regular(class='status-{{ status }}') {{ status | undertitle }}
.dark(class='status-{{ status }}')
| {% endfor %}

View File

@@ -41,6 +41,17 @@ html(lang="en")
a(href="{{ url_for('attract.tasks.index') }}", a(href="{{ url_for('attract.tasks.index') }}",
title='Your tasks') T title='Your tasks') T
| {% endif %} | {% endif %}
ul.bottom
| {% if project %}
li
button.help(
type="button",
title="Help",
data-url="{{ url_for('attract.help', project_url=project.url) }}")
i.pi-question
| {% endif %}
| {% block body %} | {% block body %}
#col_left #col_left
#col_main #col_main
@@ -59,4 +70,8 @@ html(lang="en")
.modal-body .modal-body
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select2.min.js') }}", async=true) script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select2.min.js') }}", async=true)
script.
{% if project %}
$('.help').openModalUrl('Help', "{{ url_for('attract.help', project_url=project.url) }}");
{% endif %}
| {% block footer_scripts %}{% endblock %} | {% block footer_scripts %}{% endblock %}