Added newe XML

This commit is contained in:
Simon Martens
2021-09-28 14:10:28 +02:00
parent 1283abd7e9
commit 53d4ef75ae
36 changed files with 1890 additions and 32812 deletions

View File

@@ -5,6 +5,7 @@
@using System.Threading;
@using System.Linq:
@using System.Xml.Linq;
@using System.IO;
@model HaLive.Pages.BriefeModel
@inject IReaderService readerService
@@ -24,7 +25,7 @@
var next = meta == lib.MetasByDate.Last() ? null : lib.MetasByDate.ItemRef(lib.MetasByDate.IndexOf(meta) + 1);
var prev = meta == lib.MetasByDate.First() ? null : lib.MetasByDate.ItemRef(lib.MetasByDate.IndexOf(meta) - 1);
var hands = lib.Hands.ContainsKey(id) ? lib.Hands[id] : null;
var filename = "" + "_" + meta.Autopsic + "_HamannBriefe.pdf"; // TODO
var filename = "HKB_" + meta.Autopsic + ".pdf";
// State
var currline = "-1";
@@ -402,6 +403,8 @@
<div class="col">
<div class="widehead letterbar">
<div class="flexcol">
@if (System.IO.File.Exists("./wwwroot/pdf/" + filename))
{
<div style="align-self: flex-end" class="printbutton">
<span class="label">
<a class="hlink" href="/pdf/@filename">
@@ -411,6 +414,19 @@
</a>
</span>
</div>
}
else
{
<div style="align-self: flex-end" class="printbutton">
<span class="label">
<a class="hlink disabled" href="#">
PDF&nbsp;<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" class="bi bi-arrow-down-circle" viewBox="0 0 14 18">
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v5.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V4.5z"/>
</svg>
</a>
</span>
</div>
}
<div class="lettercard flexrow">
<div class="nnumber letcount">
@meta.Autopsic