fradrive/backend/templates/table/layout.hamlet
Sarah Vaupel 72f5a9fb37 build: move backend-related files into backend dir; implement and connect services via docker-compose
TODOs left: reimplement clean and help, sync static,well-known and assets between services
2025-03-23 04:52:49 +01:00

33 lines
961 B
Plaintext

$newline never
$# SPDX-FileCopyrightText: 2022 Felix Hamann <felix.hamann@campus.lmu.de>,Gregor Kleen <gregor.kleen@ifi.lmu.de>,Steffen Jost <jost@tcs.ifi.lmu.de>
$#
$# SPDX-License-Identifier: AGPL-3.0-or-later
^{csvWdgt}
$if null rows && (dbsEmptyStyle == DBESNoHeading)
_{dbsEmptyMessage}
$else
<div .table-header>
$if rowCount > 5
<div .table__row-count>
_{MsgRowCount rowCount}
^{table}
<div .table-footer>
$if rowCount > 5
<div .table__row-count>
_{MsgRowCount rowCount}
$# Since the current pagesize is always a member of pagesizeOptions we don't need to check `pageCount > 1`
$if showPagesizeWdgt
^{pagesizeWdgt'}
$if pageCount > 1
<div .pagination>
<ul ##{wIdent "pagination"} .pages>
$forall p <- pageNumbers
<li .page-link :p == psPage:.current>
<a href=^{tblLink' $ setParam (wIdent "page") (Just $ tshow p)}>
_{MsgPage (succ p)}