fn_b/resources/views/components/resource-history-link.blade.php

20 lines
1.1 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@if(\App\Services\ResourcePages::supports($oArticle->oCategory?->sSlug) && !($bEditorialPreview ?? false))
@once
@push('styles')
<link rel="stylesheet" href="/css/resource-history.css?v={{ filemtime(public_path('css/resource-history.css')) }}">
@endpush
@endonce
<div class="resource-history-link" role="group" aria-label="资源更新记录">
@unless($bResourceEntry ?? false)
<a class="resource-history-action" href="{{ url(\App\Services\ResourcePages::entryPath($oArticle->oCategory->sSlug)) }}" aria-label="查看最新资源({{ $oArticle->oCategory->sName }})">
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m13 3-8 11h6l-1 7 9-12h-7z"/></svg>
最新资源
</a>
@endunless
<a class="resource-history-action" href="{{ url(\App\Services\ResourcePages::historyPath($oArticle->oCategory->sSlug)) }}" aria-label="查看往期资源({{ $oArticle->oCategory->sName }})">
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M3 11a9 9 0 1 1 2.6 7.4M3 4v7h7M12 7v5l3 2"/></svg>
往期资源
</a>
</div>
@endif