Content deleted Content added
use different message formats for warnings and for errors |
split out notice bar icon code into its own method, and add notice bar icons from self.cfg.noticeBarIcons |
||
Line 1,014:
if addSelf then
ret[#ret + 1] = self
return ret
end
function ArticleHistory:getNoticeBarIcons()
local ret = {}
-- Icons that aren't part of a row.
if self.cfg.noticeBarIcons then
if data.isActive(self) then
ret[#ret + 1] = renderImage(
data.icon,
data.size or self.cfg.defaultNoticeBarIconSize
)
end
end
end
-- Icons in row objects.
for _, obj in ipairs(self:getAllObjects()) do
end
return ret
Line 1,128 ⟶ 1,149:
-- Notice bar
if isCollapsed then
local noticeBarIcons =
▲ for j, obj in ipairs(t) do
▲ table.insert(noticeBarIcons, obj:exportNoticeBarIcon())
▲ end
▲ end
if #noticeBarIcons > 0 then
local noticeBar = ctHeader:tag('span'):css('float', 'left')
|