Don't show complete CI build log if it is large

If a CI build log is large, the web browser (and maybe GitLab itself) slow down drastically. It would be nice if only the first N lines of the log were shown, with links "show next N lines" and "show all lines" at the bottom to download and display more/all of the log file.

Also see issue #15147 (closed).