Simplify rendering pretty dates in templates