added a conditional to limit only 5 rows to display

This commit is contained in:
Beverly Nguyen
2024-03-15 10:33:39 -07:00
parent a05e09d345
commit bc71549d12

View File

@@ -57,6 +57,7 @@
</thead> </thead>
<tbody> <tbody>
{% for item in recipients.displayed_rows %} {% for item in recipients.displayed_rows %}
{% if loop.index <= 5 %}
<tr class="table-row"> <tr class="table-row">
{% for column in recipients.column_headers %} {% for column in recipients.column_headers %}
<td class="table-field-left-aligned"> <td class="table-field-left-aligned">
@@ -86,6 +87,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</tr> </tr>
{% endif %}
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>