Explorer

html-ui.accounts-page

description
(en) The account list page /accounts (definy_list_accounts)
type
Fn(language: String, response: @html-ui.response) -> @definy.service-io
expression
fn(language$990, response$0) =>
  @html-ui.page(
    language: $990,
    title: @html-ui.text(language: $990, en: "Accounts", ja: "アカウント", eo: "Kontoj"),
    body: @html.concat(
      lists: [
        [
          @html.element(
            name: "h1",
            attributes: [],
            children: [
              @html.text(text: @html-ui.text(language: $990, en: "Accounts", ja: "アカウント", eo: "Kontoj"))
            ]
          )
        ],
        @html-ui.error-text(response: $0),
        [
          @html.element(
            name: "div",
            attributes: [{name: "class", value: "history"}],
            children: @html.concat(
              lists: @core.list-map(
                T: String,
                U: List<@html.node>,
                f: fn(item$1) =>
                  @html-ui.account-line-html(language: $990, line: $1),
                xs: @core.string-split(text: $0.text, separator: "\n")
              )
            )
          ),
          @html-ui.time-script
        ]
      ]
    )
  )
visibility
public
html-ui.accounts-page (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: sZBVRYy3BGMqNkFlah731EoK6o3FgVOvxtaljMc4MNM
content hash: mrYp3rAUsRZlTFn1-aOrE86qzOfoDyPo6LNWiH1Yntk