Explorer

html-ui.branch-status-badge

description
A small badge of a branch status name after a space (class st st-<status>). Empty for '' (main has no status)
type
Fn(language: String, status: String) -> List<@html.node>
expression
fn(language$990, status$0) =>
  match @core.equal(left: $0, right: "") {
    true =>
      [],
    false =>
      [
        @html.text(text: " "),
        @html.element(
          name: "span",
          attributes: [{name: "class", value: @core.string-concat(left: "st st-", right: $0)}],
          children: [@html.text(text: @html-ui.branch-status-label(language: $990, status: $0))]
        )
      ]
  }
visibility
public
html-ui.branch-status-badge (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: xGVyXQ5Y3kwkBgTgnVVpEoR7wBikbR3AUV0mXG5QluI
content hash: O9xWhOVUQqsViveo_EmWJHqCjvosXyDgmsC5fFXrHF4