2018-04-16 14:33:38 +02:00
|
|
|
| {% extends 'projects/landing.html' %}
|
2016-11-11 17:10:43 +01:00
|
|
|
|
2018-04-16 14:33:38 +02:00
|
|
|
| {% block body %}
|
|
|
|
| {% if node.picture %}
|
|
|
|
header
|
2018-05-07 15:26:26 +02:00
|
|
|
img.header(src="{{ node.picture.thumbnail('h', api=api) }}")
|
2018-04-16 14:33:38 +02:00
|
|
|
| {% endif %}
|
2018-09-14 16:56:35 +02:00
|
|
|
|
2016-11-11 17:10:43 +01:00
|
|
|
#node-container
|
|
|
|
#node-overlay
|
|
|
|
|
2018-09-07 18:13:04 +02:00
|
|
|
.node-details-container.page.expand-image-links.imgs-fluid
|
2016-11-11 17:10:43 +01:00
|
|
|
|
2018-09-07 18:13:04 +02:00
|
|
|
h2.pt-3.text-center {{node.name}}
|
|
|
|
|
|
|
|
hr
|
2016-11-11 17:10:43 +01:00
|
|
|
|
|
|
|
| {% if node.description %}
|
2018-09-07 18:13:04 +02:00
|
|
|
| {{ node | markdowned('description') }}
|
2016-11-11 17:10:43 +01:00
|
|
|
| {% endif %}
|
|
|
|
|
2018-09-07 18:13:04 +02:00
|
|
|
small.text-muted
|
|
|
|
span(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 %}
|
2018-04-16 14:33:38 +02:00
|
|
|
| {{ super() }}
|
2016-11-11 17:10:43 +01:00
|
|
|
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.
|
2017-11-23 16:49:19 +01:00
|
|
|
|
2016-12-02 16:57:48 +01:00
|
|
|
var url = '{{ node.properties.url }}'
|
2017-02-27 13:08:56 +01:00
|
|
|
var replace_state = {nodeId: '{{node._id}}', url: url};
|
|
|
|
window.history.replaceState(
|
|
|
|
replace_state,
|
|
|
|
'{{node.name}}',
|
2016-12-02 16:57:48 +01:00
|
|
|
url
|
|
|
|
);
|
2016-11-11 17:10:43 +01:00
|
|
|
// Generate GA pageview
|
2018-04-16 14:33:38 +02:00
|
|
|
$(document).ready(function () {
|
|
|
|
ga('send', 'pageview', location.pathname);
|
|
|
|
});
|
|
|
|
|
2016-11-11 17:10:43 +01:00
|
|
|
| {% endblock %}
|
|
|
|
|