Skip to content

Commit

Permalink
reduce lines in Cluster table on department page
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Jan 23, 2024
1 parent 38d2115 commit 1bbe0ca
Showing 1 changed file with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h3 class="d-inline"><i class="fas fa-users" aria-hidden="true"></i>Quarterly Cl
<div class="card-body">
<div class="table-responsive">
<div class="container mb-3 mt-3">
<table id="mydatatable" class="table table-striped table-bordered">
<table id="clustertable" class="table table-striped table-bordered">
<thead>
<tr>
<th scope="col">PI</th>
Expand All @@ -243,21 +243,9 @@ <h3 class="d-inline"><i class="fas fa-users" aria-hidden="true"></i>Quarterly Cl
</thead>
<tbody>
{% for pi, allocs in compute_pi_dict.items %}
<tr style="background-color:#C2C2C2" class="parent-project" id="{{ pi }}">
<td nowrap="nowrap" data-search="{{ pi.full_name }}" data-sort="{{ pi.full_name }}">
{{ pi.full_name }}
</td>
<td data-search="{% for a in allocs %}{{a.project.title}} {% endfor %}"></td>
<td data-search="{% for a in allocs %}{{a.resources.first.name}} {{a.path}} {% endfor %}"></td>
<td></td>
<td></td>
<td data-sort="{{ pi.compute_total_price }}">
${{ pi.compute_total_price|floatformat:2 }}
</td>
</tr>
{% for allocation in allocs %}
<tr style="background-color:#FFFFFF" class="child-allocation">
<td data-search="{{ pi.full_name }}" data-sort="{{ pi.full_name }}"></td>
<td data-search="{{ pi.full_name }}" data-sort="{{ pi.full_name }}">{{ pi.full_name }}</td>
<td data-search="{{allocation.project.title}}">
<a href="{% url 'project-detail' allocation.project.pk %}">
{{ allocation.project.title }}
Expand All @@ -273,7 +261,7 @@ <h3 class="d-inline"><i class="fas fa-users" aria-hidden="true"></i>Quarterly Cl
</td>
<td>{{ allocation.allocationuser_set.count }}</td>
<td>{{ allocation.size|floatformat:1 }}</td>
<!-- <td>${{ allocation.cost|floatformat:2 }}</td> -->
<!-- <td>${{ allocation.cost|floatformat:2 }}</td> -->
</tr>
{% endfor %}
{% endfor %}
Expand Down

0 comments on commit 1bbe0ca

Please sign in to comment.