2016-08-19 09:19:06 +02:00
|
|
|
| {% block body %}
|
|
|
|
|
|
|
|
#node-container
|
|
|
|
#node-overlay
|
|
|
|
|
|
|
|
section.node-preview.video
|
2017-02-02 16:06:41 +01:00
|
|
|
| {% if node.video_sources %}
|
2017-02-02 17:40:04 +01:00
|
|
|
video#videoplayer.video-js.vjs-fluid(
|
2017-02-02 16:06:41 +01:00
|
|
|
controls,
|
|
|
|
data-setup="{}",
|
|
|
|
preload="auto",
|
|
|
|
poster="{% if node.picture %}{{ node.picture.thumbnail('l', api=api) }}{% endif %}")
|
|
|
|
| {% for source in node.video_sources %}
|
|
|
|
source(
|
|
|
|
src="{{ source.src }}",
|
|
|
|
type="{{ source.type }}")
|
|
|
|
| {% endfor %}
|
|
|
|
p.vjs-no-js.
|
|
|
|
To view this video please enable JavaScript, and consider upgrading to a web browser that
|
|
|
|
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
|
|
|
|
| {% else %}
|
|
|
|
.video-dummy.sorry(
|
2017-02-02 18:05:30 +01:00
|
|
|
style="{% if node.picture %}background-image: url({{ node.picture.thumbnail('l', api=api) }});{% endif %}")
|
2017-02-02 16:06:41 +01:00
|
|
|
.video-dummy-content
|
|
|
|
i.pi-lock.video-dummy-content-icon
|
|
|
|
.video-dummy-content-text
|
|
|
|
span Only available to Blender Cloud subscribers.
|
|
|
|
a(href="{{ url_for('main.join') }}") Support Blender and get awesome stuff. <em>Subscribe now!</em>
|
|
|
|
| {% endif %}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
section.node-details-container.video
|
|
|
|
|
|
|
|
.node-details-header
|
|
|
|
.node-title#node-title
|
|
|
|
| {{node.name}}
|
|
|
|
|
|
|
|
.node-details-meta.header
|
|
|
|
ul.node-details-meta-list
|
|
|
|
| {% if node.permissions.world %}
|
|
|
|
li.node-details-meta-list-item.access.public(
|
|
|
|
data-toggle="tooltip",
|
|
|
|
data-placement="bottom",
|
|
|
|
title="Anybody can download. Share it!")
|
|
|
|
i.pi-lock-open
|
|
|
|
span Public
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
| {% if node.properties.license_type %}
|
|
|
|
| {% if node.properties.license_notes %}
|
|
|
|
li.node-details-meta-list-item.video.license(
|
|
|
|
id="asset-license",
|
|
|
|
data-toggle="popover",
|
|
|
|
data-placement="left",
|
|
|
|
data-trigger="hover",
|
|
|
|
data-content="{{ node.properties.license_notes }}",
|
|
|
|
title="{{ node.properties.license_type }}")
|
|
|
|
|
|
|
|
i(class="pi-license-{{ node.properties.license_type }}")
|
|
|
|
| {% else %}
|
|
|
|
li.node-details-meta-list-item.video.license(
|
|
|
|
id="asset-license",
|
|
|
|
data-toggle="tooltip",
|
|
|
|
data-placement="bottom",
|
|
|
|
title="{{ node.properties.license_type }}")
|
|
|
|
|
|
|
|
i(class="pi-license-{{ node.properties.license_type }}")
|
|
|
|
| {% endif %}
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
| {% if node.file %}
|
|
|
|
| {% if node.file_variations %}
|
|
|
|
li.btn-group.node-details-meta-list-item.video.download(
|
|
|
|
title="Download Video")
|
|
|
|
button.btn.btn-default.dropdown-toggle(
|
|
|
|
type="button",
|
|
|
|
data-toggle="dropdown",
|
|
|
|
aria-haspopup="true",
|
|
|
|
aria-expanded="false")
|
|
|
|
i.pi-download
|
|
|
|
i.pi-angle-down.icon-dropdown-menu
|
|
|
|
|
|
|
|
ul.dropdown-menu
|
|
|
|
| {% for child in node.file_variations %}
|
|
|
|
li
|
|
|
|
a(href="{{ child.link }}",
|
|
|
|
title="Download this video format",
|
|
|
|
download)
|
|
|
|
span.length {{ child.length | filesizeformat }}
|
|
|
|
|
|
|
|
span.format {{ child.format }}
|
|
|
|
span.size {{ child.size }}
|
|
|
|
|
|
|
|
| {% endfor %}
|
|
|
|
| {% else %}
|
|
|
|
li.btn-group.node-details-meta-list-item.video.download.disabled(
|
|
|
|
title="Download Video")
|
|
|
|
button.btn.btn-default.sorry(type="button")
|
2016-11-08 15:05:44 +01:00
|
|
|
i.pi-lock
|
2016-08-19 09:19:06 +02:00
|
|
|
i.pi-download
|
|
|
|
| {% endif %}
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
| {% if node.description %}
|
|
|
|
.node-details-description#node-description
|
|
|
|
| {{node.description}}
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
| {% if node.properties.license_notes %}
|
|
|
|
.node-details-meta.license
|
|
|
|
| {{ node.properties.license_notes }}
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
.node-details-meta.footer
|
|
|
|
ul.node-details-meta-list
|
|
|
|
li.node-details-meta-list-item.status
|
2016-11-01 19:36:04 +01:00
|
|
|
| {{ node.properties.status | undertitle }}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
li.node-details-meta-list-item.author
|
|
|
|
| {{ node.user.full_name }}
|
|
|
|
|
|
|
|
li.node-details-meta-list-item.date(title="Created {{ node._created }}")
|
|
|
|
| {{ node._created | pretty_date }}
|
|
|
|
| {% if (node._created | pretty_date) != (node._updated | pretty_date) %}
|
|
|
|
span(title="Updated {{ node._updated }}") (updated {{ node._updated | pretty_date }})
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
|
2016-11-01 15:53:16 +01:00
|
|
|
#comments-embed
|
2016-08-19 09:19:06 +02:00
|
|
|
#comments-list-items-loading
|
|
|
|
i.pi-spin
|
|
|
|
|
2017-02-02 17:40:04 +01:00
|
|
|
script(type="text/javascript").
|
2017-02-06 12:07:05 +01:00
|
|
|
{% if node.video_sources %}
|
2017-02-08 16:27:52 +01:00
|
|
|
videojs(document.getElementById('videoplayer'), {
|
2017-03-13 17:11:06 +01:00
|
|
|
fluid: true,
|
|
|
|
controlBar: {
|
|
|
|
volumeMenuButton: {
|
|
|
|
inline: false,
|
|
|
|
vertical: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
loop: true,
|
2017-02-08 16:27:52 +01:00
|
|
|
},
|
|
|
|
function(){
|
|
|
|
this.ga({
|
|
|
|
'eventLabel' : '{{ node._id }} - {{ node.name }}',
|
|
|
|
'eventCategory' : '{{ node.project }}',
|
|
|
|
'eventsToTrack' : ['start', 'error', 'percentsPlayed']
|
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|
2017-02-06 12:07:05 +01:00
|
|
|
{% endif %}
|
2017-02-02 17:40:04 +01:00
|
|
|
|
2016-08-19 09:19:06 +02:00
|
|
|
$(function(){
|
|
|
|
// Generate GA pageview
|
|
|
|
ga('send', 'pageview', location.pathname);
|
|
|
|
|
|
|
|
var content_type = $("li.node-details-meta-list-item.type").text();
|
|
|
|
$("li.node-details-meta-list-item.type").text(content_type.substring(content_type.indexOf("/") + 1));
|
|
|
|
|
|
|
|
{% if not node.video_sources %}
|
2017-02-02 16:06:41 +01:00
|
|
|
$('.sorry').click(function() {
|
2016-08-19 09:19:06 +02:00
|
|
|
$.get('/403', function(data) {
|
|
|
|
$('#node-overlay').html(data).addClass('active');
|
|
|
|
})
|
|
|
|
});
|
|
|
|
{% endif %}
|
|
|
|
});
|
|
|
|
|
2017-02-06 12:07:05 +01:00
|
|
|
include ../../_scripts
|
|
|
|
|
2016-08-19 09:19:06 +02:00
|
|
|
| {% endblock %}
|