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

View File

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