Changes

no edit summary
Line 70: Line 70:     
     _sandbox_notice = [=[<div style="width:90%; border:2px solid #aa5; background:#ffc; text-align:center; margin:15px auto 20px; padding:5px;">This is a testing ship page, it does not correspond to an actual ship.</div>
 
     _sandbox_notice = [=[<div style="width:90%; border:2px solid #aa5; background:#ffc; text-align:center; margin:15px auto 20px; padding:5px;">This is a testing ship page, it does not correspond to an actual ship.</div>
 +
]=],
 +
 +
    _dd_notice = [=[<div style="display:none; width:90%; border:2px solid #aa5; background:#ffc; text-align:center; margin:15px auto 20px; padding:5px;"></div>
 
]=],
 
]=],
   Line 126: Line 129:     
function ShipPage:format_notice(basepagename)
 
function ShipPage:format_notice(basepagename)
     self._vars.notice = basepagename == "Sandbox" and self._sandbox_notice or ""
+
     self._vars.notice = basepagename == "Sandbox" and self._sandbox_notice or Ship(basepagename):type() == 2 and self._dd_notice or ""
 
end
 
end
  
cssedit, gkautomate
7,060

edits