特定のユーザーにウェブサイトの上部(通知が表示される領域)に通知をレンダリングするプラグインを開発しています。私がオーバーライドしようとしているプラグインアウトレットは以下の通りです:
{{plugin-outlet name="top-notices" tagName="" args=(hash currentPath=router._router.currentPath)}}
コネクタの静的バージョンは動作確認できています。以下のファイルを作成しました:
plugins/discourse-user-throttle/assets/javascripts/discourse/templates/connectors/top-notices/throttle_info.hbs
<div class="row">
<div class="alert alert-info alert-too-few-topics">
この行はファイルとして機能しています。ただし、ユーザー名は表示されません
{{{user.username}}}
</div>
</div>
直面している問題は、{{{user.username}}} がユーザー名を表示しないことです。これをどのように実現すればよいでしょうか?