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 {
|
.usernote-link {
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
text-decoration: none;
|
text-decoration: underline;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.usernote-link:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal__overlay {
|
.modal__overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
|
@ -542,6 +542,16 @@ class User(Base):
|
||||||
|
|
||||||
return data
|
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
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def json_raw(self):
|
def json_raw(self):
|
||||||
|
|
|
@ -189,7 +189,7 @@
|
||||||
<span
|
<span
|
||||||
class="usernote-link"
|
class="usernote-link"
|
||||||
data-micromodal-trigger="modal-1"
|
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 %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue