Added project URL to body dataset.
This can be accessed using ProjectUtils.projectUrl(), requires Pillar 91e3ec659f68.
This commit is contained in:
@@ -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');
|
||||||
|
@@ -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 %}
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user