Explorer

html-ui.breadcrumb

description
The breadcrumb of the pages of a branch: Projects / the project (its page /p/<project> with every branch) / the branch
type
Fn(language: String, project: String, branch: String) -> @html.node
expression
fn(language$990, project$0, branch$1) =>
  @html.element(
    name: "nav",
    attributes: [{name: "class", value: "breadcrumb"}],
    children: [
      @html.element(
        name: "a",
        attributes: [{name: "href", value: "/"}],
        children: [
          @html.text(text: @html-ui.text(language: $990, en: "Projects", ja: "プロジェクト", eo: "Projektoj"))
        ]
      ),
      @html.text(text: " / "),
      @html.element(
        name: "a",
        attributes: [{name: "href", value: @core.string-concat(left: "/p/", right: $0)}],
        children: [@html.text(text: $0)]
      ),
      @html.text(text: " / "),
      @html.element(
        name: "a",
        attributes: [{name: "href", value: @core.string-join(items: ["/p/", $0, "/", $1], separator: "")}],
        children: [@html.text(text: $1)]
      )
    ]
  )
visibility
public
html-ui.breadcrumb (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: dtB1t14B5xZ93i7zuMWp2VgLKWE34PUgxUX0Oosp210
content hash: BIhia7Fxee0Q3yLNP9zh7sG4Tn-ipCjIo0URRIxTaVQ