chore(jotts): add link for public notes
8c6ef813
1 file(s) · +3 −0
| 29 | 29 | <div class="note-actions"> |
|
| 30 | 30 | <a href="/notes/{{.Note.ShortID}}/edit">edit</a> |
|
| 31 | 31 | <button type="button" class="link-button" id="copy-md-btn" onclick="copyMarkdown()">copy</button> |
|
| 32 | + | {{if .Note.Public}} |
|
| 33 | + | <a class="link-button" href="/n/{{.Note.ShortID}}" target="_blank" rel="noreferrer">link</a> |
|
| 34 | + | {{end}} |
|
| 32 | 35 | <form method="POST" action="/notes/{{.Note.ShortID}}/delete" class="inline-form"> |
|
| 33 | 36 | <button type="submit" class="link-button" onclick="return confirm('delete this note?')">delete</button> |
|
| 34 | 37 | </form> |