Merge pull request #35903 from iamejaaz/sidebar-timeline

feat: bring back sidebar timeline
This commit is contained in:
Ejaaz Khan 2026-01-13 15:37:04 +05:30 committed by GitHub
commit d02b02bb88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 2 deletions

View file

@ -155,7 +155,28 @@ frappe.ui.form.Sidebar = class {
}
refresh_creation_modified() {
// remove redundant (present in the activity timeline) creation/modified info
this.sidebar
.find(".modified-by")
.html(
get_user_message(
this.frm.doc.modified_by,
__("Last Edited by You", null),
__("Last Edited by {0}", [get_user_link(this.frm.doc.modified_by)])
) +
" <br> " +
comment_when(this.frm.doc.modified)
);
this.sidebar
.find(".created-by")
.html(
get_user_message(
this.frm.doc.owner,
__("Created By You", null),
__("Created By {0}", [get_user_link(this.frm.doc.owner)])
) +
" <br> " +
comment_when(this.frm.doc.creation)
);
}
show_auto_repeat_status() {

View file

@ -158,9 +158,9 @@
</div>
<div class="sidebar-section text-muted border-top pt-3">
<ul class="list-unstyled sidebar-menu text-muted">
<li class="pageview-count"></li>
<li class="modified-by"></li>
<li class="created-by"></li>
<li class="pageview-count"></li>
</ul>
</div>

View file

@ -28,6 +28,14 @@
color: var(--text-light);
}
}
.modified-by,
.created-by {
.frappe-timestamp {
color: var(--text-light);
margin-top: 5px;
display: block;
}
}
}
.form-tags {