# 헤더의 새 메시지 표시기가 있는 사용자 메뉴 메시지 글리프?

**URL:** https://meta.discourse.org/t/user-menu-messages-glyph-in-header-with-new-message-indicator/164494
**Category:** Support
**Created:** [9월 18, 2020, 8:04오후 UTC](https://meta.discourse.org/t/user-menu-messages-glyph-in-header-with-new-message-indicator/164494 "2020-09-18T20:04:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![paulrudy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrudy/32/259901_2.png) [@paulrudy](https://meta.discourse.org/u/paulrudy)
#### Post date: [9월 18, 2020, 8:04오후 UTC](https://meta.discourse.org/t/user-menu-messages-glyph-in-header-with-new-message-indicator/164494/1 "2020-09-18T20:04:38Z")

</div>

디스코URS 마법사 여러분, 안녕하세요.

가능하다면 다음 중 일부 또는 전부를 테마 내에서 구현하고 싶습니다. (아직 플러그인을 만드는 방법을 이해할 수준은 아닌 것 같습니다.)

1. 사용자 메뉴의 메시지 글리프를 헤더에 삽입하되, 최근 메시지 팝업까지 포함하여.
2. 이 헤더의 메시지 글리프에 새 메시지 표시기를 추가하고, 사용자 아바타에서는 제거.
3. 사용자 메뉴에서 메시지 글리프 제거.

헤더에 메시지 링크를 다음과 같이 넣을 수 있다는 것은 알고 있습니다.

```plaintext
<script type="text/discourse-plugin" version="0.8">
  const { iconNode } = require("discourse-common/lib/icon-library");
  api.decorateWidget('header-icons:before', helper => {
      return helper.h('li', [
          helper.h('a.icon', {
              href:'/my/messages',
              title: 'Messages'
          }, iconNode('envelope')),
      ]);
  });
</script>

```

하지만 팝업이 없습니다.

[유저 메뉴 js](https://github.com/discourse/discourse/blob/52672b9eabccb1184d85dc7f08062d5a7c18cb73/app/assets/javascripts/discourse/app/widgets/user-menu.js)에서 다음 코드를 찾았습니다:

```plaintext
 if (this.siteSettings.enable_personal_messages || this.currentUser.staff) {
      glyphs.push(this.messagesGlyph());
    }

```

하지만 이것이 테마 내에서 적용 가능한지, 그리고 어떻게 적용해야 하는지 알지 못합니다.

도움을 주시면 감사하겠습니다!

---

<div class="post-metadata">

### Author: ![Ralf\_Stockmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ralf_stockmann/32/505867_2.png) [@Ralf\_Stockmann](https://meta.discourse.org/u/Ralf_Stockmann)
#### Post date: [9월 15, 2021, 7:46오후 UTC](https://meta.discourse.org/t/user-menu-messages-glyph-in-header-with-new-message-indicator/164494/2 "2021-09-15T19:46:23Z")

</div>

이것은 우리 사내 인트라넷에서도 매우 유용할 것 같은데 - 관심 있는 분 계신가요?
