SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit c1bd4128 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add prominent support options and donate button

parent 15b62597
No related branches found
No related tags found
No related merge requests found
{% load static %}
<div class="card border border-2 rounded border-warning mb-3">
<div class="card-header bg-warning d-flex flex-row justify-content-between align-items-center">
<h2 class="mb-0 card-title text-white">We need your URGENT support</h2>
<span class="fs-2 text-white">{% include "bi/exclamation-triangle-fill.html" %}</span>
</div>
<div class="card-body">
<p>
SciPost guarantees free online access to all publications in all its Journals and does not charge any article processing fees for publishing. <a href="{% url "organizations:organizations" %}">Supporting organizations</a> provide <a href="{% url "finances:subsidies" %}">operating funds</a> to SciPost through a cost-slashing consortial model.
</p>
<p class="mb-0">
Scientists, please help us out: if it is not listed on our organization page, please encourage your institution (through a librarian, Open Access officer, director, ...) to join by personally emailing them directly.
</p>
<div class="d-flex flex-column gap-2 my-3">
<a href="mailto:?subject=Petition to support SciPost&body={% autoescape on %}{% include 'petitions/petition_email.html' %}{% endautoescape %}&cc=sponsors@scipost.org"
class="btn bg-primary text-white">Contact your institution
<span class="ms-2">{% include "bi/envelope-fill.html" %}</span>
</a>
</div>
<p>
Direct contributions from research budgets earmarked for open-access publishing are welcome.
Please use the buttons below to obtain a personalised invoice, or donate directly.
</p>
<div class="d-flex flex-column gap-2">
<a href="mailto:sponsors@scipost.org?subject=Direct donation to SciPost"
class="btn border border-2 border-primary">Direct contribution via invoice
<span class="ms-2">{% include "bi/envelope-fill.html" %}</span>
</a>
<form action="https://www.paypal.com/cgi-bin/webscr"
class="btn border border-2 border-primary p-0"
method="post"
target="_top">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="L58JMPWAXGUTW" />
<button class="btn w-100 d-flex flex-row gap-3 align-items-center justify-content-center">
Donate via
<img src="https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png"
alt="PayPal - The safer, easier way to pay online!" />
</button>
</form>
</div>
</div>
</div>
{% if not user.is_authenticated %} {% if not user.is_authenticated %}
<!-- Register --> <!-- Register -->
<div class="card border border-danger mb-3"> <div class="card border mb-3">
<div class="card-header"> <div class="card-header">
<h2 class="fs-2">Register</h2> <h2 class="fs-2">Register</h2>
</div> </div>
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
{% include 'scipost/portal/_home_scipost_intro.html' %} {% include 'scipost/portal/_home_scipost_intro.html' %}
<div class="d-block d-md-none">{% include 'scipost/portal/_home_register_prompt.html' %}</div> <div class="d-block d-md-none">
{% include 'scipost/portal/_home_register_prompt.html' %}
</div>
<div hx-trigger="load once" <div hx-trigger="load once"
hx-swap="outerHTML" hx-swap="outerHTML"
...@@ -28,12 +30,18 @@ ...@@ -28,12 +30,18 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="d-none d-md-block">{% include 'scipost/portal/_home_register_prompt.html' %}</div> <div class="d-none d-md-block">
{% include 'scipost/portal/_home_donate_prompt.html' %}
</div>
<div class="d-none d-md-block">
{% include 'scipost/portal/_home_register_prompt.html' %}
</div>
<!-- News --> <!-- News -->
<div class="news"> <div class="news">
<h2 class="highlight mt-0"> <h2 class="highlight mt-0">
<a href="{% url "news:news" %}" class="text-body fs-2">News</a> <a href="{% url "news:news" %}" class="text-body fs-2">Latest News</a>
</h2> </h2>
<ul> <ul>
...@@ -136,7 +144,9 @@ ...@@ -136,7 +144,9 @@
<p> <p>
Regarding our operations, we run them in the most efficient way possible, with <strong>complete transparency</strong>, for the benefit not only of scientists worldwide, but also of their supporting Organizations (and anybody else interested in science). Regarding our operations, we run them in the most efficient way possible, with <strong>complete transparency</strong>, for the benefit not only of scientists worldwide, but also of their supporting Organizations (and anybody else interested in science).
</p> </p>
<p>More information about our business model can be found <a href="{% url "finances:business_model" %}">here</a>.</p> <p>
More information about our business model can be found <a href="{% url "finances:business_model" %}">here</a>.
</p>
</div> </div>
</div> </div>
......
...@@ -213,7 +213,7 @@ def portal(request): ...@@ -213,7 +213,7 @@ def portal(request):
def portal_hx_home(request): def portal_hx_home(request):
"""Homepage view of SciPost.""" """Homepage view of SciPost."""
if NewsItem.objects.homepage().exists(): if NewsItem.objects.homepage().exists():
news_items = NewsItem.objects.homepage().order_by("-date")[:3] news_items = NewsItem.objects.homepage().order_by("-date")[:1]
else: else:
news_items = NewsItem.objects.none() news_items = NewsItem.objects.none()
latest_blogpost = BlogPost.objects.published().first() latest_blogpost = BlogPost.objects.published().first()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment