test trim of colorbox

trying to resolve error 503
separate original defunct format into funct base.html