2016-08-19 09:19:06 +02:00
|
|
|
| {% block head %}
|
|
|
|
| {% if header_video_file %}
|
|
|
|
script(src="//releases.flowplayer.org/6.0.5/flowplayer.min.js")
|
|
|
|
script.
|
|
|
|
$(function() {
|
|
|
|
$('#flowplayer_container').flowplayer({
|
|
|
|
key: "{{config.FLOWPLAYER_KEY}}",
|
|
|
|
embed: false,
|
|
|
|
splash: true,
|
|
|
|
clip: { sources: [
|
|
|
|
{% for var in header_video_file.variations %}
|
|
|
|
{type: "{{ var.content_type }}", src: "{{ var.link|safe }}"},
|
|
|
|
{% endfor %}
|
|
|
|
]}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
| {% endif %}
|
|
|
|
| {% endblock %}
|
|
|
|
|
|
|
|
| {% block body %}
|
|
|
|
|
|
|
|
#node-container
|
|
|
|
section.node-preview.project
|
2016-11-11 15:37:41 +01:00
|
|
|
| {% if header_video_file %}
|
2016-08-19 09:19:06 +02:00
|
|
|
#flowplayer_container.is-splash.play-button(
|
|
|
|
style="{% if header_video_node.picture %}background-image:url({{header_video_node.picture.thumbnail('l', api=api)}}); background-repeat:no-repeat; {% endif %}")
|
|
|
|
.fp-startscreen.fp-toggle
|
|
|
|
a.big-play-button
|
|
|
|
i.pi-play
|
|
|
|
.fp-endscreen
|
|
|
|
a.watch-again.fp-toggle
|
|
|
|
i.pi-replay
|
|
|
|
| Watch again
|
|
|
|
.fp-waiting
|
|
|
|
i.pi-spin.spin
|
|
|
|
| {% elif project.picture_header %}
|
|
|
|
a(href="{{ url_for( 'projects.about', project_url=project.url) }}")
|
|
|
|
img.header(src="{{ project.picture_header.thumbnail('l', api=api) }}")
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
section.node-details-container.project
|
|
|
|
|
|
|
|
| {# Hide for now
|
|
|
|
.node-details-header
|
|
|
|
.node-title-details
|
|
|
|
.date(title="Last updated {{ project._updated | pretty_date }}") {{ project._created | pretty_date }}
|
|
|
|
|
|
|
|
| {% if project.status %}
|
|
|
|
.status {{project.status}}
|
|
|
|
| {% endif %}
|
|
|
|
| #}
|
|
|
|
|
|
|
|
.node-details-title
|
|
|
|
h1
|
|
|
|
a(href="{{ url_for( 'projects.about', project_url=project.url) }}") {{ project.name }}
|
|
|
|
|
|
|
|
| {% if title != 'about' or not project.description %}
|
|
|
|
| {% set description = project.summary %}
|
|
|
|
| {% else %}
|
|
|
|
| {% set description = project.description %}
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
.node-details-description
|
|
|
|
| {{ description }}
|
|
|
|
|
|
|
|
| {% if title != 'about' %}
|
|
|
|
.node-extra
|
|
|
|
a.learn-more(href="{{ url_for( 'projects.about', project_url=project.url) }}") LEARN MORE
|
|
|
|
|
|
|
|
.node-extra
|
|
|
|
|
2016-11-24 18:16:15 +01:00
|
|
|
| {% if activity_stream %}
|
2016-08-19 09:19:06 +02:00
|
|
|
.node-updates
|
|
|
|
ul.node-updates-list
|
2016-11-24 18:16:15 +01:00
|
|
|
| {% for n in activity_stream %}
|
2016-08-19 09:19:06 +02:00
|
|
|
| {% if n.node_type not in ['comment'] %}
|
|
|
|
li.node-updates-list-item(data-node_id="{{ n._id }}")
|
|
|
|
a.image(href="{{ url_for_node(node=n) }}")
|
|
|
|
| {% if n.picture %}
|
2016-11-24 18:16:15 +01:00
|
|
|
img(src="{{ n.picture.thumbnail('l', api=api) }}")
|
2016-08-19 09:19:06 +02:00
|
|
|
| {% else %}
|
|
|
|
| {% if n.properties.content_type == 'video' %}
|
|
|
|
i.pi-film-thick
|
|
|
|
| {% elif n.properties.content_type == 'image' %}
|
|
|
|
i.pi-picture
|
|
|
|
| {% elif n.properties.content_type == 'file' %}
|
|
|
|
i.pi-file-archive
|
2016-10-07 15:06:29 +02:00
|
|
|
| {% elif n.node_type == 'texture' or n.node_type == 'group_texture' %}
|
|
|
|
i.pi-texture
|
2016-08-19 09:19:06 +02:00
|
|
|
| {% else %}
|
|
|
|
i.pi-folder
|
|
|
|
| {% endif %}
|
|
|
|
| {% endif %}
|
|
|
|
.info
|
|
|
|
a.title(href="{{ url_for_node(node=n) }}") {{ n.name }}
|
|
|
|
span.details
|
2016-11-11 17:48:38 +01:00
|
|
|
span.what {% if n.properties.content_type %}{{ n.properties.content_type | undertitle }}{% else %}{{ n.node_type | undertitle }}{% endif %} ·
|
2016-11-24 18:16:15 +01:00
|
|
|
span.when {{ n._updated | pretty_date }} by
|
|
|
|
span.who {{ n.user.full_name }}
|
2016-08-19 09:19:06 +02:00
|
|
|
| {% endif %}
|
|
|
|
| {% endfor %}
|
|
|
|
| {% endif %}
|
|
|
|
|
2016-11-11 18:16:16 +01:00
|
|
|
| {% endif %}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
include _scripts
|
|
|
|
|
|
|
|
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.montage.min.js') }}")
|
|
|
|
script.
|
|
|
|
function montage(){
|
|
|
|
var $container = $('#featured-list'),
|
|
|
|
$imgs = $container.find('img').hide(),
|
|
|
|
totalImgs = $imgs.length,
|
|
|
|
cnt = 0;
|
|
|
|
|
|
|
|
$imgs.each(function(i) {
|
|
|
|
var $img = $(this);
|
2016-08-30 14:09:56 +02:00
|
|
|
$('<img/>').on('load', function() {
|
2016-08-19 09:19:06 +02:00
|
|
|
++cnt;
|
|
|
|
if( cnt === totalImgs ) {
|
|
|
|
$imgs.show();
|
|
|
|
$container.montage({
|
|
|
|
fillLastRow : true,
|
|
|
|
alternateHeight : true,
|
|
|
|
alternateHeightRange : {
|
|
|
|
min : 180,
|
|
|
|
max : 240
|
|
|
|
},
|
|
|
|
margin : 3
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}).attr('src',$img.attr('src'));
|
|
|
|
$img.parent().removeClass('hidden');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
montage();
|
|
|
|
|
2016-11-24 18:46:41 +01:00
|
|
|
$(".node-updates-list-item.asset, .node-updates-list-item.group")
|
2016-08-19 09:19:06 +02:00
|
|
|
.unbind('click')
|
|
|
|
.click(function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
displayNode($(this).data('node_id'));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
| {% endblock %}
|