viewTable = (views, req) =>
  mkTable(
    [
      {
        label: req.__("Name"),
        key: (r) => link(`/view/${encodeURIComponent(r.name)}`, r.name),
      },
      {
        label: req.__("Edit"),
        key: (r) =>
          r.singleton
            ? ""
            : link(
                `/viewedit/edit/${encodeURIComponent(r.name)}`,
                req.__("Edit")
              ),
      },
    ],
    views
  )
Views List
@param {*} views
@param {object} req
@returns {Table}