So, really - neither is safe, the batteries are not strapped down, nor are the terminal's covered - and that's just a start.
I'd love to see an insurance company with it's own surveyor's - or at least pay for the inspections they mandate. Of course then the cost of insurance would sky rocket.
Actually the bottom pic meets the ABYC safety standards when the lids are on. They were only off for the picture. When the covers are on the battery box they are hard bolted to the vessel and the fasterners can not come in contact with spilled electrolyte as they are outside the case not in it..
The lids physically thread into place, molded in threaded inserts in cases, and the boxes are specifically built to hold GC2 6V batteries without straps. They are quite robust and probably why the company that made them no longer does. Little profit margin and only a few buyers looking for boxes that good and willing to pony up....
When batteries are in their own compartment, as these are, there is no need for additional terminal covers unless you want to do so on your own. I prefer to use "stubby" wrenches when working on batteries.
That bank is also fused, ANL, and the temp sensors are properly located on the neg terminal of the banks not the positives as is so often seen.
ABYC E-10 Storage Batteries
To prevent accidental contact of the ungrounded battery connection to ground, each battery shall be protected so that metallic objects cannot come into contact with the ungrounded battery terminal and uninsulated cell straps. This may be accomplished by means such as:
covering the ungrounded battery terminal with a boot or non-conductive shield, or
10.7.7.2 installing the battery in a covered battery box, or
10.7.7.3 installing the battery in a compartment specially designed only for the battery(s).