reading metadata in shared link RC

This commit is contained in:
Peter Papp
2020-08-25 12:36:21 +02:00
parent f3a2758bcc
commit af1228e363
17 changed files with 27 additions and 46 deletions

View File

@@ -52,4 +52,8 @@ return [
'col_amount' => 'Amount',
'total' => 'Total',
// OG Page
'user_sending' => ':name is sending you this file',
'protected_file' => 'This link is protected by password',
];

View File

@@ -54,6 +54,6 @@ return [
'total' => 'Total',
// OG Page
'user_sending' => '',
'protected_file' => '',
'user_sending' => ':name is sending you this file',
'protected_file' => 'This link is protected by password',
];

View File

@@ -52,4 +52,8 @@ return [
'col_amount' => 'Čiastka',
'total' => 'Spolu',
// OG Page
'user_sending' => ':name ti posiela súbor.',
'protected_file' => 'Tento link je chránený heslom',
];

View File

@@ -15,7 +15,6 @@
.error-message {
position: absolute;
left: 0;
top: 50px;
}
}
}

View File

@@ -7,23 +7,22 @@
<meta name="fragment" content="!">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ $metadata['user'] }} is sending you this file">
<meta name="description" content="{{ __('vuefilemanager.user_sending', ['name' => $metadata['user']]) }}">
{{--OG Public items--}}
<meta property="og:url" content="{{ $metadata['url'] }}">
<meta property="og:description" content="{{ $metadata['user'] }} is sending you this file">
<meta property="og:description" content="{{ __('vuefilemanager.user_sending', ['name' => $metadata['user']]) }}">
{{--Show protected og metadata--}}
@if($metadata['is_protected'])
<meta property="og:title" content="This file is protected by password">
<title>This file is protected by password</title>
<meta property="og:title" content="{{ __('vuefilemanager.protected_file') }}">
<title>{{ __('vuefilemanager.protected_file') }}</title>
@endif
{{--Show public og metadata--}}
@if(! $metadata['is_protected'])
@if($metadata['thumbnail'])
<meta property="og:type" content="image" />
<meta property="og:image" content="{{ $metadata['thumbnail'] }}">
@endif