Explorer

html-ui.module-summary

As of snapshot n24w3u1b_F. See the latest

description
(en) The description and visibility line of the module page
type
Fn(language: String, response: @html-ui.response) -> String
expression
fn(language$990, response$0) =>
  let description$1 = @html-ui.json-text(value: $0.json, key: "description");
  @core.string-join(
    items: [
      "<p class=\"muted\">",
      match @core.equal(left: $1, right: "") {
        true =>
          @html-ui.text(language: $990, en: "No description", ja: "説明なし", eo: "Sen priskribo"),
        false =>
          @html-ui.escape(text: $1)
      },
      @html-ui.text(language: $990, en: " · ", ja: " · ", eo: " · "),
      match @core.equal(left: @html-ui.json-text(value: $0.json, key: "visibility"), right: "private") {
        true =>
          @html-ui.text(language: $990, en: "Private", ja: "非公開", eo: "Privata"),
        false =>
          @html-ui.text(language: $990, en: "Public", ja: "公開", eo: "Publika")
      },
      "</p>"
    ],
    separator: ""
  )
visibility
public
html-ui.module-summary (project html-ui, branch main, snapshot n24w3u1b_FraerzUjso4q2PsqDIWlFsgYD8ojO2L9GU)
id: qSTVOJhg9JxD26L_0aex_-w_1hurBVthyYBWm1hQx04
content hash: gfksd_rYP635S-fo9JugEDUwdwLCFl475Y8CWcGd8WE