Files
discourse-hledger/assets/javascripts/discourse/components/hledger-account-path.gjs
T
raucao 7872a1a0eb Turn @usernames into Discourse user mentions/links
No notifications are sent for appearing in a journal, but profile
popovers etc. all work like mentions anywhere else in a topic.
2026-09-27 13:50:17 +02:00

13 lines
367 B
Plaintext

import HledgerMention from "./hledger-mention";
const HledgerAccountPath = <template>
{{#each @segments as |segment index|}}{{#if index}}:{{/if}}{{#if
segment.username
}}<HledgerMention
@username={{segment.username}}
@text={{segment.text}}
/>{{else}}{{segment.text}}{{/if}}{{/each}}
</template>;
export default HledgerAccountPath;