about summary refs log tree commit diff
path: root/app/views/invites/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/invites/index.html.haml')
-rw-r--r--app/views/invites/index.html.haml19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/invites/index.html.haml b/app/views/invites/index.html.haml
new file mode 100644
index 000000000..f4c5047fa
--- /dev/null
+++ b/app/views/invites/index.html.haml
@@ -0,0 +1,19 @@
+- content_for :page_title do
+  = t('invites.title')
+
+- if policy(:invite).create?
+  %p= t('invites.prompt')
+
+  = render 'form'
+
+  %hr/
+
+%table.table
+  %thead
+    %tr
+      %th= t('invites.table.uses')
+      %th= t('invites.table.expires_at')
+      %th
+      %th
+  %tbody
+    = render @invites