equal
deleted
inserted
replaced
135 local function generateComponentListSiteContent() |
135 local function generateComponentListSiteContent() |
136 local components = ""; |
136 local components = ""; |
137 for component,muc_host in pairs(muc_hosts or {}) do |
137 for component,muc_host in pairs(muc_hosts or {}) do |
138 components = components .. html.components.bit:gsub("###COMPONENT###", component); |
138 components = components .. html.components.bit:gsub("###COMPONENT###", component); |
139 end |
139 end |
140 if components ~= "" then |
140 return html.components.body:gsub("###COMPONENTS_STUFF###", components); |
141 return html.components.body:gsub("###COMPONENTS_STUFF###", components); |
|
142 end |
|
143 end |
141 end |
144 |
142 |
145 local function generateRoomListSiteContent(component) |
143 local function generateRoomListSiteContent(component) |
146 local rooms = ""; |
144 local rooms = ""; |
147 if prosody.hosts[component] and prosody.hosts[component].muc ~= nil then |
145 if prosody.hosts[component] and prosody.hosts[component].muc ~= nil then |