Explorer

html-ui.event-page

description
(en) The page of an event /e/<hash> (definy_describe_event)
type
Fn(language: String, hash: String, response: @html-ui.response) -> @definy.service-io
expression
fn(language$990, hash$0, response$1) =>
  @html-ui.page(
    language: $990,
    title: @core.string-concat(
      left: @html-ui.text(language: $990, en: "Event ", ja: "イベント ", eo: "Evento "),
      right: @core.string-slice(value: $0, start: 0, end: 10)
    ),
    body: @html.concat(
      lists: [
        [
          @html.element(
            name: "nav",
            attributes: [],
            children: [
              @html.element(
                name: "a",
                attributes: [{name: "href", value: "/events"}],
                children: [@html.text(text: @html-ui.text(language: $990, en: "Events", ja: "イベント", eo: "Eventoj"))]
              )
            ]
          ),
          @html.element(
            name: "h1",
            attributes: [],
            children: [
              @html.text(text: @html-ui.text(language: $990, en: "Event ", ja: "イベント ", eo: "Evento ")),
              @html.element(name: "code", attributes: [], children: [@html.text(text: $0)])
            ]
          )
        ],
        @html-ui.error-text(response: $1),
        @html-ui.event-lines-html(language: $990, text: $1.text)
      ]
    )
  )
visibility
public
html-ui.event-page (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: 0ImomAGa4AGv8amQzj0exPU4v2xgeSHci4NEbbl58dk
content hash: pLS7w9_ZdGJMts1mBItVZsZF7tOTCqied4Byqi7Oajc