Explorer

html-ui.events-page

description
(en) The event timeline page /events?type=&offset= (definy_list_events, 50 events at a time)
type
Fn(language: String, offset: Number, event_type: String, response: @html-ui.response) -> @definy.service-io
expression
fn(language$990, offset$0, event_type$1, response$2) =>
  @html-ui.page(
    language: $990,
    title: @html-ui.text(language: $990, en: "Events", ja: "イベント", eo: "Eventoj"),
    body: @html.concat(
      lists: [
        [
          @html.element(
            name: "div",
            attributes: [{name: "class", value: "view-header"}],
            children: [
              @html.element(
                name: "div",
                attributes: [],
                children: [
                  @html.element(
                    name: "h1",
                    attributes: [],
                    children: [@html.text(text: @html-ui.text(language: $990, en: "Events", ja: "イベント", eo: "Eventoj"))]
                  ),
                  @html.element(
                    name: "p",
                    attributes: [{name: "class", value: "muted"}],
                    children: [
                      @html.text(
                        text: @html-ui.text(
                          language: $990,
                          en: "Everything that happened on definy, newest first",
                          ja: "definy で起きたことの全部 (新しい順)",
                          eo: "Ĉio, kio okazis en definy, plej novaj unue"
                        )
                      )
                    ]
                  )
                ]
              ),
              @html.element(
                name: "nav",
                attributes: [{name: "class", value: "chips"}],
                children: [
                  @html-ui.events-type-link(
                    value: "",
                    label: @html-ui.text(language: $990, en: "All", ja: "すべて", eo: "Ĉiuj"),
                    current: $1
                  ),
                  @html-ui.events-type-link(
                    value: "project_commit",
                    label: @html-ui.text(language: $990, en: "Snapshot", ja: "スナップショット", eo: "Momentfoto"),
                    current: $1
                  ),
                  @html-ui.events-type-link(
                    value: "create_account",
                    label: @html-ui.text(language: $990, en: "Account creation", ja: "アカウント作成", eo: "Kreado de konto"),
                    current: $1
                  ),
                  @html-ui.events-type-link(
                    value: "project_branch_status",
                    label: @html-ui.text(language: $990, en: "Branch status", ja: "ブランチの状態", eo: "Stato de branĉo"),
                    current: $1
                  )
                ]
              )
            ]
          )
        ],
        @html-ui.error-text(response: $2),
        @html-ui.event-lines-html(language: $990, text: $2.text),
        [
          @html-ui.events-pager(
            language: $990,
            base: @core.string-join(items: ["/events?type=", $1, "&"], separator: ""),
            offset: $0,
            text: $2.text
          )
        ]
      ]
    )
  )
visibility
public
html-ui.events-page (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: wMv4JGRMIQwckkHMk2avfkFfXGJeP3TR6tbHShrbT10
content hash: FWbU5iQePQxfBQvpZfpJXxrgt0cl3bQ5yTrvAsbIc38