appendix: 23 Code-Ausschnitte aus dem Houston-Repository
Pin nixpkgs to the revision used by itc.componentware: the channel version ships a latexminted that crashes on Python 3.14, which made every listing fail and sent latexmk into an endless error prompt. Also force nonstopmode/halt-on-error so a broken listing can never loop again.
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<tbody>
|
||||
@foreach (var file in Model.Files)
|
||||
{
|
||||
<tr class="document-row" id="@Documents.DocumentViewId(file.Id)">
|
||||
<td>
|
||||
@if (Documents.IsDownloadable(file.Name))
|
||||
{
|
||||
<div class="form-check mb-0">
|
||||
<input type="checkbox" name="selected" value="@file.Id"
|
||||
class="form-check-input js-document-select"
|
||||
aria-label="@file.Name.DisplayName auswählen"/>
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
<i class="doc-type-icon bx-sm @file.IconClass" title="@file.Type.DisplayName"></i>
|
||||
</td>
|
||||
<td>@file.Name.DisplayName</td>
|
||||
<td class="text-end">
|
||||
<div class="d-flex">
|
||||
@if (file.Name.IsPdf)
|
||||
{
|
||||
<button type="button"
|
||||
class="btn btn-icon btn-text-secondary rounded-pill js-document-preview"
|
||||
data-preview-url="@Model.DocumentPreviewUrl(file.Id)"
|
||||
data-document-name="@file.Name.DisplayName"
|
||||
title="@file.Name.DisplayName als Vorschau öffnen"
|
||||
aria-label="@file.Name.DisplayName als Vorschau öffnen">
|
||||
<i class="bx bx-show-alt"></i>
|
||||
</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="btn btn-icon rounded-pill invisible" aria-hidden="true">
|
||||
<i class="bx bx-show-alt"></i>
|
||||
</span>
|
||||
}
|
||||
<button type="button"
|
||||
class="btn btn-icon btn-text-secondary rounded-pill js-document-share"
|
||||
data-share-url="@Model.DocumentShareUrl(file.Id)"
|
||||
title="Link zu @file.Name.DisplayName kopieren"
|
||||
aria-label="Link zu @file.Name.DisplayName kopieren">
|
||||
<i class="bx bx-share-alt"></i>
|
||||
</button>
|
||||
@if (file.Name.IsLink)
|
||||
{
|
||||
<a class="btn btn-icon btn-text-secondary rounded-pill"
|
||||
asp-page="/Document/Download" asp-route-id="@file.Id"
|
||||
target="_blank" rel="noopener noreferrer"
|
||||
title="@file.Name.DisplayName in neuem Tab öffnen" aria-label="@file.Name.DisplayName in neuem Tab öffnen">
|
||||
<i class="bx bx-download"></i>
|
||||
</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a class="btn btn-icon btn-text-secondary rounded-pill"
|
||||
asp-page="/Document/Download" asp-route-id="@file.Id"
|
||||
title="@file.Name.DisplayName herunterladen" aria-label="@file.Name.DisplayName herunterladen">
|
||||
<i class="bx bx-download"></i>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
Reference in New Issue
Block a user