mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
share url
This commit is contained in:
@@ -642,5 +642,7 @@
|
|||||||
"has": "hat",
|
"has": "hat",
|
||||||
"logins": "",
|
"logins": "",
|
||||||
"points": "Punkte",
|
"points": "Punkte",
|
||||||
"Submit new book case": "Bücherschrank einreichen"
|
"Submit new book case": "Bücherschrank einreichen",
|
||||||
|
"Share url copied!": "Link kopiert!",
|
||||||
|
"Share link": "Link zum Teilen"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -638,5 +638,7 @@
|
|||||||
"Submit new book case": "",
|
"Submit new book case": "",
|
||||||
"Telegram-Link": "",
|
"Telegram-Link": "",
|
||||||
"Website": "",
|
"Website": "",
|
||||||
"Twitter Username": ""
|
"Twitter Username": "",
|
||||||
|
"Share url copied!": "",
|
||||||
|
"Share link": ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,30 @@
|
|||||||
<div>
|
<div>
|
||||||
@if(str($row->value)->contains('http'))
|
@if(str($row->value)->contains('http'))
|
||||||
<x-button amber :href="$row->value" target="_blank">
|
<x-button xs amber :href="$row->value" target="_blank">
|
||||||
<i class="fa fa-thin fa-book-open mr-2"></i>
|
<i class="fa fa-thin fa-book-open mr-2"></i>
|
||||||
{{ __('Open') }}
|
{{ __('Open') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
@endif
|
@endif
|
||||||
@if($row->type === 'downloadable_file')
|
@if($row->type === 'downloadable_file')
|
||||||
<x-button amber :href="$row->getFirstMediaUrl('single_file')" target="_blank">
|
<x-button xs amber :href="$row->getFirstMediaUrl('single_file')" target="_blank">
|
||||||
<i class="fa fa-thin fa-download mr-2"></i>
|
<i class="fa fa-thin fa-download mr-2"></i>
|
||||||
{{ __('Download') }}
|
{{ __('Download') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
@endif
|
@endif
|
||||||
@if($row->type === 'podcast_episode')
|
@if($row->type === 'podcast_episode')
|
||||||
<x-button amber :href="$row->episode->data['enclosureUrl']" target="_blank">
|
<x-button xs amber :href="$row->episode->data['enclosureUrl']" target="_blank">
|
||||||
<i class="fa fa-thin fa-headphones mr-2"></i>
|
<i class="fa fa-thin fa-headphones mr-2"></i>
|
||||||
{{ __('Listen') }}
|
{{ __('Listen') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
<x-button
|
||||||
|
x-data="{
|
||||||
|
textToCopy: '{{ url()->route('library.table.libraryItems', ['country' => 'de', 'table' => ['filters' => ['id' => $row->id]]]) }}',
|
||||||
|
}"
|
||||||
|
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Share url copied!') }}',icon:'success'});"
|
||||||
|
xs black>
|
||||||
|
<i class="fa fa-thin fa-copy mr-2"></i>
|
||||||
|
{{ __('Share link') }}
|
||||||
|
</x-button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user