# Shared-Edits Improvements

**URL:** <https://meta.discourse.org/t/shared-edits-improvements/232713>\
**Category:** UX\
**Tags:** shared-edits\
**Created:** [October 29, 2021, 2:37pm UTC](https://meta.discourse.org/t/shared-edits-improvements/232713 "2021-10-29T14:37:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [December 12, 2021, 8:34pm UTC](https://meta.discourse.org/t/shared-edits-improvements/232713/7 "2021-12-12T20:34:42Z")

</div>

You can add this to your theme `common > header` tab (or in `/common/header.html` in a remote component), and it will add a `shared-edits-post` class to shared-edit posts if the current user can edit them.

```xml
<script type="text/discourse-plugin" version="0.8">
  api.addPostClassesCallback((attrs) => {
    if (attrs.shared_edits_enabled && attrs.canEdit) return ["shared-edits-post"];
  });
</script>

```

then in CSS

```scss
.shared-edits-post {
  // do some work
}

```

---

_[View the full topic](https://meta.discourse.org/t/shared-edits-improvements/232713)._
