forked from nm3clol/nm3clol-express-app
feat: Embed PDF documents on the webpages which describe them.
This commit is contained in:
parent
03d2cfa816
commit
6fabbf4fe8
|
@ -23,15 +23,36 @@
|
|||
<h1 class="title"><%= h.readmeFm(directory).title %></h1>
|
||||
<p>
|
||||
<small>
|
||||
<%if (typeof h.readmeFm(directory).docDate !== 'undefined') { %><b>Document Date:</b> <%= h.moment(h.readmeFm(directory).docDate).format('MMMM D, YYYY') %><% } %>
|
||||
<%if (typeof h.readmeFm(directory).docDate !== 'undefined') { %>
|
||||
<b>Document Date:</b> <%= h.moment(h.readmeFm(directory).docDate).format('MMMM D, YYYY') %>
|
||||
<% } %>
|
||||
<%if (typeof h.readmeFm(directory).file !== 'undefined') { %>
|
||||
<b>Attached Document:</b> <a href="<%- encodeURI(h.readmeFm(directory).file) %>"><%- h.readmeFm(directory).file %></a>
|
||||
<% } %>
|
||||
</small>
|
||||
</p>
|
||||
<% } %>
|
||||
<%- h.printReadme(directory) %>
|
||||
<% if (typeof h.readmeFm(directory).file !== 'undefined') { %>
|
||||
<iframe src="<%- encodeURI(h.readmeFm(directory).file) %>" style="width: 100%; height: 90vh;"></iframe>
|
||||
<% } else { %>
|
||||
<%- h.printReadme(directory) %>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg" style="max-height:65vh;overflow-y:scroll">
|
||||
<div class="col-lg-12 p-3 p-lg-5 pt-lg-3">
|
||||
<h2 class="title">OCR Text Scan (approximately)</h1>
|
||||
<p>
|
||||
This text scan may contain automatically generated text as generated using Apache Tika
|
||||
and Tesseract. It may not be correct. No effort has been made to correct any of these scans
|
||||
(so far). These OCR scans are also used in the site's Search feature. Please review the
|
||||
<a href="/search-policy" target="_blank">Search Policy</a> for details about the site features.
|
||||
</p>
|
||||
<pre style="white-space:pre-wrap;overflow-wrap:anywhere"><%- h.printReadme(directory) %></pre>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
|
||||
<ul id="files" class="list-group shadow-lg">
|
||||
<% files.forEach(function(value, index) { %>
|
||||
<li class="list-group-item list-group-item-action flex-column align-items-start">
|
||||
|
|
Loading…
Reference in New Issue
Block a user