added support for #pageUrl into shared notes

This commit is contained in:
zadam 2022-01-02 22:43:00 +01:00
parent faf81ae056
commit feffd57f24
2 changed files with 13 additions and 0 deletions

View file

@ -117,6 +117,15 @@ iframe.pdf-view {
margin-right: 20px;
}
#noteClippedFrom {
padding: 10px 0 10px 0;
margin: 20px 0 20px 0;
color: #666;
border: 1px solid #ddd;
border-left: 0;
border-right: 0;
}
#toggleMenuButton::after {
position: relative;
top: -2px;

View file

@ -36,6 +36,10 @@
<h1 id="title"><%= note.title %></h1>
<% if (note.hasLabel("pageUrl")) { %>
<div id="noteClippedFrom">This note was originally clipped from <a href="<%= note.getLabelValue("pageUrl") %>"><%= note.getLabelValue("pageUrl") %></a></div>
<% } %>
<% if (note.type === 'book') { %>
<% } else if (isEmpty) { %>
<p>This note has no content.</p>