diff --git a/src/templates/projects/view.pug b/src/templates/projects/view.pug index b619ed7..2e7c748 100644 --- a/src/templates/projects/view.pug +++ b/src/templates/projects/view.pug @@ -90,6 +90,8 @@ link(href="{{ url_for('static_pillar', filename='assets/css/project-main.css') } li.text-capitalize a.nav-link.text-muted.px-0(href="{{ url_for('cloud.courses') }}") | Courses + li.px-1 + i.pi-angle-right | {% elif project.category == 'workshop' %} li.text-capitalize a.nav-link.text-muted.px-0(href="{{ url_for('cloud.workshops') }}") @@ -659,10 +661,6 @@ script. /* UI Stuff */ $(window).on("load resize",function(){ containerResizeY($(window).height()); - - if ($(window).width() > 480) { - project_container.style.height = (window.innerHeight - project_container.offsetTop) + "px"; - } }); {% if current_user_is_subscriber %} diff --git a/src/templates/projects_index_collection.pug b/src/templates/projects_index_collection.pug index 577bb8a..e915a3a 100644 --- a/src/templates/projects_index_collection.pug +++ b/src/templates/projects_index_collection.pug @@ -1,5 +1,4 @@ | {% extends 'layout.html' %} - include ../../../pillar/src/templates/mixins/components | {# Default case is Open Projects #} @@ -78,7 +77,7 @@ meta(name="twitter:image", content="{{ page_header_image }}") | {% if (project.status == 'published') or (project.status == 'pending' and current_user.is_authenticated) and project._id != config.MAIN_PROJECT_ID %} +card( - class='js-project-go card-fade cursor-pointer mb-4', + class='js-project-go card-fade cursor-pointer mb-4 mx-0', data-url="{{ url_for('projects.view', project_url=project.url) }}", tabindex='{{ loop.index }}') | {% if project.picture_header %}