SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 1525579b authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add link to children in Org detail, tab support history

parent a99cd4b0
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ $(document).ready(function($) { ...@@ -135,7 +135,7 @@ $(document).ready(function($) {
<div class="tab-pane pt-4" id="support-{{ org.id }}" role="tabpanel" aria-labelledby="support-{{ org.id }}-tab"> <div class="tab-pane pt-4" id="support-{{ org.id }}" role="tabpanel" aria-labelledby="support-{{ org.id }}-tab">
<h3>Support history</h3> <h3>Support history</h3>
{% if org.subsidy_set.all|length > 0 %} {% if org.subsidy_set.all|length > 0 or org.children.all|length > 0 %}
<p>List of the subsidies (in one form or another) which SciPost has received from this Organization. Click on a row to see more details.</p> <p>List of the subsidies (in one form or another) which SciPost has received from this Organization. Click on a row to see more details.</p>
<table class="table table-hover mb-5"> <table class="table table-hover mb-5">
<thead class="thead-default"> <thead class="thead-default">
...@@ -160,6 +160,15 @@ $(document).ready(function($) { ...@@ -160,6 +160,15 @@ $(document).ready(function($) {
</tr> </tr>
</tbody> </tbody>
</table> </table>
{% if org.children.all|length > 0 %}
<p>See subsidies obtained from related organizations
<ul>
{% for child in org.children.all %}
<li><a href="{{ child.get_absolute_url }}">{{ child }}</a></li>
{% endfor %}
</ul>
</p>
{% endif %}
{% else %} {% else %}
<p><strong>This Organization has <span class="text-danger">not yet</span> supported SciPost.</strong></p> <p><strong>This Organization has <span class="text-danger">not yet</span> supported SciPost.</strong></p>
{% endif %} {% endif %}
......
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