diff --git a/src/templates/projects/landing.pug b/src/templates/projects/landing.pug index 4554d2b..12e538b 100644 --- a/src/templates/projects/landing.pug +++ b/src/templates/projects/landing.pug @@ -88,11 +88,6 @@ header //a(href="{{ url_for( 'projects.view', project_url=project.url) }}") img.header(src="{{ project.picture_header.thumbnail('l', api=api) }}") - a.page-card-cta.js-watch-video( - href="https://www.youtube.com/watch?v=NwVGvcIrNWA", - data-youtube-id="NwVGvcIrNWA") - i.pi-play - | Watch Film | {% block navbar_secondary %} | {{ projectmacros.render_secondary_navigation(project, pages=pages) }} @@ -123,7 +118,16 @@ header | {% endif %} | {% endfor %} div(class="clearfix") - a.btn(href="{{ url_for('main.project_blog', project_url=project.url) }}") See more + | {% if project.nodes_featured %} + | {# In some cases featured_nodes might might be embedded #} + | {% if '_id' in project.nodes_featured[0] %} + | {% set featured_node_id=project.nodes_featured[0]._id %} + | {% else %} + | {% set featured_node_id=project.nodes_featured[0] %} + | {% endif %} + a.btn(href="{{ url_for('projects.view_node', project_url=project.url, node_id=featured_node_id) }}") See more + | {% endif %} + section.node-extra h2 Latest Updates @@ -179,62 +183,6 @@ script. } }); - $('a.js-watch-video').click(function (e) { - e.preventDefault(); - e.stopPropagation(); - - $('#page-overlay.video').addClass('active'); - - var videoId = $(this).attr('data-youtube-id'); - $('#page-overlay .video-embed').html('') - }); - - function loadNodeContent(url, nodeId) { - - $('#project-loading').addClass('active'); - $.get(url, function (dataHtml) { - // Update the DOM injecting the generate HTML into the page - $('#page-overlay').addClass('active'); - $('#others').html(dataHtml); - // $('#project_context').html(dataHtml); - }) - .done(function () { - // updateUi(nodeId, 'view'); - }) - .fail(function (dataResponse) { - $('#project_context').html($('