Files
discourse-hledger/assets/javascripts/discourse/components/hledger-account-cell.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

22 lines
586 B
Plaintext

import dConcatClass from "discourse/ui-kit/helpers/d-concat-class";
import { depthClass } from "../lib/hledger-report";
import HledgerMention from "./hledger-mention";
const HledgerAccountCell = <template>
<td
class={{dConcatClass
"hledger-dashboard__account"
(depthClass @row.depth)
(if @boldRoot "--root")
}}
title={{@row.account}}
>
{{#if @row.mention}}<HledgerMention
@username={{@row.mention.username}}
@text={{@row.mention.text}}
/>{{else}}{{@row.label}}{{/if}}
</td>
</template>;
export default HledgerAccountCell;