mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-10 16:25:47 +00:00

feat: rename ?s to ?_from to match podcastindex recommendation feat: adust map height feat: display pie chart on 1 column for small and medium screens feat: handle empty rss user agent fix: correct bug when importing episode with empty image fix: add service to FakePodcastsAnalyticsSeeder, resize pie charts so that all lines fit fix: set page title to ->title when it exists fix: replace %20 with + closes #37
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?= $this->extend('admin/_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= $podcast->title ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= $podcast->title ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<div class="lg:divide-x lg:grid lg:grid-cols-2">
|
|
<div class="mb-12 mr-6 text-center">
|
|
<h2><?= lang('Charts.by_country_weekly') ?></h2>
|
|
<div class="chart-pie" id="by-country-pie" data-chart-type="pie-chart" data-chart-url="<?= route_to(
|
|
'analytics-data',
|
|
$podcast->id,
|
|
'PodcastByCountry',
|
|
'Weekly'
|
|
) ?>"></div>
|
|
</div>
|
|
|
|
<div class="mb-12 mr-6 text-center">
|
|
<h2><?= lang('Charts.by_country_yearly') ?></h2>
|
|
<div class="chart-pie" id="by-country-by-year-pie" data-chart-type="pie-chart" data-chart-url="<?= route_to(
|
|
'analytics-data',
|
|
$podcast->id,
|
|
'PodcastByCountry',
|
|
'Yearly'
|
|
) ?>"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-12 mr-6 text-center">
|
|
<h2><?= lang('Charts.podcast_by_region') ?></h2>
|
|
<div class="chart-map" id="by-region-map" data-chart-type="map-chart" data-chart-url="<?= route_to(
|
|
'analytics-full-data',
|
|
$podcast->id,
|
|
'PodcastByRegion'
|
|
) ?>"></div>
|
|
</div>
|
|
|
|
|
|
<script src="/assets/charts.js" type="module"></script>
|
|
<?= $this->endSection() ?>
|