diff --git a/scipost_django/ontology/templates/ontology/session_specialty_form.html b/scipost_django/ontology/templates/ontology/session_specialty_form.html index 03f24a9955e664cfa5511db3b551e9bf1764bf3a..aeb52e69f101e288df739a20dd6cdb11969e8885 100644 --- a/scipost_django/ontology/templates/ontology/session_specialty_form.html +++ b/scipost_django/ontology/templates/ontology/session_specialty_form.html @@ -1,5 +1,5 @@ {% load crispy_forms_tags %} -<form id="session_specialty_form" style="display: none;" +<form id="session_specialty_form" hx-get="{% url 'ontology:set_session_specialty' %}" hx-trigger="change" hx-swap="outerHTML" diff --git a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss index 195261af196149478d02e6167bd138ecf5dc759d..c16592bc0c6a3d74083acd7da7b18810b517a645 100644 --- a/scipost_django/scipost/static/scipost/assets/css/_homepage.scss +++ b/scipost_django/scipost/static/scipost/assets/css/_homepage.scss @@ -61,7 +61,7 @@ background-color: #fff; .main-nav .nav-item { padding: 0 5px; } - .main-nav .nav-item .dropdown-toggle::after { content: none; } + //.main-nav .nav-item .dropdown-toggle::after { content: none; } .container { max-width: 1440px; } @@ -292,13 +292,13 @@ } -#portal-tablist-home5 { +#portal-tablist-home3 { list-style: none; padding: 0 0 4px 0; margin: 0; - li button { + li button, li a { color: black; font-size: 0.8rem; font-weight: 800; @@ -318,8 +318,8 @@ text-decoration: underline; } - li button:hover { - background-color: #b8c8db; + li button:hover, li a:hover { + background-color: $scipost-lightestblue;//#b8c8db; text-decoration: underline; } diff --git a/scipost_django/scipost/static/scipost/toggle-header-forms.js b/scipost_django/scipost/static/scipost/toggle-header-forms.js index bbd68f66fbb08e5d84b4a513d0f6c3348acbeb92..23b38bcaf6475a2248e9c46a99ca8455f43c1688 100644 --- a/scipost_django/scipost/static/scipost/toggle-header-forms.js +++ b/scipost_django/scipost/static/scipost/toggle-header-forms.js @@ -5,5 +5,4 @@ document.getElementById('home-tab').addEventListener('show.bs.tab', () => { }) document.getElementById('home-tab').addEventListener('hide.bs.tab', () => { document.getElementById('session_acad_field_form').style.display = 'block' - document.getElementById('session_specialty_form').style.display = 'block' }) diff --git a/scipost_django/scipost/templates/scipost/header_with_acad_field_and_spec5.html b/scipost_django/scipost/templates/scipost/header_with_acad_field_and_spec3.html similarity index 86% rename from scipost_django/scipost/templates/scipost/header_with_acad_field_and_spec5.html rename to scipost_django/scipost/templates/scipost/header_with_acad_field_and_spec3.html index 3fb3233fdf0437cc85da5f3a59bc639c2e82df4c..a252bbf693ccb0ef4c968b13f156601ff386dfdc 100644 --- a/scipost_django/scipost/templates/scipost/header_with_acad_field_and_spec5.html +++ b/scipost_django/scipost/templates/scipost/header_with_acad_field_and_spec3.html @@ -11,16 +11,16 @@ <div class="mx-2 my-4 my-lg-auto"> <form id="session_acad_field_form" style="display: none;" - hx-get="{% url 'ontology:set_session_acad_field' %}" - hx-trigger="change" - hx-swap="outerHTML" + hx-get="{% url 'ontology:set_session_acad_field' %}" + hx-trigger="change" + hx-swap="outerHTML" > {% crispy session_acad_field_form %} </form> </div> <div class="mx-2 my-4 my-lg-auto" hx-get="{% url 'ontology:_hx_session_specialty_form' %}" - hx-trigger="load, session-acad-field-set from:body" + hx-trigger="hide.bs.tab from:#home-tab, session-acad-field-set from:body" > </div> diff --git a/scipost_django/scipost/templates/scipost/index3.html b/scipost_django/scipost/templates/scipost/index3.html deleted file mode 100644 index 602776d06d4917dcfb04395ef8fb0a45dd9c3225..0000000000000000000000000000000000000000 --- a/scipost_django/scipost/templates/scipost/index3.html +++ /dev/null @@ -1,135 +0,0 @@ -{% extends 'scipost/base.html' %} - -{% block headsup %} - <link rel="preconnect" href="https://fonts.googleapis.com"> - <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> - <link href="https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;500;600&display=swap" rel="stylesheet"> -{% endblock headsup %} - -{% load render_bundle from webpack_loader %} -{% load static %} - -{% block body_class %}{{ block.super }} homepage home-alt{% endblock %} - -{% block meta_description %}{{ block.super }} homepage{% endblock meta_description %} -{% block pagetitle %}Homepage{% endblock pagetitle %} - -{% block content %} - <div class="row"> - <div class="col-12"> - <ul class="domains"> - <li class="active">Physics</li> - <li>Chemistry</li> - <li>Political Science</li> - <li>Mathematics</li> - <li>Astronomy</li> - </ul> - - <ul class="subdomains"> <li value="phys-ae">Atomic, Molecular and Optical Physics - Experiment</li> <li value="phys-at" class="active">Atomic, Molecular and Optical Physics - Theory</li> <li value="phys-bi">Biophysics</li> <li value="phys-ce">Condensed Matter Physics - Experiment</li> <li value="phys-ct">Condensed Matter Physics - Theory</li> <li value="phys-cc">Condensed Matter Physics - Computational</li> <li value="phys-fd">Fluid Dynamics</li> <li value="phys-gr">Gravitation, Cosmology and Astroparticle Physics</li> <li value="phys-he">High-Energy Physics - Experiment</li> <li value="phys-ht">High-Energy Physics - Theory</li> <li value="phys-hp">High-Energy Physics - Phenomenology</li> <li value="phys-mp">Mathematical Physics</li> <li value="phys-ne">Nuclear Physics - Experiment</li> <li value="phys-nt">Nuclear Physics - Theory</li> <li value="phys-qp">Quantum Physics</li> <li value="phys-sm">Statistical and Soft Matter Physics</li> - - </ul> - </div> - </div> - - <div class="row"> - <div class="col-md-8"> - - <div class="publications"> - <ul class="header-list"> - <li><h2>Journals</h2></li> - <li class="active"><h2>Publications</h2></li> - <li><h2>Submissions</h2></li> - </ul> - - <div class="publication-list"> - {% for publication in publications %} - {% include 'journals/_publication_li_content-alt.html' with publication=publication %} - {% endfor %} - </div> - </div> - </div> - - <div class="col-md-4"> - - <!-- News --> - <div class="news"> - <h2 class="header">News - <a class="btn btn-link btn-sm" href="{% url 'scipost:feeds' %}" aria-label="RSS feeds">{% include 'bi/rss-fill.html' %}</a> - </h2> - <ul> - {% for news in news_items %} - <li> - <div class="date">{{ news.date|date:'d' }}<span class="month">{{ news.date|date:'M' }}</span></div> - <div> - <h3><a href="{% url 'news:news' %}#news_{{ news.id }}">{{ news.headline }}</a></h3> - <p>{{ news.blurb_short }}</p> - </div> - </li> - {% endfor %} - </ul> - - <ul class="link-cloud"> - <li>About</li> - <li>Contact Us</li> - <li>The Foundation</li> - <li>Careers</li> - <li>FAQ</li> - <li>News</li> - <li>Feeds</li> - <li>Our Business model</li> - <li>Organizations</li> - <li>Sponsors</li> - <li>Finances</li> - </ul> - </div><!-- End news --> - - - </div> - - </div> -{% endblock %} - - -{% block content_footer %} - <div class="row"> - <div class="col-12"><h1 class="header">Sponsors</h1></div> - <div class="col-md-8"> - - <p> - SciPost guarantees free online access to all publications in all its Journals and does not charge any article processing fees for publishing. Sponsors provide operating funds to SciPost through a cost-slashing consortial model. - </p> - <p> - We invite <a href="{% url 'organizations:organizations' %}">organizations benefitting from SciPost's activities</a> to join our growing <a href="{% url 'sponsors:sponsors' %}">list of Sponsors</a>. Look at our <a href="{% static 'sponsors/SciPost_Sponsors_Board_Prospectus.pdf' %}">one-page Prospectus</a> and at our full <a href="{% static 'sponsors/SciPost_Sponsorship_Agreement.pdf' %}">Sponsorship Agreement template</a>. - </p> - <p> - <strong>Scientists, please help us out:</strong> Please petition your local librarian/director/... to consider sponsoring us. You can use this email <a href="mailto:?subject=Petition to support SciPost&body={% autoescape on %}{% include 'sponsors/sponsor_petition_email.html' %}{% endautoescape %}&cc=sponsors@scipost.org">template</a>. - </p> - </div> - <div class="col-md-4"> - <a href="{% url 'sponsors:sponsors' %}">See all sponsors</a> - <br> - <ul class="list list-unstyled"> - {% for sponsor in current_sponsors %} - {% if sponsor.logo %} - <li class="p-2"><img class="rounded" src="{{ sponsor.logo.url }}" alt="{{ sponsor.name }} logo"></li> - {% endif %} - {% endfor %} - </ul> - </div> - </div> - - - <div class="row"> - <div class="col-12"> - <h1 class="header mt-3">SciPost participates in</h1> - - <div class="logos text-center"> - <a href="//www.crossref.org" target="_blank" rel="noopener"><img src="//assets.crossref.org/logo/crossref-logo-200.svg" width="100" alt="Crossref logo"></a> - <a href="//www.doaj.org" target="_blank" rel="noopener"><img src="{% static 'scipost/images/doaj_logo_200.jpg' %}" width="90" alt="DOAJ logo"></a> - <a href="//www.clockss.org" target="_blank" rel="noopener"><img src="{% static 'scipost/images/clockss_original_logo_boxed_ai-cropped-90.png' %}" width="80" alt="Clockss logo"></a> - <a href="//i4oc.org/" target="_blank" rel="noopener"><img width="100" src="{% static 'scipost/images/I4OC.png' %}" alt="I4OC logo"></a> - <a href="//freejournals.org" target="_blank" rel="noopener"><img width="100" src="{% static 'scipost/images/FJN-logo-long.png' %}" alt="FJN logo"></a> - </div> - </div> - </div> -{% endblock %} diff --git a/scipost_django/scipost/templates/scipost/navbar2.html b/scipost_django/scipost/templates/scipost/navbar2.html index 1da72a4354c091bc926d0aaec2b310486c049813..5b3646d7d778770ec67ee909169bf679e305878f 100644 --- a/scipost_django/scipost/templates/scipost/navbar2.html +++ b/scipost_django/scipost/templates/scipost/navbar2.html @@ -101,13 +101,7 @@ <a href="{% url 'scipost:index2' %}">2: home + portal</a> </div> <div class="dropdown-item"> - <a href="{% url 'scipost:index3' %}">3: homepage, restyled</a> - </div> - <div class="dropdown-item"> - <a href="{% url 'scipost:index4' %}">4: home + portal, into one</a> - </div> - <div class="dropdown-item"> - <a href="{% url 'scipost:index5' %}">5: hybrid 3/4</a> + <a href="{% url 'scipost:index3' %}">3: all tabbed</a> </div> </div> </li> diff --git a/scipost_django/scipost/templates/scipost/navbar4.html b/scipost_django/scipost/templates/scipost/navbar3.html similarity index 92% rename from scipost_django/scipost/templates/scipost/navbar4.html rename to scipost_django/scipost/templates/scipost/navbar3.html index 7c971a6f9fedc7a97ecef5824a6f7d3c3a25e84a..52f46d1d2bd3f4401be799dcc0eb61b878b473e4 100644 --- a/scipost_django/scipost/templates/scipost/navbar4.html +++ b/scipost_django/scipost/templates/scipost/navbar3.html @@ -15,6 +15,13 @@ <div class="collapse navbar-collapse mt-lg-0 mt-3" id="main-navbar"> <ul class="navbar-nav me-auto"> + <li class="nav-item{% if request.path == '/home3' %} active{% endif %}"> + <a href="{% url 'scipost:index3' %}" class="nav-link" aria-label="SciPost Home"> + <span class="d-none d-lg-inline-block" aria-hidden="true" style="min-width: 16px;">{% include 'bi/house-fill.html' %}</span> + <span class="d-lg-none d-inline-block">Home</span> + </a> + </li> + {% if perms.scipost.can_preview_new_features %} <li class="nav-item dropdown border border-warning"> <a class="nav-link dropdown-toggle" href="#" id="HomepagesDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-trigger="hover"> @@ -29,25 +36,12 @@ <a href="{% url 'scipost:index2' %}">2: home + portal</a> </div> <div class="dropdown-item"> - <a href="{% url 'scipost:index3' %}">3: homepage, restyled</a> - </div> - <div class="dropdown-item"> - <a href="{% url 'scipost:index4' %}">4: home + portal, into one</a> - </div> - <div class="dropdown-item"> - <a href="{% url 'scipost:index5' %}">5: hybrid 3/4</a> + <a href="{% url 'scipost:index3' %}">3: all tabbed</a> </div> </div> </li> {% endif %} - <li class="nav-item{% if request.path == '/home4' %} active{% endif %}"> - <a href="{% url 'scipost:index2' %}" class="nav-link" aria-label="SciPost Home"> - <span class="d-none d-lg-inline-block" aria-hidden="true" style="min-width: 16px;">{% include 'bi/house-fill.html' %}</span> - <span class="d-lg-none d-inline-block">Home</span> - </a> - </li> - </ul> <hr class="lg d-lg-none"> diff --git a/scipost_django/scipost/templates/scipost/portal/_hx_home5.html b/scipost_django/scipost/templates/scipost/portal/_hx_home3.html similarity index 97% rename from scipost_django/scipost/templates/scipost/portal/_hx_home5.html rename to scipost_django/scipost/templates/scipost/portal/_hx_home3.html index 56dab6aa0ecad599c21fac860e7f8d15307818a4..6703a6124a8d5b1db70485ddffac37a8fdcb6287 100644 --- a/scipost_django/scipost/templates/scipost/portal/_hx_home5.html +++ b/scipost_django/scipost/templates/scipost/portal/_hx_home3.html @@ -4,7 +4,9 @@ <div class="col-md-8"> <h1 class="highlight mt-0">The Home of Genuine Open Publishing</h1> - <h4 class="m-2 mb-4">SciPost is a complete publishing infrastructure serving professional scientists worldwide.</h4> + <h2 class="ms-4 mb-4">SciPost is a complete publishing infrastructure + <br> + serving professional scientists worldwide.</h2> <div class="publications"> <h2 class="highlight">Selected publications</h2> diff --git a/scipost_django/scipost/templates/scipost/portal/portal5.html b/scipost_django/scipost/templates/scipost/portal/portal3.html similarity index 95% rename from scipost_django/scipost/templates/scipost/portal/portal5.html rename to scipost_django/scipost/templates/scipost/portal/portal3.html index 73520434721c38848f2047bebd5c7369aec68427..224f16f6fcb3d002429328b4056a96ee13b7a06d 100644 --- a/scipost_django/scipost/templates/scipost/portal/portal5.html +++ b/scipost_django/scipost/templates/scipost/portal/portal3.html @@ -11,7 +11,7 @@ {% load static %} {% block navbar %} - {% include 'scipost/navbar4.html' %} + {% include 'scipost/navbar3.html' %} {% endblock %} {% block body_class %}{{ block.super }} homepage home-alt{% endblock %} @@ -20,7 +20,7 @@ {% block pagetitle %}Homepage{% endblock pagetitle %} {% block header %} - {% include 'scipost/header_with_acad_field_and_spec5.html' %} + {% include 'scipost/header_with_acad_field_and_spec3.html' %} {% endblock %} @@ -28,7 +28,7 @@ <ul class="nav nav-pills flex-wrap flex-sm-row mb-0 justify-content-center" - id="portal-tablist-home5" + id="portal-tablist-home3" role="tablist"> <li class="nav-item" role="presentation"> @@ -95,10 +95,10 @@ </li> <li class="nav-item" role="presentation"> - <button class="btn btn-outline-success border-2 ms-4" + <a class="btn btn-outline-success border-2 ms-4" href="{% url 'submissions:submit_manuscript' %}"> {% include 'bi/arrow-right.html' %}<strong>Submit</strong> - </button> + </a> </li> </ul> @@ -109,7 +109,7 @@ <div class="tab-pane portal-tab fade show active" id="home" role="tabpanel" aria-labelledby="home-tab"> - <div hx-get="{% url 'scipost:portal_hx_home5' %}" + <div hx-get="{% url 'scipost:portal_hx_home3' %}" hx-trigger="load, click delay:200ms from:#home-tab" > </div> diff --git a/scipost_django/scipost/templates/scipost/portal/portal4.html b/scipost_django/scipost/templates/scipost/portal/portal4.html deleted file mode 100644 index 82b354c1b0c1beec90c67b219a1e0b3342d742a5..0000000000000000000000000000000000000000 --- a/scipost_django/scipost/templates/scipost/portal/portal4.html +++ /dev/null @@ -1,170 +0,0 @@ -{% extends 'scipost/base.html' %} -{% load static %} - -{% load render_bundle from webpack_loader %} -{% load static %} - -{% block navbar %} - {% include 'scipost/navbar4.html' %} -{% endblock %} - -{% block body_class %}{{ block.super }} homepage{% endblock %} - -{% block meta_description %}{{ block.super }} homepage{% endblock meta_description %} -{% block pagetitle %}Homepage{% endblock pagetitle %} - -{% block header %} - {% include 'scipost/header_with_acad_field_and_spec2p2.html' %} -{% endblock %} - - -{% block content %} - - - <ul class="nav nav-pills flex-wrap flex-sm-row mb-3 justify-content-center" - id="portal-tablist" - role="tablist"> - - <li class="nav-item" role="presentation"> - <button class="nav-link" id="home-tab" - data-bs-toggle="tab" data-bs-target="#home" - type="button" role="tab" - aria-controls="home" aria-selected="true"> - Home - </button> - </li> - - <li class="nav-item" role="presentation"> - <button class="nav-link" id="journals-tab" - data-bs-toggle="tab" data-bs-target="#journals" - type="button" role="tab" - aria-controls="journals" aria-selected="true"> - Journals - </button> - </li> - - <li class="nav-item" role="presentation"> - <button class="nav-link active" id="publications-tab" - data-bs-toggle="tab" data-bs-target="#publications" - type="button" role="tab" - aria-controls="publications" aria-selected="true"> - Publications - </button> - </li> - - <li class="nav-item" role="presentation"> - <button class="nav-link" id="submissions-tab" - data-bs-toggle="tab" data-bs-target="#submissions" - type="button" role="tab" - aria-controls="submissions" aria-selected="true"> - Submissions - </button> - </li> - - <li class="nav-item" role="presentation"> - <button class="nav-link border border-warning" id="reports-needed-tab" - data-bs-toggle="tab" data-bs-target="#reports-needed" - type="button" role="tab" - aria-controls="reports-needed" aria-selected="true"> - Reports needed <span class="text-warning">{% include 'bi/exclamation-square-fill.html' %}</span> - </button> - </li> - - <li class="nav-item" role="presentation"> - <button class="nav-link" id="reports-tab" - data-bs-toggle="tab" data-bs-target="#reports" - type="button" role="tab" - aria-controls="reports" aria-selected="true"> - Reports - </button> - </li> - - <li class="nav-item" role="presentation"> - <button class="nav-link" id="comments-tab" - data-bs-toggle="tab" data-bs-target="#comments" - type="button" role="tab" - aria-controls="comments" aria-selected="true"> - Comments - </button> - </li> - - <li class="nav-item" role="presentation"> - <a class="btn btn-outline-success border-2 ms-4" - href="{% url 'submissions:submit_manuscript' %}"> - {% include 'bi/arrow-right.html' %}<strong>Submit</strong> - </a> - </li> - - </ul> - - <hr> - - <div class="tab-content mt-4" id="portalTabContent"> - - <div class="tab-pane portal-tab fade" id="home" - role="tabpanel" aria-labelledby="home-tab"> - <div hx-get="{% url 'scipost:portal_hx_home' %}" - hx-trigger="click delay:200ms from:#home-tab" - > - </div> - </div> - - <div class="tab-pane portal-tab fade" id="journals" - role="tabpanel" aria-labelledby="journals-tab"> - <div hx-get="{% url 'scipost:portal_hx_journals' %}" - hx-trigger="click delay:200ms from:#journals-tab, session-acad-field-set from:body" - > - </div> - </div> - - <div class="tab-pane portal-tab fade show active" id="publications" - role="tabpanel" aria-labelledby="publications-tab"> - <div hx-get="{% url 'scipost:portal_hx_publications' %}" - hx-trigger="load, click delay:200ms from:#publications-tab, session-acad-field-set from:body, session-specialty-set from:body" - > - </div> - </div> - - <div class="tab-pane portal-tab fade" id="submissions" - role="tabpanel" aria-labelledby="submissions-tab"> - <div hx-get="{% url 'scipost:portal_hx_submissions' %}" - hx-trigger="click delay:200ms from:#submissions-tab, session-acad-field-set from:body, session-specialty-set from:body" - > - </div> - </div> - - <div class="tab-pane portal-tab fade" id="reports-needed" - role="tabpanel" aria-labelledby="reports-needed-tab"> - <div hx-get="{% url 'scipost:portal_hx_submissions' %}?reports_needed=1" - hx-trigger="click delay:200ms from:#reports-needed-tab, session-acad-field-set from:body, session-specialty-set from:body" - > - </div> - </div> - - <div class="tab-pane portal-tab fade" id="reports" - role="tabpanel" aria-labelledby="reports-tab"> - <div hx-get="{% url 'scipost:portal_hx_reports' %}" - hx-trigger="click delay:200ms from:#reports-tab, session-acad-field-set from:body, session-specialty-set from:body" - > - </div> - </div> - - <div class="tab-pane portal-tab fade" id="comments" - role="tabpanel" aria-labelledby="comments-tab"> - <div hx-get="{% url 'scipost:portal_hx_comments' %}" - hx-trigger="click delay:200ms from:#comments-tab, session-acad-field-set from:body, session-specialty-set from:body" - > - </div> - </div> - - </div> - -{% endblock %} - -{% block footer_script %} - {{ block.super }} - <script nonce="{{ request.csp_nonce }}" src="{% static 'scipost/toggle-proceedings.js' %}"> - </script> - <script nonce="{{ request.csp_nonce }}" src="{% static 'scipost/toggle-header-forms.js' %}"> - </script> -{% endblock footer_script %} diff --git a/scipost_django/scipost/urls.py b/scipost_django/scipost/urls.py index ec0eb88a33e6165f7fed14a3fc792340ed5b0364..c63b0839232e8ea24551de99903b6021339bbb6b 100644 --- a/scipost_django/scipost/urls.py +++ b/scipost_django/scipost/urls.py @@ -79,16 +79,6 @@ urlpatterns = [ views.index3, name='index3' ), - path( - 'home4', - views.index4, - name='index4' - ), - path( - 'home5', - views.index5, - name='index5' - ), # Portal path( @@ -104,9 +94,9 @@ urlpatterns = [ name='portal_hx_home' ), path( - 'portal/_hx_home5', - views.portal_hx_home5, - name='portal_hx_home5' + 'portal/_hx_home3', + views.portal_hx_home3, + name='portal_hx_home3' ), path( 'portal/_hx_journals', diff --git a/scipost_django/scipost/views.py b/scipost_django/scipost/views.py index e62b72fc4d61dcd57b24b6046aec6838e8da6183..e704c7ca703b8affb275d1c097b56619e9c5d7b0 100644 --- a/scipost_django/scipost/views.py +++ b/scipost_django/scipost/views.py @@ -177,27 +177,6 @@ def index2(request): @permission_required('scipost.can_preview_new_features', return_403=True) def index3(request): - """Homepage view of SciPost.""" - context = { - 'news_items': NewsItem.objects.homepage().order_by('-date')[:4], - 'publications': Publication.objects.published().order_by('-publication_date', - '-paper_nr')[:10], - # 'submissions': Submission.objects.public().order_by('-submission_date')[:10], - 'current_sponsors': Organization.objects.current_sponsors().order_by('?')[:2] - } - return render(request, 'scipost/index3.html', context) - - -@permission_required('scipost.can_preview_new_features', return_403=True) -def index4(request): - if request.GET.get('field', None): - request.session['session_acad_field_slug'] = request.GET.get('field', None) - request.session['session_specialty_slug'] = '' - return render(request, 'scipost/portal/portal4.html') - - -@permission_required('scipost.can_preview_new_features', return_403=True) -def index5(request): if request.GET.get('field', None): request.session['session_acad_field_slug'] = request.GET.get('field', None) request.session['session_specialty_slug'] = '' @@ -206,7 +185,7 @@ def index5(request): 'publications': Publication.objects.published().order_by('-publication_date', '-paper_nr')[:3], } - return render(request, 'scipost/portal/portal5.html', context) + return render(request, 'scipost/portal/portal3.html', context) @permission_required('scipost.can_preview_new_features', return_403=True) @@ -232,7 +211,7 @@ def portal_hx_home(request): return render(request, 'scipost/portal/_hx_home.html', context) -def portal_hx_home5(request): +def portal_hx_home3(request): """Homepage view of SciPost.""" if NewsItem.objects.homepage().exists(): news_items = NewsItem.objects.homepage().order_by('-date')[:3] @@ -243,7 +222,7 @@ def portal_hx_home5(request): 'publications': Publication.objects.published().order_by( '-publication_date', '-paper_nr')[:3], } - return render(request, 'scipost/portal/_hx_home5.html', context) + return render(request, 'scipost/portal/_hx_home3.html', context) def portal_hx_publications(request):