Mercurial > prosody-modules
view mod_service_outage_status/mod_service_outage_status.lua @ 5642:7c105277a9ca
mod_http_oauth2: Remove broken in-CSS templating
Because util.interpolation with a "%b{}" pattern only matches the outer
brackets, so variables inside them would not work unless the pattern is
changed (also considered).
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 27 Aug 2023 09:49:35 +0200 |
parents | 03044a6f5f4c |
children |
line wrap: on
line source
local dataforms = require "util.dataforms"; local form_layout = dataforms.new({ { type = "hidden"; var = "FORM_TYPE"; value = "urn:xmpp:sos:0" }; { type = "list-multi"; name = "addrs"; var = "external-status-addresses" }; }); local addresses = module:get_option_array("outage_status_urls"); module:add_extension(form_layout:form({ addrs = addresses }, "result"));