From cba7fffff18ea1a7c08416eb0758ac958d56a47c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org>
Date: Mon, 18 Mar 2024 07:30:21 +0100
Subject: [PATCH] Add table info on organization detail page

---
 .../organizations/_organization_card.html       | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/scipost_django/organizations/templates/organizations/_organization_card.html b/scipost_django/organizations/templates/organizations/_organization_card.html
index 001fb5e2e..4dcb204c9 100644
--- a/scipost_django/organizations/templates/organizations/_organization_card.html
+++ b/scipost_django/organizations/templates/organizations/_organization_card.html
@@ -269,7 +269,7 @@
 	  {% if not organization.has_pubfracs %}
 	    <p>PubFracs are not defined for this Organization, since it does not appear as author affiliation in any Publication.</p>
 	  {% else %}
-	    <table class="table caption-top">
+	    <table class="table caption-top mt-4">
 	      <caption>Based on PubFracs for {{ organization }}</caption>
 	      <thead class="table-light">
 		<tr>
@@ -377,11 +377,18 @@
 		{% endfor %}
 	      </tbody>
 	    </table>
+	    <details class="ms-2 mb-2">
+	      <summary>
+		Info on this table
+	      </summary>
+	      <p class="mt-1">This <strong>Expenditures (Organization-level)</strong> table compiles the expenditures by SciPost to publish all papers which are associated to this Organization, weighed by this Organization's PubFracs for these individual papers. The next columns detail the compensations (through Subsidies) obtained from this Organization, or from other (ally) Organizations on its behalf. Any negative balance hits SciPost's reserve budget.</p>
+	    </details>
+
 	  {% endif %}
 
 
 
-	  <table class="table caption-top">
+	  <table class="table caption-top mt-4">
 	    <caption>Undivided: totals for all this Organization's associated publications</caption>
 	    <thead class="table-light">
 	      <tr>
@@ -487,6 +494,12 @@
 	      {% endfor %}
 	    </tbody>
 	  </table>
+	  <details class="ms-2 mb-2">
+	    <summary>
+	      Info on this table
+	    </summary>
+	    <p class="mt-1">This <strong>Expenditures (Organization-level)</strong> table compiles the (total) expenditures by SciPost to publish all papers which are associated to this Organization. Compensations received from any Organization for these papers is summed up. This sum would equal the expenditures if all Organizations sponsored us according to their PubFrac share. Any uncompensated balance hits SciPost's reserve budget.</p>
+	  </details>
 	</div>
 
 
-- 
GitLab