Merge pull request #35903 from iamejaaz/sidebar-timeline
feat: bring back sidebar timeline
This commit is contained in:
commit
d02b02bb88
3 changed files with 31 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue