Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Jan 14, 2025
1 parent b16458b commit 25742d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 10 additions & 1 deletion usersec/templates/usersec/hpcgroupinvitation_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

{% block content %}

{% if object.status == "REJECTED" %}

<h2 class="mt-4">
You;ve rejected your invitation to join group
<strong>{{ object.hpcusercreaterequest.group.name }}</strong>.
</h2>

{% else %}

<h2 class="mt-4">
You've been invited to the BIH cluster
</h2>
Expand Down Expand Up @@ -48,7 +57,7 @@ <h4 class="mt-4">{{ obj.title }}</h4>
<i class="iconify" data-icon="mdi:cancel"></i>
Reject
</a>

{% endif %}
{% endblock content %}

{% block inline_javascript %}
Expand Down
7 changes: 1 addition & 6 deletions usersec/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,12 +1871,7 @@ def post(self, request, *args, **kwargs):
if settings.SEND_EMAIL:
send_notification_manager_user_decided_invitation(obj)

return HttpResponseRedirect(
reverse(
"usersec:hpcgroupinvitation-detail",
kwargs={"hpcgroupinvitation": obj.uuid},
)
)
return HttpResponseRedirect(reverse("home"))


class HpcProjectInvitationAcceptView(HpcPermissionMixin, SingleObjectMixin, View):
Expand Down

0 comments on commit 25742d3

Please sign in to comment.