2016-11-11 17:10:43 +01:00
|
|
|
| {% block body %}
|
|
|
|
|
|
|
|
#node-container
|
|
|
|
#node-overlay
|
|
|
|
|
|
|
|
| {% if node.picture %}
|
|
|
|
section#node-preview.node-preview.page
|
|
|
|
img.node-preview-thumbnail#node-preview-thumbnail(
|
|
|
|
src="{{ node.picture.thumbnail('l', api=api) }}")
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
section.node-details-container.page
|
|
|
|
|
|
|
|
.node-details-header
|
|
|
|
.node-title#node-title
|
|
|
|
| {{node.name}}
|
|
|
|
|
|
|
|
| {% if node.description %}
|
|
|
|
.node-details-description#node-description
|
|
|
|
| {{node.description}}
|
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
.node-details-meta.footer
|
2016-11-24 18:16:25 +01:00
|
|
|
span.updated(title="created {{ node._created | pretty_date }}") updated {{ node._updated | pretty_date }}
|
2016-11-11 17:10:43 +01:00
|
|
|
|
|
|
|
include ../_scripts
|
|
|
|
|
|
|
|
| {% endblock %}
|
|
|
|
|
|
|
|
| {% block footer_scripts %}
|
|
|
|
script.
|
2016-12-02 16:57:48 +01:00
|
|
|
// Push the correct URL onto the history. This push happens after the id has
|
|
|
|
// been pushed to the history already. We should probably keep only this and
|
|
|
|
// skip the project-level displayNode push.
|
|
|
|
|
|
|
|
var url = '{{ node.properties.url }}'
|
|
|
|
var push_state = {nodeId: '{{node._id}}', url: url};
|
|
|
|
// console.log('Pushing state ', push_state, ' with URL ', push_url);
|
|
|
|
window.history.pushState(
|
|
|
|
push_state,
|
|
|
|
'{{node.properties.url}}',
|
|
|
|
url
|
|
|
|
);
|
2016-11-11 17:10:43 +01:00
|
|
|
// Generate GA pageview
|
|
|
|
ga('send', 'pageview', location.pathname);
|
|
|
|
| {% endblock %}
|
|
|
|
|