about summary refs log tree commit diff
path: root/app/views/invites/index.html.haml
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-11-27 11:29:04 -0600
committerDavid Yip <yipdw@member.fsf.org>2017-11-27 11:29:04 -0600
commite77c3996a513a45e5cad368b0053459f303c60cb (patch)
tree923411336e4207bb95c17c90c79f19dabb4d62e2 /app/views/invites/index.html.haml
parent5de42665d77431def632ca8fb8665082027c60a5 (diff)
parent1c5b0e333464d8da3de73e4886502c816cb8173e (diff)
Merge remote-tracking branch 'origin/master' into gs-master
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