diff --git a/scipost/static/scipost/images/doaj_logo_200.jpg b/scipost/static/scipost/images/doaj_logo_200.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3ed892b44b70c64254a63d5436696e89ce0f6dde Binary files /dev/null and b/scipost/static/scipost/images/doaj_logo_200.jpg differ diff --git a/scipost/templates/scipost/index.html b/scipost/templates/scipost/index.html index 904ffe37d375266d7d589dd66b76dae8be798398..ab9a923654f60e1c6b70382bdfe6b8f89d642ed3 100644 --- a/scipost/templates/scipost/index.html +++ b/scipost/templates/scipost/index.html @@ -108,6 +108,28 @@ <div class="card-footer"><a href="{% url 'news:news' %}">More news</a></div> </div><!-- End news --> + <!-- Partners --> + <div class="card card-grey"> + <div class="card-block"> + <h2 class="card-title"> + <a href="{% url 'partners:partners' %}">Partners</a> + </h2> + + <div> + <p>Institutions: consider joining our <a href="{% url 'partners:partners' %}">Supporting Partners Board</a>.</p> + Recently joined: + <ul class="mt-1"> + {% for agreement in current_agreements %} + <li><strong>{{agreement.partner.institution.name}}</strong><br> + {{agreement.partner.institution.get_country_display}}</li> + + {% endfor %} + </ul> + + </div> + </div> + </div><!-- End Partners --> + <!-- Summarized --> <div class="card card-grey"> <div class="card-block"> @@ -151,9 +173,11 @@ </div> </div> <div class="col-lg-6"> - <h1>SciPost is a member of</h1> + <h1>SciPost participates in</h1> <br/> <a href="//www.crossref.org" target="_blank"><img src="//assets.crossref.org/logo/crossref-logo-200.svg" width="100" alt="Crossref logo"></a> + <a href="//www.doaj.org" target="_blank" class="ml-4"><img src="{% static 'scipost/images/doaj_logo_200.jpg' %}" width="90" alt="DOAJ logo"></a> + <a href="//www.clockss.org" target="_blank" class="ml-4"><img src="{% static 'scipost/images/clockss_original_logo_boxed_ai-cropped-90.png' %}" width="80" alt="Clockss logo"></a> </div> </div> </footer> diff --git a/scipost/views.py b/scipost/views.py index 66ab962a32015b64bb561bce5607a80565826c58..c79f0267a5247422df3836f140542abc8205de38 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -40,6 +40,7 @@ from journals.models import Publication, Issue, Journal from news.models import NewsItem from submissions.models import Submission, EditorialAssignment, RefereeInvitation,\ Report, EICRecommendation +from partners.models import MembershipAgreement from theses.models import ThesisLink @@ -177,11 +178,10 @@ def index(request): context = { 'latest_newsitem': NewsItem.objects.all().order_by('-date').first(), 'submissions': Submission.objects.public().order_by('-submission_date')[:3], - 'issues': Issue.objects.published().order_by('-start_date')[:3], 'journals': Journal.objects.active().order_by('name'), 'publications': Publication.objects.published().order_by('-publication_date', - '-paper_nr')[:3] - + '-paper_nr')[:3], + 'current_agreements': MembershipAgreement.objects.now_active()[:2], } return render(request, 'scipost/index.html', context)