<commit_before>﻿@model ILK_Protokoll.Models.Document

@{
	string iconname = Model.LatestRevision.Extension ?? "default";
	if (!((HashSet<string>)ViewBag.KnownExtensions).Contains(iconname))
	{
		iconname = "default";
	}

	var fileurl = new MvcHtmlString(Url.Action("DownloadNewest", "Attachments", new {id = Model.GUID}));
}
<tr id="attachment_@Model.ID">
	<td>
		<a href="@fileurl">
			<img src="~/img/fileicons/@(iconname).png" height="32" />
		</a>
	</td>
	<td id="attachmentName_@Model.ID">
		@{
			Html.RenderPartial("_NameDisplay", Tuple.Create(fileurl, Model.DisplayName));
		}
	</td>
	<td>@Html.DisplayFor(model => model.LatestRevision.FileSize)</td>
	<td>@Model.LatestRevision.Uploader.LongName</td>
	<td>@Html.DisplayFor(model => model.Created)</td>
	<td class="actions">
		<a data-ajax="true" data-ajax-method="POST" data-ajax-mode="replace" data-ajax-update="#attachmentName_@Model.ID" href="@Url.Action("_BeginEdit", new {documentID = Model.ID})"><span class="glyphicon glyphicon-edit" title="Name bearbeiten"></span></a>
		&nbsp;
		<a href="@Url.Action("Details", "Attachments", new {id = Model.ID})">
			<span class="glyphicon glyphicon-new-window" title="Detailseite aufrufen"></span>
		</a>
		&nbsp;
		<a data-ajax="true" data-ajax-method="POST" data-ajax-success="removeAttachment('#attachment_@Model.ID');"
		   href="@Url.Action("_Delete", new {documentID = Model.ID})">
			<span class="glyphicon glyphicon-remove" title="Datei löschen"></span>
		</a>
	</td>
</tr><commit_msg>Design-Fix: Nerviger Strich<commit_after>﻿@model ILK_Protokoll.Models.Document

@{
	string iconname = Model.LatestRevision.Extension ?? "default";
	if (!((HashSet<string>)ViewBag.KnownExtensions).Contains(iconname))
	{
		iconname = "default";
	}

	var fileurl = new MvcHtmlString(Url.Action("DownloadNewest", "Attachments", new {id = Model.GUID}));
}
<tr id="attachment_@Model.ID">
	<td>
		<a href="@fileurl">
			<img src="~/img/fileicons/@(iconname).png" height="32" />
		</a>
	</td>
	<td id="attachmentName_@Model.ID">
		@{
			Html.RenderPartial("_NameDisplay", Tuple.Create(fileurl, Model.DisplayName));
		}
	</td>
	<td>@Html.DisplayFor(model => model.LatestRevision.FileSize)</td>
	<td>@Model.LatestRevision.Uploader.LongName</td>
	<td>@Html.DisplayFor(model => model.Created)</td>
	<td class="actions">
		<a data-ajax="true" data-ajax-method="POST" data-ajax-mode="replace" data-ajax-update="#attachmentName_@Model.ID" href="@Url.Action("_BeginEdit", new {documentID = Model.ID})"><span class="glyphicon glyphicon-edit" title="Name bearbeiten"></span></a>
		&nbsp;
		<a href="@Url.Action("Details", "Attachments", new {id = Model.ID})"><span class="glyphicon glyphicon-new-window" title="Detailseite aufrufen"></span></a>
		&nbsp;
		<a data-ajax="true" data-ajax-method="POST" data-ajax-success="removeAttachment('#attachment_@Model.ID');"
		   href="@Url.Action("_Delete", new {documentID = Model.ID})">
			<span class="glyphicon glyphicon-remove" title="Datei löschen"></span>
		</a>
	</td>
</tr>
{'fraction_non_alphanumeric': 0.20540180060020008, 'fraction_numerical': 0.001333777925975325, 'mean_word_length': 5.83371298405467, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3866606', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1069, 'n_words': 167}