Snootalogue/Pages/Documents/View.cshtml

11 lines
294 B
Text
Raw Normal View History

@page "{id}"
2020-09-17 14:14:50 +00:00
@model Snootalogue.Pages.Documents.ViewModel
@{
ViewData["Title"] = $"Viewing \"{Model.Document.Title}\"";
ViewData["SlimNavbar"] = true;
ViewData["NoMainPadding"] = true;
2020-09-20 04:05:18 +00:00
string path = $"/Content/{Model.Document.ID}.pdf";
2020-09-17 14:14:50 +00:00
}
2020-09-20 04:05:18 +00:00
<iframe id="document-viewer" src="@path"></iframe>