Add delete link

For ReadLaterByEmail/app#17
This commit is contained in:
Clement 2020-07-21 12:37:20 +02:00
parent 36c58d6c6e
commit db0b5f0953
1 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,8 @@ subject: "ReadLaterByEmail tokens"
LOGO: "{{ asset('images/logo.png') }}"
TOKEN_NAME: "{{ $token->token_name }}"
API_TOKEN: "{{ $token->api_token }}"
DELETE_URL: "{{ URL::temporarySignedRoute('delete', now()->addHour(), ['token' => $token->api_token, 'email' => $user->email]) }}"
DELETE: "{{ __('delete') }}"
---
<row>
@ -15,12 +17,15 @@ API_TOKEN: "{{ $token->api_token }}"
@foreach($tokens as $token)
<hr/>
<row>
<columns class="large-offset-1" large="3" small="12" valign="left">
<columns class="large-offset-1" large="2" small="12" valign="left">
{{{ TOKEN_NAME }}}
</columns>
<columns large="8" small="12" valign="left">
<columns large="7" small="12" valign="left">
{{{ API_TOKEN }}}
</columns>
<columns large="2" small="12" valign="right">
<a href="{{{ DELETE_URL }}}">{{{ DELETE }}}</a>
</columns>
</row>
@endforeach