Cleanups in invitation email

master
Daniel Berteaud 9 years ago
parent 21dc1a9e9b
commit 6d408452f8
  1. 18
      templates/default/invite.mail.ep

@ -1,7 +1,3 @@
<%
my $url = Mojo::URL->new($self->url_for('/')->to_abs)->scheme('https');
$url .= ($url =~ m/\/$/) ? '' : '/';
%>
<p> <p>
<%= l('YOU_ARE_INVITED_TO_A_MEETING') %> <%= l('YOU_ARE_INVITED_TO_A_MEETING') %>
<ul> <ul>
@ -20,13 +16,13 @@
<%= l('WHEN_YOU_ARE_READY') %> <%= l('WHEN_YOU_ARE_READY') %>
<center> <center>
<h1> <h1>
<% my $roomAccess = $room; <%
if ($joinPass eq 'yes') { my $link = Mojo::URL->new($self->url_for($room)->to_abs)->scheme('https');
$roomAccess .= '?token=' . $token; my $target = $link->clone;
} $target = ($joinPass eq 'yes') ? $target->query(token => $token) : $target;
%> %>
<a href="<%= $url . $roomAccess %>"> <a href="<%= $target %>">
<%= $url . $roomAccess %> <%= $link %>
</a> </a>
</h1> </h1>
</center> </center>
@ -42,7 +38,7 @@
<p> <p>
<%= l('IF_YOU_CANNOT_JOIN') %> <%= l('IF_YOU_CANNOT_JOIN') %>
<h3> <h3>
<a style="color:red" href="<%= $url . 'invitation/' . $token %>"> <a style="color:red" href="<%= Mojo::URL->new($self->url_for('/invitation/') . $token)->to_abs)->scheme('https') %>">
<%= l('YOU_CAN_NOTIFY_THE_ORGANIZER') %> <%= l('YOU_CAN_NOTIFY_THE_ORGANIZER') %>
</a> </a>
</h3> </h3>

Loading…
Cancel
Save