forked from mirrors/bookwyrm
Show accepter in invite request view
This commit is contained in:
parent
14353f0de7
commit
b9bff31562
1 changed files with 10 additions and 1 deletions
|
@ -59,6 +59,8 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="field is-grouped">
|
<td class="field is-grouped">
|
||||||
|
{# no invite OR invite not yet used #}
|
||||||
|
{% if not req.invite.times_used %}
|
||||||
<form name="send-invite" method="post">
|
<form name="send-invite" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="invite-request" value="{{ req.id }}">
|
<input type="hidden" name="invite-request" value="{{ req.id }}">
|
||||||
|
@ -68,9 +70,16 @@
|
||||||
<button type="submit" class="button is-link is-light is-small">{% trans "Re-send invite" %}</button>
|
<button type="submit" class="button is-link is-light is-small">{% trans "Re-send invite" %}</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{# invite created but not used #}
|
||||||
{% if req.invite and not req.invite.times_used %}
|
{% if req.invite and not req.invite.times_used %}
|
||||||
{# <button class="button is-danger is-light is-small">{% trans "Revoke invite" %}</button> #}
|
{# <button class="button is-danger is-light is-small">{% trans "Revoke invite" %}</button> #}
|
||||||
|
{% elif req.invite %}
|
||||||
|
{# accepted #}
|
||||||
|
{% if req.invite.invitees.exists %}
|
||||||
|
<a href="{{ req.invite.invitees.first.local_path }}">@{{ req.invite.invitees.first.localname }}</a>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<form name="ignore-request" method="post" action="{% url 'settings-invite-requests-ignore' %}">
|
<form name="ignore-request" method="post" action="{% url 'settings-invite-requests-ignore' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
@ -78,7 +87,7 @@
|
||||||
{% if not req.ignored %}
|
{% if not req.ignored %}
|
||||||
<button type="submit" class="button is-danger is-light is-small">{% trans "Ignore" %}</button>
|
<button type="submit" class="button is-danger is-light is-small">{% trans "Ignore" %}</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
<button type="submit" class="button is-danger is-light is-small">{% trans "Un-gnore" %}</button>
|
<button type="submit" class="button is-danger is-light is-small">{% trans "Un-ignore" %}</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue