From c756528d32b977484d675cc9f3b127890cd5f04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 10 Jan 2023 13:15:40 +0800 Subject: [PATCH] Allow to copy invitation URLs via button --- app/views/invitations/index.html.erb | 36 ++++++++++++++++------------ 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/app/views/invitations/index.html.erb b/app/views/invitations/index.html.erb index 7ca0699..a606b1c 100644 --- a/app/views/invitations/index.html.erb +++ b/app/views/invitations/index.html.erb @@ -3,23 +3,29 @@ <%= render MainSimpleComponent.new do %>
<% if @invitations_unused.any? %> -

+

Invite your friends to a Kosmos account by sharing an invitation URL with them:

- - - - - - - - <% @invitations_unused.each do |invitation| %> - - - - <% end %> - -
URL
<%= invitation_url(invitation.token) %>
+ <% else %>

You do not have any invitations to give away yet. We will notify you,