Added project URL to body dataset.

This can be accessed using ProjectUtils.projectUrl(), requires Pillar
91e3ec659f68.
This commit is contained in:
2016-09-23 10:13:12 +02:00
parent 72a25434ea
commit 78111968ab
3 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@
*/ */
function task_open(task_id, project_url) { function task_open(task_id, project_url) {
if (task_id === undefined || project_url === undefined) { if (task_id === undefined || project_url === undefined) {
throw new ReferenceError("task_open(" + task_id + ", " + project_url + ") called."); throw new ReferenceError("task_open(" + task_id + ") called.");
} }
$('#col_right .col_header span.header_text').text('Task details'); $('#col_right .col_header span.header_text').text('Task details');
@@ -62,7 +62,7 @@ function task_open(task_id, project_url) {
*/ */
function shot_open(shot_id, project_url) { function shot_open(shot_id, project_url) {
if (shot_id === undefined || project_url === undefined) { if (shot_id === undefined || project_url === undefined) {
throw new ReferenceError("shot_open(" + shot_id + ", " + project_url + ") called."); throw new ReferenceError("shot_open(" + shot_id + ") called.");
} }
$('#col_right .col_header span.header_text').text('Shot details'); $('#col_right .col_header span.header_text').text('Shot details');

View File

@@ -17,7 +17,7 @@ html(lang="en")
| {% block style %}{% endblock %} | {% block style %}{% endblock %}
body body("{% block bodyattrs %}{% endblock %}")
#app-main #app-main
#col_sidebar #col_sidebar
nav.sidebar(role="navigation") nav.sidebar(role="navigation")
@@ -41,4 +41,3 @@ html(lang="en")
script(src="{{ url_for('static_attract', filename='js/tasks.js') }}", async=true) script(src="{{ url_for('static_attract', filename='js/tasks.js') }}", async=true)
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)
| {% block footer_scripts %}{% endblock %} | {% block footer_scripts %}{% endblock %}

View File

@@ -1,5 +1,6 @@
| {% extends 'attract/layout.html' %} | {% extends 'attract/layout.html' %}
| {% block page_title %}Shots - {{ project.name }}{% endblock %} | {% block page_title %}Shots - {{ project.name }}{% endblock %}
| {% block bodyattrs %}data-project-url="{{ project.url }}"{% endblock %}
| {% block body %} | {% block body %}
#col_main #col_main
.col_header.task-list-header .col_header.task-list-header