Fix: Usernotes no longer actually work.
This commit is contained in:
parent
583f4131dc
commit
127aed8dd0
3 changed files with 12 additions and 6 deletions
|
@ -217,15 +217,11 @@ a.visited,
|
|||
|
||||
.usernote-link {
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
text-decoration: underline;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.usernote-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.modal__overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
|
|
@ -542,6 +542,16 @@ class User(Base):
|
|||
|
||||
return data
|
||||
|
||||
@lazy
|
||||
def json_notes(self, v):
|
||||
data = {'username': self.username,
|
||||
'url': self.url,
|
||||
'id': self.id,
|
||||
'notes': [x.json() for x in self.notes]
|
||||
}
|
||||
|
||||
return data
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def json_raw(self):
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
<span
|
||||
class="usernote-link"
|
||||
data-micromodal-trigger="modal-1"
|
||||
onclick='fillnote( {{p.author.json_popover(v) | tojson}}, {{p.id}}, null )'>_U_</span>
|
||||
onclick='fillnote( {{p.author.json_notes(v) | tojson}}, {{p.id}}, null )'>U</span>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue