zer.ooo-web/views/panel/invites.html.twig

41 lines
1.1 KiB
Twig
Raw Normal View History

2016-08-17 15:37:16 +00:00
{% extends "panel.html.twig" %}
2016-06-21 00:12:05 +00:00
{% block head %}
{{ parent() }}
<script src="/js/clipboard.min.js"></script>
2016-08-17 15:37:16 +00:00
<script src="/js/pages/invites.js"></script>
{% endblock %}
2016-08-17 15:37:16 +00:00
{% block panel_contents %}
{% if user.getActiveCertificates()|length < user.getMaxKeys() %}
<form class="invite-create" action="/panel/invites/create" method="post">
<button type="submit">create</button>
</form>
{% endif %}
<div class="title">
<h1>Invites</h1>
<div class="undertone">You used {{ used_invites }} from your {{ max_invites == -1 ? 'infinite' : max_invites }} invites</div>
2016-06-21 00:12:05 +00:00
</div>
2016-08-17 15:37:16 +00:00
<ul class="invites">
{% for invite in invites %}
<li>
<div class="text">
<kbd>{{ invite.getInvite() }}</kbd>
</div>
<div class="actions">
<span>
<a class="copy" data-clipboard-text="{{ invite.getInvite() }}">copy</a>
</span>
</div>
</li>
{% else %}
<li>
You don't have any invites
</li>
{% endfor %}
</ul>
{% endblock %}