Skip to content

Commit

Permalink
Add membership count and index to users on project page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Powers committed Jun 10, 2024
1 parent e2cf481 commit 72ac1ea
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions projects/templates/projects/view_project.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,24 @@ <h3>Project Members</h3>
{% endif %}

<br>

<h4>{{ users | length }} users{% if invitations %}, {{ invitations | length }} pending invitations{% endif %}{% if join_requests %}, {{ join_requests | length }} requests{% endif %}</h4>

<br>

{% for u in users %}
<div class="panel panel-default" style="background-color: transparent">
<div class="panel-heading" style="background-color: #d9edf7;">
<div class="row" align="center">
<div class="col-xs-4 col-sm-4">
<div class="col-xs-1 col-sm-1">#{{ forloop.counter }}</div>
<div class="col-xs-3 col-sm-3">
{{ u.username }}
</div>
<div class="col-xs-4 col-sm-4">
{{ u.first_name }}, {{ u.last_name }}
<div class="col-xs-3 col-sm-3">
{{ u.username }}
</div>
<div class="col-xs-2 col-sm-2">
<div class="col-xs-3 col-sm-3">
{{ u.first_name }}, {{ u.last_name }}
</div>
<div class="col-xs-2 col-sm-2">
{% if u.username == request.user.username or can_manage_project_membership %}
Expand Down

0 comments on commit 72ac1ea

Please sign in to comment.