Fix logo sourcing, update privacy policy accordingly
This commit is contained in:
parent
af02bfd2ff
commit
dde18b5aad
|
@ -1,5 +1,8 @@
|
|||
@page
|
||||
@using global::c3stream.DataModels
|
||||
@using System.Net.Http
|
||||
@using System.Net
|
||||
@using System.IO
|
||||
@model InfoModel
|
||||
@{
|
||||
ViewData["Title"] = "Info";
|
||||
|
@ -51,12 +54,18 @@
|
|||
};
|
||||
}
|
||||
|
||||
@if (System.IO.File.Exists(logoPath)) {
|
||||
@if (!System.IO.File.Exists(logoPath)) {
|
||||
if (!Directory.Exists(System.IO.Path.Combine(c3stream.CachePath, conference.Acronym))) {
|
||||
Directory.CreateDirectory(System.IO.Path.Combine(c3stream.CachePath, conference.Acronym));
|
||||
}
|
||||
|
||||
using var httpClient = new HttpClient();
|
||||
await using var stream = httpClient.GetStreamAsync(conference.LogoUri).Result;
|
||||
await using var fileStream = new FileStream(logoPath, FileMode.CreateNew);
|
||||
await stream.CopyToAsync(fileStream);
|
||||
}
|
||||
|
||||
<img src="@(c3stream.CacheUrl + $"{conference.Acronym}/logo.png")" alt="Conference logo" style="max-height: 110px; float: right;"/>
|
||||
}
|
||||
else {
|
||||
<img src="@conference.LogoUri" alt="Conference logo" style="max-height: 110px; float: right;"/>
|
||||
}
|
||||
|
||||
@if (isWatched) {
|
||||
<h3 style="color: #95cb7a">@title - <i>@speakers</i></h3>
|
||||
|
|
|
@ -5,12 +5,11 @@
|
|||
}
|
||||
<h3>Privacy Policy</h3>
|
||||
<p style="text-align: justify">
|
||||
Last update: 2022-02-09 <br/><br/>
|
||||
Last update: 2022-02-10 <br/><br/>
|
||||
All data saved about you on this website is the watched status of talks you marked in association with your randomly generated bookmark UUID. <br/>
|
||||
No logs are kept, no trackers used. <br/>
|
||||
</p>
|
||||
<p style="text-align: justify">
|
||||
Keep in mind that you are forwarded to media.ccc.de when you watch a talk (except when using our mirror). <br/>
|
||||
Furthermore, when you open the info page for a talk, your IP address is shared with media.ccc.de, due to the fetched icon. <br/>
|
||||
You should therefore reference their privacy policy as well. <br/>
|
||||
</p>
|
Loading…
Reference in a new issue