|
|
|
@@ -1,121 +1,67 @@
|
|
|
|
|
doctype html
|
|
|
|
|
html(lang="en")
|
|
|
|
|
head
|
|
|
|
|
meta(charset="utf-8")
|
|
|
|
|
title {% if self.page_title() %}{% block page_title %}{% endblock %} — {% endif %}Attract
|
|
|
|
|
meta(name="viewport", content="width=device-width, initial-scale=1.0")
|
|
|
|
|
| {% extends 'projects/view.html' %}
|
|
|
|
|
include ../../../../pillar/src/templates/mixins/components
|
|
|
|
|
|
|
|
|
|
| {% block head %}{% endblock %}
|
|
|
|
|
| {% set title = 'production-tools' %}
|
|
|
|
|
|
|
|
|
|
link(href='//fonts.googleapis.com/css?family=Roboto:300,400', rel='stylesheet', type='text/css')
|
|
|
|
|
| {% block css %}
|
|
|
|
|
| {{ super() }}
|
|
|
|
|
link(href="{{ url_for('static_attract', filename='assets/css/main.css') }}", rel="stylesheet")
|
|
|
|
|
link(href="{{ url_for('static_attract', filename='assets/css/plugins/js_select2.css') }}", rel="stylesheet")
|
|
|
|
|
link(href="{{ url_for('static_attract', filename='assets/img/favicon.png') }}", rel="shortcut icon")
|
|
|
|
|
link(href="{{ url_for('static_attract', filename='assets/img/apple-touch-icon-precomposed.png') }}", rel="icon apple-touch-icon-precomposed", sizes="192x192")
|
|
|
|
|
| {% endblock css %}
|
|
|
|
|
|
|
|
|
|
link(href="{{ url_for('static_pillar', filename='assets/css/font-pillar.css') }}", rel="stylesheet")
|
|
|
|
|
link(href="{{ url_for('static_attract', filename='assets/css/main.css') }}", rel="stylesheet")
|
|
|
|
|
link(href="{{ url_for('static_attract', filename='assets/css/plugins/js_select2.css') }}", rel="stylesheet")
|
|
|
|
|
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery-3.1.0.min.js')}}")
|
|
|
|
|
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.bootstrap-3.3.7.min.js') }}")
|
|
|
|
|
script(src="{{ url_for('static_pillar', filename='assets/js/tutti.min.js') }}")
|
|
|
|
|
script.
|
|
|
|
|
pillar.utils.initCurrentUser({{ current_user | json | safe }});
|
|
|
|
|
script(src="{{ url_for('static_attract', filename='assets/js/generated/tutti.min.js') }}")
|
|
|
|
|
| {% block head %}
|
|
|
|
|
script(src="{{ url_for('static_attract', filename='assets/js/generated/tutti.min.js') }}")
|
|
|
|
|
| {% endblock head %}
|
|
|
|
|
|
|
|
|
|
link(href="{{ url_for('static_attract', filename='assets/img/favicon.png') }}", rel="shortcut icon")
|
|
|
|
|
link(href="{{ url_for('static_attract', filename='assets/img/apple-touch-icon-precomposed.png') }}", rel="icon apple-touch-icon-precomposed", sizes="192x192")
|
|
|
|
|
| {% block body %}
|
|
|
|
|
#app-main
|
|
|
|
|
#col_sidebar
|
|
|
|
|
nav.sidebar(role='navigation')
|
|
|
|
|
ul
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.attract(href="{{ url_for('attract.index') }}",
|
|
|
|
|
title='Attract')
|
|
|
|
|
i.pi-attract
|
|
|
|
|
| {% if session.get('attract_last_project') %}
|
|
|
|
|
| {% set attract_last_project = session.get('attract_last_project') %}
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.tasks(href="{{ url_for('attract.tasks.perproject.index', project_url=attract_last_project.url) }}",
|
|
|
|
|
title='Tasks for project {{ attract_last_project.name }}') Tasks
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.shots(href="{{ url_for('attract.shots.perproject.index', project_url=attract_last_project.url) }}",
|
|
|
|
|
title='Shots for project {{ attract_last_project.name }}') Shots
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.assets(href="{{ url_for('attract.assets.perproject.index', project_url=attract_last_project.url) }}",
|
|
|
|
|
title='Assets for project {{ attract_last_project.name }}') Assets
|
|
|
|
|
| {% else %}
|
|
|
|
|
| {% if current_user.is_authenticated %}
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.tasks(href="{{ url_for('attract.tasks.index') }}",
|
|
|
|
|
title='Your tasks') Tasks
|
|
|
|
|
| {% endif %}
|
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
|
|
| {% block style %}{% endblock %}
|
|
|
|
|
ul.bottom
|
|
|
|
|
| {% if project %}
|
|
|
|
|
li
|
|
|
|
|
button.js-help(
|
|
|
|
|
type="button",
|
|
|
|
|
title="Help",
|
|
|
|
|
data-url="{{ url_for('attract.help', project_url=project.url) }}")
|
|
|
|
|
i.pi-question
|
|
|
|
|
| {% endif %}
|
|
|
|
|
| {% block attractbody %}
|
|
|
|
|
| {% endblock attractbody %}
|
|
|
|
|
| {% endblock body %}
|
|
|
|
|
|
|
|
|
|
body("{% block bodyattrs %}{% if project %}data-project-url='{{ project.url }}'{% endif %}{% endblock %}")
|
|
|
|
|
#app-main
|
|
|
|
|
#col_sidebar
|
|
|
|
|
nav.sidebar(role='navigation')
|
|
|
|
|
a.navbar-brand(
|
|
|
|
|
href="{{ url_for('main.homepage') }}",
|
|
|
|
|
title="Blender Cloud")
|
|
|
|
|
span.app-logo
|
|
|
|
|
i.pi-blender-cloud
|
|
|
|
|
ul
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.attract(href="{{ url_for('attract.index') }}",
|
|
|
|
|
title='Attract')
|
|
|
|
|
i.pi-attract
|
|
|
|
|
| {% if session.get('attract_last_project') %}
|
|
|
|
|
| {% set attract_last_project = session.get('attract_last_project') %}
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.tasks(href="{{ url_for('attract.tasks.perproject.index', project_url=attract_last_project.url) }}",
|
|
|
|
|
title='Tasks for project {{ attract_last_project.name }}') Tasks
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.shots(href="{{ url_for('attract.shots.perproject.index', project_url=attract_last_project.url) }}",
|
|
|
|
|
title='Shots for project {{ attract_last_project.name }}') Shots
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.assets(href="{{ url_for('attract.assets.perproject.index', project_url=attract_last_project.url) }}",
|
|
|
|
|
title='Assets for project {{ attract_last_project.name }}') Assets
|
|
|
|
|
| {% else %}
|
|
|
|
|
| {% if current_user.is_authenticated %}
|
|
|
|
|
li
|
|
|
|
|
a.navbar-item.tasks(href="{{ url_for('attract.tasks.index') }}",
|
|
|
|
|
title='Your tasks') Tasks
|
|
|
|
|
| {% endif %}
|
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
|
|
ul.bottom
|
|
|
|
|
| {% if project %}
|
|
|
|
|
li
|
|
|
|
|
button.js-help(
|
|
|
|
|
type="button",
|
|
|
|
|
title="Help",
|
|
|
|
|
data-url="{{ url_for('attract.help', project_url=project.url) }}")
|
|
|
|
|
i.pi-question
|
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
|
|
| {% include 'menus/notifications.html' %}
|
|
|
|
|
| {% include 'menus/user.html' %}
|
|
|
|
|
|
|
|
|
|
| {% block body %}
|
|
|
|
|
#col_left
|
|
|
|
|
#col_main
|
|
|
|
|
h1 Main
|
|
|
|
|
#col_right
|
|
|
|
|
h1 Right
|
|
|
|
|
| {% endblock %}
|
|
|
|
|
|
|
|
|
|
.modal#modal(role="dialog", tabindex="-1")
|
|
|
|
|
.modal-dialog(role="document")
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
span.modal-title.title
|
|
|
|
|
button.close(type="button", data-dismiss="modal", aria-label="Close")
|
|
|
|
|
i.pi-cancel
|
|
|
|
|
.modal-body
|
|
|
|
|
|
|
|
|
|
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select2.min.js') }}", async=true)
|
|
|
|
|
script(src="{{ url_for('static_attract', filename='assets/js/vendor/moment-2.15.2.min.js') }}")
|
|
|
|
|
script(src="{{ url_for('static_attract', filename='assets/js/vendor/pikaday.js') }}")
|
|
|
|
|
| {% if current_user.is_authenticated %}
|
|
|
|
|
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.typewatch-3.0.0.min.js') }}")
|
|
|
|
|
script.
|
|
|
|
|
// When sending an AJAX request, always add the X-CSRFToken header to it.
|
|
|
|
|
var csrf_token = "{{ csrf_token() }}";
|
|
|
|
|
$.ajaxSetup({
|
|
|
|
|
beforeSend: function (xhr, settings) {
|
|
|
|
|
if (!/^(GET|HEAD|OPTIONS|TRACE)$/i.test(settings.type) && !this.crossDomain) {
|
|
|
|
|
xhr.setRequestHeader("X-CSRFToken", csrf_token);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
|
|
script.
|
|
|
|
|
{% if project %}
|
|
|
|
|
$('.js-help').openModalUrl('Help', "{{ url_for('attract.help', project_url=project.url) }}");
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
|
getNotificationsLoop(); // Check for new notifications in the background
|
|
|
|
|
|
|
|
|
|
// Resize #notifications and change overflow for scrollbars
|
|
|
|
|
$(window).on("resize", function() { notificationsResize(); });
|
|
|
|
|
{% endif %}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
| {% block footer_scripts %}{% endblock %}
|
|
|
|
|
| {% block footer_scripts_pre %}
|
|
|
|
|
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select2.min.js') }}", async=true)
|
|
|
|
|
script(src="{{ url_for('static_attract', filename='assets/js/vendor/moment-2.15.2.min.js') }}")
|
|
|
|
|
script(src="{{ url_for('static_attract', filename='assets/js/vendor/pikaday.js') }}")
|
|
|
|
|
| {% if project %}
|
|
|
|
|
script.
|
|
|
|
|
ProjectUtils.setProjectAttributes({projectId: "{{project._id}}", projectUrl: "{{project.url}}"});
|
|
|
|
|
| {% endif %}
|
|
|
|
|
| {% endblock footer_scripts_pre %}
|
|
|
|
|