feat: add video download link to wrapup HTML page
Some checks failed
CI / Check / Test (push) Failing after 41s
Some checks failed
CI / Check / Test (push) Failing after 41s
This commit is contained in:
@@ -437,4 +437,5 @@ pub struct WrapUpPageTemplate<'a> {
|
||||
pub genre_max: u32,
|
||||
pub rating_pcts: [f64; 5],
|
||||
pub genre_pcts: Vec<f64>,
|
||||
pub video_url: Option<String>,
|
||||
}
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
{% if report.total_watch_time_minutes > 0 %}
|
||||
<div class="wu-detail">{{ watch_time_display }} of watch time</div>
|
||||
{% endif %}
|
||||
{% if let Some(url) = video_url %}
|
||||
<a href="{{ url }}" class="wu-video-link" download>Download Video</a>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
<section class="wu-section">
|
||||
|
||||
Reference in New Issue
Block a user