From feffd57f240438d107c1ed1c1772545611a97dee Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 2 Jan 2022 22:43:00 +0100 Subject: [PATCH] added support for #pageUrl into shared notes --- src/public/stylesheets/share.css | 9 +++++++++ src/views/share/page.ejs | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/public/stylesheets/share.css b/src/public/stylesheets/share.css index 9c2bcae20..1031eaa9f 100644 --- a/src/public/stylesheets/share.css +++ b/src/public/stylesheets/share.css @@ -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; diff --git a/src/views/share/page.ejs b/src/views/share/page.ejs index 0f1ccaa1b..ab488525d 100644 --- a/src/views/share/page.ejs +++ b/src/views/share/page.ejs @@ -36,6 +36,10 @@

<%= note.title %>

+ <% if (note.hasLabel("pageUrl")) { %> +
This note was originally clipped from "><%= note.getLabelValue("pageUrl") %>
+ <% } %> + <% if (note.type === 'book') { %> <% } else if (isEmpty) { %>

This note has no content.