move into sonardesk
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
@extends('sonardesk.layout')
|
||||
@section('title','Downloads & Release Notes')
|
||||
@section('content')
|
||||
<section class="sd-hero" style="padding-bottom:24px"><span class="sd-kicker">SonarDesk / Distribution</span><h1>Downloads <span style="color:var(--gold)">& releases.</span></h1><p class="sd-lead">Installers and published release history, collected in one place. Review details before downloading.</p></section>
|
||||
@if($latest)
|
||||
<section class="sd-section"><div class="sd-section-head"><div><span class="sd-kicker">Latest stable release</span><h2>SonarDesk {{ $latest->version }}</h2><p>{{ \Illuminate\Support\Str::limit(trim(strip_tags($latest->release_notes ?? 'Native SonarQube monitoring for macOS.')), 210) }}</p></div><span class="sd-badge">Stable</span></div><div class="sd-actions"><a class="sd-button" href="{{ route('sonardesk.releases.download',$latest) }}">Download SonarDesk →</a><a class="sd-button secondary" href="{{ route('sonardesk.releases.show',$latest) }}">Release notes & requirements</a></div></section>
|
||||
@endif
|
||||
<section class="sd-section"><div class="sd-section-head"><div><span class="sd-kicker">Product library</span><h2>Available downloads</h2><p>Published products grouped together, with concise descriptions and direct access to details.</p></div></div>
|
||||
@if($products->isNotEmpty())<div class="sd-list">@foreach($products as $product)<article class="sd-row"><div><span class="sd-badge">{{ $product->platform ?: 'Software' }}</span><h3 style="margin-top:10px">{{ $product->name }} <span class="sd-meta">{{ $product->version }}</span></h3><p>{{ \Illuminate\Support\Str::limit(trim(strip_tags($product->description ?? '')), 160) }}</p></div><div class="sd-row-actions"><a class="sd-button secondary" href="{{ route('sonardesk.products.show',$product) }}">Details</a><a class="sd-button" href="{{ route('sonardesk.products.download',$product) }}">Download ↓</a></div></article>@endforeach</div>
|
||||
@else<div class="sd-empty">No additional products have been published yet.</div>@endif
|
||||
</section>
|
||||
<section class="sd-section"><div class="sd-section-head"><div><span class="sd-kicker">Version history</span><h2>Release notes</h2><p>Browse changes and download previous published builds.</p></div></div><div class="sd-list">@forelse($releases as $release)<article class="sd-row"><div><h3>SonarDesk {{ $release->version }} <span class="sd-badge">{{ ucfirst($release->channel) }}</span></h3><p>{{ \Illuminate\Support\Str::limit(trim(strip_tags($release->release_notes ?? 'Release notes available on the details page.')), 160) }}</p><span class="sd-meta">{{ $release->published_at?->format('j M Y') }}</span></div><div class="sd-row-actions"><a class="sd-button secondary" href="{{ route('sonardesk.releases.show',$release) }}">Full notes</a><a class="sd-button" href="{{ route('sonardesk.releases.download',$release) }}">Download ↓</a></div></article>@empty<div class="sd-empty">No releases have been published yet.</div>@endforelse</div><div style="margin-top:24px">{{ $releases->links() }}</div></section>
|
||||
@endsection
|
||||
@section('content')<section class="sd-pagehead"><div class="sd-container"><span class="sd-eyebrow">Software distribution</span><h1>Downloads & release notes</h1><p>All published applications in one place. Download current installers, view product details and read complete release notes.</p></div></section><section class="sd-section"><div class="sd-container"><span class="sd-eyebrow">Current downloads</span><h2>Available software</h2><div class="sd-grid">
|
||||
@if($latest)<article class="sd-card"><span class="sd-eyebrow">SonarDesk · macOS</span><h3>SonarDesk</h3><p class="sd-meta">Version {{ $latest->version }} @if($latest->published_at) · {{ $latest->published_at->format('j M Y') }} @endif</p><p>{{ \Illuminate\Support\Str::limit(trim(preg_replace('/\s+/', ' ', strip_tags(\Illuminate\Support\Str::markdown($latest->release_notes ?: 'Native SonarQube project monitoring for macOS.', ['html_input'=>'strip','allow_unsafe_links'=>false])))), 155) }}</p><div class="sd-card-actions"><a class="sd-btn sd-btn-dark" href="{{ route('sonardesk.latest') }}">Download ↓</a><a class="sd-textlink" href="{{ route('sonardesk.releases.show',$latest) }}">Details & notes →</a></div></article>@endif
|
||||
@foreach($products as $product)<article class="sd-card"><span class="sd-eyebrow">{{ $product->platform ?: 'Software' }}</span><h3>{{ $product->name }}</h3><p class="sd-meta">{{ $product->version ? 'Version '.$product->version : 'Current release' }}</p><p>{{ \Illuminate\Support\Str::limit(trim(preg_replace('/\s+/', ' ', strip_tags(\Illuminate\Support\Str::markdown($product->description ?: 'Published software download.', ['html_input'=>'strip','allow_unsafe_links'=>false])))), 155) }}</p><div class="sd-card-actions"><a class="sd-btn sd-btn-dark" href="{{ route('sonardesk.products.download',$product) }}">Download ↓</a><a class="sd-textlink" href="{{ route('sonardesk.products.show',$product) }}">Product details →</a></div></article>@endforeach
|
||||
</div>@if(!$latest && $products->isEmpty())<p class="sd-note">No published installers are available yet. Downloads appear automatically when a product or release is published in the distribution administration.</p>@endif</div></section>
|
||||
<section class="sd-section sd-section-alt"><div class="sd-container"><span class="sd-eyebrow">Release archive</span><h2>SonarDesk release history</h2><p class="sd-intro">Read a summary here or open the full release page for notes, requirements and the installer.</p><div class="sd-list">@forelse($releases as $release)<article class="sd-row"><div><strong>SonarDesk {{ $release->version }}</strong><p>Build {{ $release->build_number }} · {{ ucfirst($release->channel) }} @if($release->published_at) · {{ $release->published_at->format('j M Y') }} @endif</p><p>{{ \Illuminate\Support\Str::limit(trim(preg_replace('/\s+/', ' ', strip_tags(\Illuminate\Support\Str::markdown($release->release_notes ?: 'Release information available on the details page.', ['html_input'=>'strip','allow_unsafe_links'=>false])))), 160) }}</p></div><div class="sd-row-actions"><a href="{{ route('sonardesk.releases.show',$release) }}">Release details →</a><a href="{{ route('sonardesk.releases.download',$release) }}">Download ↓</a></div></article>@empty<p>No published releases yet.</p>@endforelse</div><div class="sd-pagination">{{ $releases->links() }}</div></div></section>@endsection
|
||||
|
||||
Reference in New Issue
Block a user