Explorer

html-ui.account-link

description
A link to the account page (/a/<account ID>) showing the name, or the first 10 characters of the ID if there is no name
type
Fn(account_id: String, name: String) -> @html.node
expression
fn(account_id$0, name$1) =>
  @html.element(
    name: "a",
    attributes: [{name: "href", value: @core.string-concat(left: "/a/", right: $0)}, {name: "title", value: $0}],
    children: [
      @html.text(
        text: match @core.equal(left: $1, right: "") {
          true =>
            @core.string-slice(value: $0, start: 0, end: 10),
          false =>
            $1
        }
      )
    ]
  )
visibility
public
html-ui.account-link (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: qXc7nTmh3Hpm2PT0VSC0kQWukQuK0i6m3zM4IeliPNg
content hash: THOVblVcVu3HJsgkryPhn8951LkfeQxlxI_Nxo01RZA