mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 19:51:57 +08:00
added support for #pageUrl into shared notes
This commit is contained in:
parent
faf81ae056
commit
feffd57f24
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue