diff options
Diffstat (limited to 'app/views/admin/invites/index.html.haml')
-rw-r--r-- | app/views/admin/invites/index.html.haml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/views/admin/invites/index.html.haml b/app/views/admin/invites/index.html.haml new file mode 100644 index 000000000..944a60471 --- /dev/null +++ b/app/views/admin/invites/index.html.haml @@ -0,0 +1,30 @@ +- content_for :page_title do + = t('admin.invites.title') + +.filters + .filter-subset + %strong= t('admin.invites.filter.title') + %ul + %li= filter_link_to t('admin.invites.filter.all'), available: nil, expired: nil + %li= filter_link_to t('admin.invites.filter.available'), available: 1, expired: nil + %li= filter_link_to t('admin.invites.filter.expired'), available: nil, expired: 1 + +- if policy(:invite).create? + %p= t('invites.prompt') + + = render 'invites/form' + + %hr/ + +%table.table + %thead + %tr + %th + %th= t('invites.table.uses') + %th= t('invites.table.expires_at') + %th + %th + %tbody + = render @invites + += paginate @invites |