SciPost Code Repository

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

homogenize organization-associated model totals

parent a17e7ee4
No related branches found
No related tags found
No related merge requests found
...@@ -140,14 +140,16 @@ ...@@ -140,14 +140,16 @@
<li><a href="#" hx-swap="outerHTML" hx-get="{% url "organizations:_hx_export_associated_profile_emails" pk=org.id %}">Export associated profile emails</a></li> <li><a href="#" hx-swap="outerHTML" hx-get="{% url "organizations:_hx_export_associated_profile_emails" pk=org.id %}">Export associated profile emails</a></li>
</ul> </ul>
{% endif %} {% endif %}
<h3> <hgroup>
{% if org.cf_nr_associated_publications %}{{ org.cf_nr_associated_publications }}{% else %}No{% endif %} <h3>
Publication{{ org.cf_nr_associated_publications|pluralize }} associated to this Organization Associated Publications
{% if perms.scipost.can_manage_organizations %} {% if perms.scipost.can_manage_organizations %}
<span class="text-muted small">(with PubFracs <span data-bs-toggle="tooltip" data-bs-html="true" title="Fraction of a publication's funding/institutional support associated to a given Organization">{% include 'bi/info-circle-fill.html' %}</span>)</span> <span class="text-muted small">(with PubFracs <span data-bs-toggle="tooltip" data-bs-html="true" title="Fraction of a publication's funding/institutional support associated to a given Organization">{% include 'bi/info-circle-fill.html' %}</span>)</span>
{% endif %}: {% endif %}:
</h3> </h3>
<p class="text-muted">{{ org.cf_nr_associated_publications }} total publication{{ org.cf_nr_associated_publications|pluralize }}</p>
</hgroup>
{% regroup org.get_publications_with_year|dictsortreversed:'publication_year' by publication_year as publication_years %} {% regroup org.get_publications_with_year|dictsortreversed:'publication_year' by publication_year as publication_years %}
...@@ -190,7 +192,10 @@ ...@@ -190,7 +192,10 @@
{% endif %} {% endif %}
<div class="row"> <div class="row">
<div class="col-lg-6"> <div class="col-lg-6">
<h3>Associated Authors:</h3> <hgroup>
<h3>Associated Authors</h3>
<p class="text-muted">{{ org.get_author_profiles|length }} author{{ org.get_author_profiles|length|pluralize }}</p>
</hgroup>
<ul> <ul>
{% for profile in org.get_author_profiles %} {% for profile in org.get_author_profiles %}
...@@ -245,10 +250,13 @@ ...@@ -245,10 +250,13 @@
id="fellows-{{ org.id }}" id="fellows-{{ org.id }}"
role="tabpanel" role="tabpanel"
aria-labelledby="fellows-{{ org.id }}-tab"> aria-labelledby="fellows-{{ org.id }}-tab">
<h3 class="highlight">Fellows affiliated to this Organization</h3> <h3>Affiliated Fellows</h3>
<div class="row"> <div class="row">
<div class="col-lg-6"> <div class="col-lg-6">
<h4>Currently active</h4> <hgroup>
<h4>Currently active</h4>
<p class="text-muted">{{ org.fellowships.active|length }} fellow{{ org.fellowships.active|length|pluralize }}</p>
</hgroup>
<ul> <ul>
{% for fellow in org.fellowships.active %} {% for fellow in org.fellowships.active %}
...@@ -260,7 +268,10 @@ ...@@ -260,7 +268,10 @@
</ul> </ul>
</div> </div>
<div class="col-lg-6"> <div class="col-lg-6">
<h4>Former</h4> <hgroup>
<h4>Former</h4>
<p class="text-muted">{{ org.fellowships.former|length }} fellow{{ org.fellowships.former|length|pluralize }}</p>
</hgroup>
<ul> <ul>
{% for fellow in org.fellowships.former %} {% for fellow in org.fellowships.former %}
......
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